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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9043E15838C for ; Fri, 19 Jan 2024 22:13:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8F718E29B7; Fri, 19 Jan 2024 22:13:11 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 5F23FE29B7 for ; Fri, 19 Jan 2024 22:13:11 +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 24D35343274 for ; Fri, 19 Jan 2024 22:13:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 54C9DA15 for ; Fri, 19 Jan 2024 22:13:08 +0000 (UTC) From: "Ionen Wolkens" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ionen Wolkens" Message-ID: <1705702357.c198f69e66547b5ba7d2ba1b9bae576ce93ee703.ionen@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-qt/qtbase/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-qt/qtbase/qtbase-6.6.1-r3.ebuild dev-qt/qtbase/qtbase-6.6.9999.ebuild dev-qt/qtbase/qtbase-6.7.9999.ebuild dev-qt/qtbase/qtbase-6.9999.ebuild X-VCS-Directories: dev-qt/qtbase/ X-VCS-Committer: ionen X-VCS-Committer-Name: Ionen Wolkens X-VCS-Revision: c198f69e66547b5ba7d2ba1b9bae576ce93ee703 X-VCS-Branch: master Date: Fri, 19 Jan 2024 22:13:08 +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: 6d960029-666d-42f3-b22c-f6cb8aa5a139 X-Archives-Hash: 82a8d9bd493e71eff692fdeba322d291 commit: c198f69e66547b5ba7d2ba1b9bae576ce93ee703 Author: Ionen Wolkens gentoo org> AuthorDate: Fri Jan 19 21:07:22 2024 +0000 Commit: Ionen Wolkens gentoo 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 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}