From: "Michael Orlitzky" <mjo@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/ntl/
Date: Mon, 5 Jun 2023 13:02:58 +0000 (UTC) [thread overview]
Message-ID: <1685969425.ac9bae7a4256bb2ac15232d4d9a5a5f9a72430f9.mjo@gentoo> (raw)
commit: ac9bae7a4256bb2ac15232d4d9a5a5f9a72430f9
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 5 12:49:51 2023 +0000
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> 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 <mjo <AT> 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
}
next reply other threads:[~2023-06-05 13:03 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-05 13:02 Michael Orlitzky [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-11-24 16:26 [gentoo-commits] repo/gentoo:master commit in: dev-libs/ntl/ Michał Górny
2023-08-04 20:08 Michael Orlitzky
2023-08-04 10:59 Sam James
2023-07-15 22:01 Michael Orlitzky
2023-06-14 15:33 Arthur Zamarin
2023-06-14 15:15 Michael Orlitzky
2023-06-14 12:31 Arthur Zamarin
2023-06-14 11:15 Michael Orlitzky
2023-06-07 4:21 Arthur Zamarin
2023-06-07 4:21 Arthur Zamarin
2023-06-07 4:21 Arthur Zamarin
2023-06-05 13:02 Michael Orlitzky
2023-04-16 12:11 WANG Xuerui
2022-11-18 17:29 Arthur Zamarin
2022-06-20 2:03 Sam James
2022-05-07 12:20 Michael Orlitzky
2022-05-06 23:45 Jakov Smolić
2022-05-06 23:39 Jakov Smolić
2022-05-06 23:39 Jakov Smolić
2022-03-26 0:01 Sam James
2022-01-23 23:47 Michael Orlitzky
2022-01-18 14:49 Michael Orlitzky
2021-11-22 3:07 Yixun Lan
2021-11-09 3:37 Michael Orlitzky
2021-11-09 3:37 Michael Orlitzky
2021-11-03 12:50 Michael Orlitzky
2021-11-03 10:08 Agostino Sarubbo
2021-11-03 10:06 Agostino Sarubbo
2021-11-02 15:46 Sam James
2021-03-16 21:33 Sam James
2021-03-06 2:57 Michael Orlitzky
2021-01-06 19:34 Fabian Groffen
2020-08-25 10:25 Sam James
2020-04-23 6:29 Agostino Sarubbo
2020-04-23 6:24 Agostino Sarubbo
2020-04-23 6:20 Agostino Sarubbo
2020-03-24 18:22 Michael Orlitzky
2017-07-21 0:23 Sebastien Fabbro
2015-08-26 11:00 Agostino Sarubbo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1685969425.ac9bae7a4256bb2ac15232d4d9a5a5f9a72430f9.mjo@gentoo \
--to=mjo@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox