From owner-svn-ports-head@freebsd.org Sun Aug 12 05:00:28 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 81D0E10640E2; Sun, 12 Aug 2018 05:00:28 +0000 (UTC) (envelope-from koobs@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2ACF778551; Sun, 12 Aug 2018 05:00:28 +0000 (UTC) (envelope-from koobs@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id F1E7221726; Sun, 12 Aug 2018 05:00:27 +0000 (UTC) (envelope-from koobs@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w7C50RkI008992; Sun, 12 Aug 2018 05:00:27 GMT (envelope-from koobs@FreeBSD.org) Received: (from koobs@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w7C50RYh008991; Sun, 12 Aug 2018 05:00:27 GMT (envelope-from koobs@FreeBSD.org) Message-Id: <201808120500.w7C50RYh008991@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: koobs set sender to koobs@FreeBSD.org using -f From: Kubilay Kocak Date: Sun, 12 Aug 2018 05:00:27 +0000 (UTC) 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 X-SVN-Group: ports-head X-SVN-Commit-Author: koobs X-SVN-Commit-Paths: in head/devel/py-intbitset: . files X-SVN-Commit-Revision: 476961 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Aug 2018 05:00:28 -0000 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' + ) + ],