From owner-dev-commits-ports-all@freebsd.org Tue Sep 28 08:05:22 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B4E5C6794BB; Tue, 28 Sep 2021 08:05:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HJX9t3Y4Rz4c2m; Tue, 28 Sep 2021 08:05:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5B15921083; Tue, 28 Sep 2021 08:05:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 18S85MkL030326; Tue, 28 Sep 2021 08:05:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 18S85MAb030325; Tue, 28 Sep 2021 08:05:22 GMT (envelope-from git) Date: Tue, 28 Sep 2021 08:05:22 GMT Message-Id: <202109280805.18S85MAb030325@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org From: Kai Knoblich Subject: git: 70843a665d45 - 2021Q3 - devel/py-tables: Disable AVX2 CPU optimizations MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kai X-Git-Repository: ports X-Git-Refname: refs/heads/2021Q3 X-Git-Reftype: branch X-Git-Commit: 70843a665d45e14e5b45a87b4c6205555040c555 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2021 08:05:22 -0000 The branch 2021Q3 has been updated by kai: URL: https://cgit.FreeBSD.org/ports/commit/?id=70843a665d45e14e5b45a87b4c6205555040c555 commit 70843a665d45e14e5b45a87b4c6205555040c555 Author: Kai Knoblich AuthorDate: 2021-09-28 07:43:34 +0000 Commit: Kai Knoblich CommitDate: 2021-09-28 08:04:57 +0000 devel/py-tables: Disable AVX2 CPU optimizations On amd64 platforms that have a CPU with Haswell New Instructions (AVX2), related optimizations are automatically compiled in, unless this is explicitly prevented. If the package is then used on other amd64 platforms, that have no AVX2 support, this causes problems, because the generated .so files are incompatible and lead to crashes with SIGILL upon invocation. Remedy the issue by turning off AVX2 support by default which is also upstream's default and bump PORTREVISION to force a rebuild. PR: 258714 Reported by: dvl (on IRC) Reviewed by: wen (maintainer) Approved by: portmgr (blanket: build fix) MFH: 2021Q3 (cherry picked from commit f31b25e7dc91402729ecc19c1fca66e9ebe5ddc8) --- devel/py-tables/Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/devel/py-tables/Makefile b/devel/py-tables/Makefile index f10cee471616..d1d4e59fb306 100644 --- a/devel/py-tables/Makefile +++ b/devel/py-tables/Makefile @@ -2,6 +2,7 @@ PORTNAME= tables PORTVERSION= 3.6.1 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -28,6 +29,15 @@ USE_PYTHON= autoplist concurrent distutils cython PORTEXAMPLES= * OPTIONS_DEFINE= EXAMPLES +OPTIONS_DEFINE_amd64= AVX2 + +AVX2_DESC= Enable Haswell New Instructions (AVX2) support + +# Explicitly disable AVX2 otherwise it will be automatically enabled if the CPU +# supports it. If compiled in and run on hosts that have no AVX2 support, it +# will trigger a SIGILL (Illegal instruction) +# See also: https://github.com/PyTables/PyTables/issues/841 +AVX2_VARS_OFF= MAKE_ENV+=DISABLE_AVX2=yes post-patch: @${REINPLACE_CMD} -e "s,%%LOCALBASE%%,${LOCALBASE}," ${WRKSRC}/setup.py