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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D798A15810F for ; Mon, 5 Jun 2023 13:03:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 24366E089A; Mon, 5 Jun 2023 13:03:01 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0D5ECE089A for ; Mon, 5 Jun 2023 13:03:01 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2CCD0340EC2 for ; Mon, 5 Jun 2023 13:03:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 723C3A7A for ; Mon, 5 Jun 2023 13:02:58 +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: <1685969425.ac9bae7a4256bb2ac15232d4d9a5a5f9a72430f9.mjo@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/ntl/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/ntl/ntl-11.5.1-r2.ebuild dev-libs/ntl/ntl-11.5.1-r3.ebuild X-VCS-Directories: dev-libs/ntl/ X-VCS-Committer: mjo X-VCS-Committer-Name: Michael Orlitzky X-VCS-Revision: ac9bae7a4256bb2ac15232d4d9a5a5f9a72430f9 X-VCS-Branch: master Date: Mon, 5 Jun 2023 13:02:58 +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: 88a1bfdd-ce4d-4e1a-81cf-4217753281ce X-Archives-Hash: 7fe48f5559799b97a51b8e7bfda8146f commit: ac9bae7a4256bb2ac15232d4d9a5a5f9a72430f9 Author: Michael Orlitzky gentoo org> AuthorDate: Mon Jun 5 12:49:51 2023 +0000 Commit: Michael Orlitzky gentoo org> CommitDate: Mon Jun 5 12:50:25 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac9bae7a dev-libs/ntl: new revision to fix the x86 build (and drop static-libs). Bug: https://bugs.gentoo.org/815775 Signed-off-by: Michael Orlitzky gentoo.org> .../{ntl-11.5.1-r2.ebuild => ntl-11.5.1-r3.ebuild} | 26 +++++++++++++--------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/dev-libs/ntl/ntl-11.5.1-r2.ebuild b/dev-libs/ntl/ntl-11.5.1-r3.ebuild similarity index 69% rename from dev-libs/ntl/ntl-11.5.1-r2.ebuild rename to dev-libs/ntl/ntl-11.5.1-r3.ebuild index 5601959c8c2a..1b7f7af03821 100644 --- a/dev-libs/ntl/ntl-11.5.1-r2.ebuild +++ b/dev-libs/ntl/ntl-11.5.1-r3.ebuild @@ -12,7 +12,7 @@ SRC_URI="https://www.shoup.net/ntl/${P}.tar.gz" LICENSE="LGPL-2.1+" SLOT="0/44" KEYWORDS="~amd64 ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" -IUSE="doc static-libs threads cpu_flags_x86_avx2" +IUSE="doc threads cpu_flags_x86_avx2" BDEPEND="dev-lang/perl" DEPEND="dev-libs/gmp:0= @@ -35,6 +35,16 @@ src_configure() { export CC="$(tc-getCC)" export CXX="$(tc-getCXX)" + # The "AVX2" detection within NTL does more than just detect AVX2; + # it also checks that (for example) the size of a "long" is 64 bits. + # If we try to enable the AVX FFT (based on the avx2 cpu flag) and + # if NTL determines that AVX2 is unusable for some other reason, + # then the build will fail (bug 815775). To work around that, we + # disable the AVX FFT on x86 entirely. This still isn't perfect, but + # it should fix the cases we know about. + local avx_fft=$(usex cpu_flags_x86_avx2 on off) + use x86 && avx_fft=off + # Currently the build system can build a static library or both # static and shared libraries, but not only shared libraries. The # name NTL_GMP_LIP is *not* a typo. @@ -51,7 +61,7 @@ src_configure() { NTL_GMP_LIP=on \ NTL_GF2X_LIB=on \ NTL_THREADS=$(usex threads on off) \ - NTL_ENABLE_AVX_FFT=$(usex cpu_flags_x86_avx2 on off) \ + NTL_ENABLE_AVX_FFT="${avx_fft}" \ NATIVE=off \ || die "DoConfig failed" @@ -66,15 +76,11 @@ src_configure() { src_install() { default + find "${ED}" -name '*.la' -delete || die - if ! use static-libs; then - # bug #775884 - find "${ED}" -name '*.la' -delete || die - - # Use rm -f because the static archive may not be created when - # using (for example) slibtool-shared. - rm -f "${ED}/usr/$(get_libdir)"/libntl.a || die - fi + # Use rm -f because the static archive may not be created when + # using (for example) slibtool-shared. + rm -f "${ED}/usr/$(get_libdir)"/libntl.a || die rm -r "${ED}"/usr/share/doc/NTL || die }