public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ionen Wolkens" <ionen@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-qt/qtbase/
Date: Fri, 19 Jan 2024 22:13:08 +0000 (UTC)	[thread overview]
Message-ID: <1705702357.c198f69e66547b5ba7d2ba1b9bae576ce93ee703.ionen@gentoo> (raw)

commit:     c198f69e66547b5ba7d2ba1b9bae576ce93ee703
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 19 21:07:22 2024 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Fri Jan 19 22:12:37 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c198f69e

dev-qt/qtbase: add IUSE=cpu_flags_x86_rdrand

Hopefully this is enough to (actually) fix bug #922498, doing
-mno-rdrnd had a similar effect of passing QT_FEATURE_rdrnd=OFF
(but don't have a cpu to test behavior with just -march=native).

Maybe will extend this at some point, but let's treat this
one as as a special case given not the first I've seen of this
with rdrand.

For anyone with rdrand issues, obviously do not enable this.

Probably not worth a revbump considering issue is at build time,
seems safe and could save a few rebuilds. fwiw also won't fail in
case of an aberrant rdrand being set combined with -mno-rdrnd.

Closes: https://bugs.gentoo.org/922498
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 dev-qt/qtbase/qtbase-6.6.1-r3.ebuild | 11 ++++++++++-
 dev-qt/qtbase/qtbase-6.6.9999.ebuild | 11 ++++++++++-
 dev-qt/qtbase/qtbase-6.7.9999.ebuild | 11 ++++++++++-
 dev-qt/qtbase/qtbase-6.9999.ebuild   | 11 ++++++++++-
 4 files changed, 40 insertions(+), 4 deletions(-)

diff --git a/dev-qt/qtbase/qtbase-6.6.1-r3.ebuild b/dev-qt/qtbase/qtbase-6.6.1-r3.ebuild
index a0defb2de975..d9f21bee7611 100644
--- a/dev-qt/qtbase/qtbase-6.6.1-r3.ebuild
+++ b/dev-qt/qtbase/qtbase-6.6.1-r3.ebuild
@@ -25,6 +25,8 @@ declare -A QT6_IUSE=(
 	[sql]="mysql oci8 odbc postgres +sqlite"
 	[widgets]="cups gtk"
 
+	[cpuflags]="cpu_flags_x86_rdrand"
+
 	[optfeature]="nls wayland" #810802,864509
 )
 IUSE="${QT6_IUSE[*]}"
@@ -235,7 +237,14 @@ src_configure() {
 	)
 
 	if use amd64 || use x86; then
-		# see bug #913400 for explanations
+		# see bug #922498, let detection do its thing if set
+		use cpu_flags_x86_rdrand ||
+			mycmakeargs+=(
+				-DQT_FEATURE_rdrnd=OFF
+				-DQT_FEATURE_rdseed=OFF
+			)
+
+		# see bug #913400 for explanations, mostly to handle -mno-*
 		local cpufeats=(
 			# list of checked cpu features in configure.cmake
 			avx avx2 avx512{bw,cd,dq,er,f,ifma,pf,vbmi,vbmi2,vl}

diff --git a/dev-qt/qtbase/qtbase-6.6.9999.ebuild b/dev-qt/qtbase/qtbase-6.6.9999.ebuild
index dcaf37200a90..1df2ecec87b6 100644
--- a/dev-qt/qtbase/qtbase-6.6.9999.ebuild
+++ b/dev-qt/qtbase/qtbase-6.6.9999.ebuild
@@ -24,6 +24,8 @@ declare -A QT6_IUSE=(
 	[sql]="mysql oci8 odbc postgres +sqlite"
 	[widgets]="cups gtk"
 
+	[cpuflags]="cpu_flags_x86_rdrand"
+
 	[optfeature]="nls wayland" #810802,864509
 )
 IUSE="${QT6_IUSE[*]}"
@@ -232,7 +234,14 @@ src_configure() {
 	)
 
 	if use amd64 || use x86; then
-		# see bug #913400 for explanations
+		# see bug #922498, let detection do its thing if set
+		use cpu_flags_x86_rdrand ||
+			mycmakeargs+=(
+				-DQT_FEATURE_rdrnd=OFF
+				-DQT_FEATURE_rdseed=OFF
+			)
+
+		# see bug #913400 for explanations, mostly to handle -mno-*
 		local cpufeats=(
 			# list of checked cpu features in configure.cmake
 			avx avx2 avx512{bw,cd,dq,er,f,ifma,pf,vbmi,vbmi2,vl}

diff --git a/dev-qt/qtbase/qtbase-6.7.9999.ebuild b/dev-qt/qtbase/qtbase-6.7.9999.ebuild
index 10afd1ff2ad0..558e1b6b1caf 100644
--- a/dev-qt/qtbase/qtbase-6.7.9999.ebuild
+++ b/dev-qt/qtbase/qtbase-6.7.9999.ebuild
@@ -24,6 +24,8 @@ declare -A QT6_IUSE=(
 	[sql]="mysql oci8 odbc postgres +sqlite"
 	[widgets]="cups gtk"
 
+	[cpuflags]="cpu_flags_x86_rdrand"
+
 	[optfeature]="nls" #810802
 )
 IUSE="${QT6_IUSE[*]}"
@@ -235,7 +237,14 @@ src_configure() {
 	)
 
 	if use amd64 || use x86; then
-		# see bug #913400 for explanations
+		# see bug #922498, let detection do its thing if set
+		use cpu_flags_x86_rdrand ||
+			mycmakeargs+=(
+				-DQT_FEATURE_rdrnd=OFF
+				-DQT_FEATURE_rdseed=OFF
+			)
+
+		# see bug #913400 for explanations, mostly to handle -mno-*
 		local cpufeats=(
 			# list of checked cpu features in configure.cmake
 			avx avx2 avx512{bw,cd,dq,er,f,ifma,pf,vbmi,vbmi2,vl}

diff --git a/dev-qt/qtbase/qtbase-6.9999.ebuild b/dev-qt/qtbase/qtbase-6.9999.ebuild
index 10afd1ff2ad0..558e1b6b1caf 100644
--- a/dev-qt/qtbase/qtbase-6.9999.ebuild
+++ b/dev-qt/qtbase/qtbase-6.9999.ebuild
@@ -24,6 +24,8 @@ declare -A QT6_IUSE=(
 	[sql]="mysql oci8 odbc postgres +sqlite"
 	[widgets]="cups gtk"
 
+	[cpuflags]="cpu_flags_x86_rdrand"
+
 	[optfeature]="nls" #810802
 )
 IUSE="${QT6_IUSE[*]}"
@@ -235,7 +237,14 @@ src_configure() {
 	)
 
 	if use amd64 || use x86; then
-		# see bug #913400 for explanations
+		# see bug #922498, let detection do its thing if set
+		use cpu_flags_x86_rdrand ||
+			mycmakeargs+=(
+				-DQT_FEATURE_rdrnd=OFF
+				-DQT_FEATURE_rdseed=OFF
+			)
+
+		# see bug #913400 for explanations, mostly to handle -mno-*
 		local cpufeats=(
 			# list of checked cpu features in configure.cmake
 			avx avx2 avx512{bw,cd,dq,er,f,ifma,pf,vbmi,vbmi2,vl}


             reply	other threads:[~2024-01-19 22:13 UTC|newest]

Thread overview: 94+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-19 22:13 Ionen Wolkens [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-26 12:29 [gentoo-commits] repo/gentoo:master commit in: dev-qt/qtbase/ Ionen Wolkens
2025-02-26  8:47 Ionen Wolkens
2025-02-26  8:47 Ionen Wolkens
2025-02-26  8:47 Ionen Wolkens
2025-02-22 14:46 Arthur Zamarin
2025-02-20 22:38 James Le Cuirot
2025-02-02 12:27 Ionen Wolkens
2024-12-27 12:02 Sam James
2024-12-18  4:37 Ionen Wolkens
2024-12-18  4:37 Ionen Wolkens
2024-12-03 18:16 Ionen Wolkens
2024-11-02 14:10 Arthur Zamarin
2024-11-01  6:35 Arthur Zamarin
2024-10-09  6:22 Ionen Wolkens
2024-09-03  7:44 Ionen Wolkens
2024-09-02 17:52 Ionen Wolkens
2024-08-26 22:08 Ionen Wolkens
2024-08-25 20:27 Eli Schwartz
2024-07-25  6:22 Ionen Wolkens
2024-07-25  6:22 Ionen Wolkens
2024-07-25  6:22 Ionen Wolkens
2024-07-22 22:53 Ionen Wolkens
2024-07-21 12:54 Ionen Wolkens
2024-07-08 16:40 Arthur Zamarin
2024-07-08 10:09 Sam James
2024-07-03  0:39 Ionen Wolkens
2024-06-02  8:22 Ionen Wolkens
2024-04-02  6:09 Arthur Zamarin
2024-03-30  0:29 Ionen Wolkens
2024-03-25 22:10 Ionen Wolkens
2024-03-24 18:39 Ionen Wolkens
2024-03-22  6:16 Arthur Zamarin
2024-02-29  2:09 Ionen Wolkens
2024-01-23 14:36 Ionen Wolkens
2024-01-23 14:36 Ionen Wolkens
2024-01-08 21:09 Ionen Wolkens
2024-01-08 12:59 Ionen Wolkens
2024-01-08 12:59 Ionen Wolkens
2024-01-07 15:20 Ionen Wolkens
2024-01-07 15:20 Ionen Wolkens
2023-12-18  1:37 Ionen Wolkens
2023-12-01 19:48 Jakov Smolić
2023-12-01  7:04 Ionen Wolkens
2023-12-01  6:21 Sam James
2023-12-01  6:21 Sam James
2023-11-30  5:29 Ionen Wolkens
2023-11-29 22:33 Sam James
2023-10-27 11:40 Ionen Wolkens
2023-10-27 11:40 Ionen Wolkens
2023-10-22  4:51 Ionen Wolkens
2023-10-17 21:19 Ionen Wolkens
2023-10-10 18:09 Ionen Wolkens
2023-10-10 14:51 Ionen Wolkens
2023-09-26 15:16 Ionen Wolkens
2023-09-26 12:24 Ionen Wolkens
2023-09-24 17:51 Ionen Wolkens
2023-09-24 17:09 WANG Xuerui
2023-09-24 17:09 WANG Xuerui
2023-09-22 20:53 Sam James
2023-09-20  8:32 Ionen Wolkens
2023-09-19  3:02 Ionen Wolkens
2023-09-19  3:02 Ionen Wolkens
2023-09-17  2:11 Ionen Wolkens
2023-09-17  1:59 Ionen Wolkens
2023-09-13 16:42 Ionen Wolkens
2023-09-13 16:42 Ionen Wolkens
2023-09-12 11:44 Ionen Wolkens
2023-09-12 11:44 Ionen Wolkens
2023-09-12  1:28 Sam James
2023-09-12  1:26 Sam James
2023-09-12  0:13 Ionen Wolkens
2023-09-11 22:59 Sam James
2023-09-09 16:22 Ionen Wolkens
2023-09-09 16:22 Ionen Wolkens
2023-09-09 16:22 Ionen Wolkens
2023-09-06  8:49 Ionen Wolkens
2023-09-05 14:31 Ionen Wolkens
2023-09-05 13:05 Ionen Wolkens
2023-06-10 14:33 Jimi Huotari
2023-06-10 14:33 Jimi Huotari
2023-06-02 15:39 Jimi Huotari
2023-05-24  6:52 Jimi Huotari
2023-05-23  2:52 Sam James
2023-05-06 11:26 Jimi Huotari
2023-04-17 19:39 Jimi Huotari
2023-04-17 19:39 Jimi Huotari
2023-03-26 16:59 Jimi Huotari
2023-03-19 13:09 Jimi Huotari
2023-02-09 10:02 Andreas Sturmlechner
2023-01-05 22:39 Jimi Huotari
2022-12-01 19:19 Andreas Sturmlechner
2022-09-24 14:32 Andreas Sturmlechner
2022-08-02 22:00 Sam James

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=1705702357.c198f69e66547b5ba7d2ba1b9bae576ce93ee703.ionen@gentoo \
    --to=ionen@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