From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 84FF81382C5 for ; Thu, 11 Jun 2020 02:46:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A0F38E0992; Thu, 11 Jun 2020 02:46:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 85709E0992 for ; Thu, 11 Jun 2020 02:46:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DBC4D34EDD4 for ; Thu, 11 Jun 2020 02:46:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A88A59C for ; Thu, 11 Jun 2020 02:46:32 +0000 (UTC) From: "Michael Orlitzky" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Orlitzky" Message-ID: <1591843500.57e2be19d17640729372235c4c73171e069d2cca.mjo@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/openblas/openblas-0.3.9.ebuild X-VCS-Directories: sci-libs/openblas/ X-VCS-Committer: mjo X-VCS-Committer-Name: Michael Orlitzky X-VCS-Revision: 57e2be19d17640729372235c4c73171e069d2cca X-VCS-Branch: master Date: Thu, 11 Jun 2020 02:46:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2c5dd3e6-7f2b-4073-b492-64ecf89e6896 X-Archives-Hash: 24d54677f0f45defef521374f98573f9 commit: 57e2be19d17640729372235c4c73171e069d2cca Author: Michael Orlitzky gentoo org> AuthorDate: Thu Jun 11 02:29:20 2020 +0000 Commit: Michael Orlitzky gentoo org> CommitDate: Thu Jun 11 02:45:00 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57e2be19 sci-libs/openblas: fix tests with fortran bounds checking enabled. One OpenBLAS test fails when you enable bounds checks in your fortran compiler via e.g. either "-fbounds-check" or "-fcheck=bounds" with gfortran. This was reported upstream at https://github.com/xianyi/OpenBLAS/issues/2657 but in the meantime the easiest thing to do for *our* users is to filter out those flags when USE=test is set. Thanks to Bernd for reporting the problem on bug 726474. Closes: https://bugs.gentoo.org/726474 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Michael Orlitzky gentoo.org> sci-libs/openblas/openblas-0.3.9.ebuild | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/sci-libs/openblas/openblas-0.3.9.ebuild b/sci-libs/openblas/openblas-0.3.9.ebuild index 15ee8cf93ea..6427d994b30 100644 --- a/sci-libs/openblas/openblas-0.3.9.ebuild +++ b/sci-libs/openblas/openblas-0.3.9.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit fortran-2 toolchain-funcs +inherit flag-o-matic fortran-2 toolchain-funcs DESCRIPTION="Optimized BLAS library based on GotoBLAS2" HOMEPAGE="http://xianyi.github.com/OpenBLAS/" @@ -11,8 +11,9 @@ SRC_URI="https://github.com/xianyi/OpenBLAS/archive/v${PV} -> ${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" -IUSE="dynamic eselect-ldso index-64bit openmp pthread" +IUSE="dynamic eselect-ldso index-64bit openmp pthread test" REQUIRED_USE="?? ( openmp pthread )" +RESTRICT="!test? ( test )" RDEPEND=" eselect-ldso? ( >=app-eselect/eselect-blas-0.2 @@ -26,6 +27,12 @@ PATCHES=( "${FILESDIR}/shared-blas-lapack.patch" ) pkg_setup() { fortran-2_pkg_setup use openmp && tc-check-openmp + + # We need to filter these while building the library, and not just + # while building the test suite. Will hopefully get fixed upstream: + # https://github.com/xianyi/OpenBLAS/issues/2657 + use test && filter-flags "-fbounds-check" "-fcheck=bounds" + export CC=$(tc-getCC) FC=$(tc-getFC) use dynamic && \