Revert "dev-qt/qtbase: add IUSE=cpu_flags_x86_rdrand"

Regardless of if that worked or not, on second thought this was a
bad idea. The flag is rather misleading for generic binhosts because
they should actually *enable* it to allow optional usage (runtime
detection). And then, this is actually broken on top, so let's just
return to the previous state.

This reverts commit c198f69e66.

Bug: https://bugs.gentoo.org/922498
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
Ionen Wolkens
2024-01-23 09:28:38 -05:00
parent 6552f78eff
commit c1b0c6d2e8
4 changed files with 4 additions and 40 deletions

View File

@@ -25,8 +25,6 @@ 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[*]}"
@@ -237,14 +235,7 @@ src_configure() {
)
if use amd64 || use x86; then
# 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-*
# see bug #913400 for explanations
local cpufeats=(
# list of checked cpu features in configure.cmake
avx avx2 avx512{bw,cd,dq,er,f,ifma,pf,vbmi,vbmi2,vl}

View File

@@ -24,8 +24,6 @@ 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[*]}"
@@ -234,14 +232,7 @@ src_configure() {
)
if use amd64 || use x86; then
# 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-*
# see bug #913400 for explanations
local cpufeats=(
# list of checked cpu features in configure.cmake
avx avx2 avx512{bw,cd,dq,er,f,ifma,pf,vbmi,vbmi2,vl}

View File

@@ -24,8 +24,6 @@ declare -A QT6_IUSE=(
[sql]="mysql oci8 odbc postgres +sqlite"
[widgets]="cups gtk"
[cpuflags]="cpu_flags_x86_rdrand"
[optfeature]="nls" #810802
)
IUSE="${QT6_IUSE[*]}"
@@ -237,14 +235,7 @@ src_configure() {
)
if use amd64 || use x86; then
# 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-*
# see bug #913400 for explanations
local cpufeats=(
# list of checked cpu features in configure.cmake
avx avx2 avx512{bw,cd,dq,er,f,ifma,pf,vbmi,vbmi2,vl}

View File

@@ -24,8 +24,6 @@ declare -A QT6_IUSE=(
[sql]="mysql oci8 odbc postgres +sqlite"
[widgets]="cups gtk"
[cpuflags]="cpu_flags_x86_rdrand"
[optfeature]="nls" #810802
)
IUSE="${QT6_IUSE[*]}"
@@ -237,14 +235,7 @@ src_configure() {
)
if use amd64 || use x86; then
# 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-*
# see bug #913400 for explanations
local cpufeats=(
# list of checked cpu features in configure.cmake
avx avx2 avx512{bw,cd,dq,er,f,ifma,pf,vbmi,vbmi2,vl}