svn commit: r476961 - in head/devel/py-intbitset: . files
Kubilay Kocak
koobs at FreeBSD.org
Sun Aug 12 05:00:28 UTC 2018
Author: koobs
Date: Sun Aug 12 05:00:27 2018
New Revision: 476961
URL: https://svnweb.freebsd.org/changeset/ports/476961
Log:
devel/py-intbitset: Patch out march/mtune/-O3 (Respect CFLAGS)
ports r476958 added BROKEN to non-x86 ARCH's due to:
fails to compile: the clang compiler does not support -march=core2
Ports must respect user CFLAGS, and beside this port appending its own flags,
overriding system/ports supplied CFLAGS, was also adding march/mtune flags,
the former of which was set to an x86 specific CPU.
This change patches out these flags to address the issue.
While I'm here, level up port compliance (strip shared libraries)
Approved by: portmgr (blanket, framework compliance)
MFH: 2018Q3
Added:
head/devel/py-intbitset/files/
head/devel/py-intbitset/files/patch-setup.py (contents, props changed)
Modified:
head/devel/py-intbitset/Makefile
Modified: head/devel/py-intbitset/Makefile
==============================================================================
--- head/devel/py-intbitset/Makefile Sun Aug 12 04:24:05 2018 (r476960)
+++ head/devel/py-intbitset/Makefile Sun Aug 12 05:00:27 2018 (r476961)
@@ -2,6 +2,7 @@
PORTNAME= intbitset
DISTVERSION= 2.3.0
+PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -21,6 +22,9 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>=0:devel/py-
USES= python
USE_PYTHON= cython distutils autoplist
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/intbitset.so
do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
Added: head/devel/py-intbitset/files/patch-setup.py
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/py-intbitset/files/patch-setup.py Sun Aug 12 05:00:27 2018 (r476961)
@@ -0,0 +1,13 @@
+# Respect CFLAGS, remove x86 specific -march tuning which fails on !x86 archs
+# https://svnweb.freebsd.org/changeset/ports/476958
+
+--- setup.py.orig 2018-08-12 04:50:38 UTC
++++ setup.py
+@@ -48,7 +48,6 @@ setup(
+ ext_modules=[
+ Extension("intbitset",
+ ["intbitset/intbitset.c", "intbitset/intbitset_impl.c"],
+- extra_compile_args=['-O3', '-march=core2', '-mtune=native']
+ # For debug -> '-ftree-vectorizer-verbose=2'
+ )
+ ],
More information about the svn-ports-all
mailing list