Date: Sun, 12 Aug 2018 05:00:27 +0000 (UTC) From: Kubilay Kocak <koobs@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r476961 - in head/devel/py-intbitset: . files Message-ID: <201808120500.w7C50RYh008991@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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' + ) + ],
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808120500.w7C50RYh008991>