git: 9478a2cfc3f5 - main - textproc/py-hieroglyph: Unbreak build with Python 3.12
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 07 Sep 2026 22:01:33 UTC
The branch main has been updated by dbaio:
URL: https://cgit.FreeBSD.org/ports/commit/?id=9478a2cfc3f5be3ca94d8883df0a3f400b2ffc48
commit 9478a2cfc3f5be3ca94d8883df0a3f400b2ffc48
Author: Danilo G. Baio <dbaio@FreeBSD.org>
AuthorDate: 2026-09-07 18:03:30 +0000
Commit: Danilo G. Baio <dbaio@FreeBSD.org>
CommitDate: 2026-09-07 22:01:06 +0000
textproc/py-hieroglyph: Unbreak build with Python 3.12
Reported by: pkg-fallout
---
textproc/py-hieroglyph/files/patch-versioneer.py | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/textproc/py-hieroglyph/files/patch-versioneer.py b/textproc/py-hieroglyph/files/patch-versioneer.py
new file mode 100644
index 000000000000..bff52e91d1fe
--- /dev/null
+++ b/textproc/py-hieroglyph/files/patch-versioneer.py
@@ -0,0 +1,14 @@
+--- versioneer.py.orig 2026-09-07 17:41:24 UTC
++++ versioneer.py
+@@ -339,9 +339,9 @@ def get_config_from_root(root):
+ # configparser.NoOptionError (if it lacks "VCS="). See the docstring at
+ # the top of versioneer.py for instructions on writing your setup.cfg .
+ setup_cfg = os.path.join(root, "setup.cfg")
+- parser = configparser.SafeConfigParser()
++ parser = configparser.ConfigParser()
+ with open(setup_cfg, "r") as f:
+- parser.readfp(f)
++ parser.read_file(f)
+ VCS = parser.get("versioneer", "VCS") # mandatory
+
+ def get(parser, name):