git: 1c2c2fc4ec01 - main - converters/py-rencode: correct CFLAGS
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 30 Jul 2025 21:18:37 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=1c2c2fc4ec0116b813062840a66667ac4d41adcb
commit 1c2c2fc4ec0116b813062840a66667ac4d41adcb
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2025-07-30 20:31:38 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2025-07-30 21:18:28 +0000
converters/py-rencode: correct CFLAGS
Fixes build on non-amd64 and may fix runtime on amd64 on older CPU's.
---
converters/py-rencode/Makefile | 1 +
converters/py-rencode/files/patch-build.py | 18 ++++++++++++++++++
2 files changed, 19 insertions(+)
diff --git a/converters/py-rencode/Makefile b/converters/py-rencode/Makefile
index 04ca240188c8..88c8f5e04e07 100644
--- a/converters/py-rencode/Makefile
+++ b/converters/py-rencode/Makefile
@@ -1,5 +1,6 @@
PORTNAME= rencode
PORTVERSION= 1.0.8
+PORTREVISION= 1
DISTVERSIONPREFIX= v
CATEGORIES= converters devel python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
diff --git a/converters/py-rencode/files/patch-build.py b/converters/py-rencode/files/patch-build.py
new file mode 100644
index 000000000000..0a5bc1187c46
--- /dev/null
+++ b/converters/py-rencode/files/patch-build.py
@@ -0,0 +1,18 @@
+--- build.py.orig 2025-07-30 20:26:01 UTC
++++ build.py
+@@ -11,7 +11,6 @@ from setuptools.command.build_ext import build_ext
+ from setuptools.command.build_ext import build_ext
+
+
+-COMPILE_ARGS = ["-march=native", "-O3", "-msse", "-msse2", "-mfma", "-mfpmath=sse"]
+ LINK_ARGS: list[str] = []
+ INCLUDE_DIRS: list[str] = []
+ LIBRARIES: list[str] = []
+@@ -22,7 +21,6 @@ def build() -> None:
+ Extension(
+ "*",
+ ["rencode/*.pyx"],
+- extra_compile_args=COMPILE_ARGS,
+ extra_link_args=LINK_ARGS,
+ include_dirs=INCLUDE_DIRS,
+ libraries=LIBRARIES,