dev-qt/qtbase: allow auto-detecting -mno-direct-extern-access

(ask Sam if want the reasoning, haven't read much on this topic)

Not really tested beside checking that the option is passed.

Note that this won't be "fully" used unless also rebuild all of
dev-qt/* after upgrade to qtbase-6.9.0-r1 given the option is
passed by the qtbase defautls to each Qt modules.

Part of why not adding it to 6.8.3 as it'll be difficult to
guarantee what the users actually have without bunch of revbumps
(not so bad for 6.9.0 given mask), will propagate properly when
add 6.9.1 unmasked.

Unsure if a better way than a patch to drop autodetect like a =AUTO
option or so (want to let the test do its thing). Imagine Qt will
revert this as well eventually so it won't be there forever.

Bug: https://bugs.gentoo.org/754021
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
Ionen Wolkens
2025-04-23 09:11:05 -04:00
parent fdd20d7b59
commit 496ea7aeec
4 changed files with 12 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
Re-allow auto-detect rather than do =ON to ensure the toolchain supports it.
https://bugs.gentoo.org/754021
https://github.com/qt/qtbase/commit/48675dfa3 (revert of)
--- a/configure.cmake
+++ b/configure.cmake
@@ -784,3 +784,2 @@
CONDITION NOT WIN32 AND TEST_no_direct_extern_access
- AUTODETECT OFF
)

View File

@@ -146,6 +146,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-6.6.1-forkfd-childstack-size.patch
"${FILESDIR}"/${PN}-6.6.3-gcc14-avx512fp16.patch
"${FILESDIR}"/${PN}-6.8.2-cross.patch
"${FILESDIR}"/${PN}-6.9.0-no-direct-extern-access.patch
)
src_prepare() {

View File

@@ -146,6 +146,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-6.6.1-forkfd-childstack-size.patch
"${FILESDIR}"/${PN}-6.6.3-gcc14-avx512fp16.patch
"${FILESDIR}"/${PN}-6.8.2-cross.patch
"${FILESDIR}"/${PN}-6.9.0-no-direct-extern-access.patch
)
src_prepare() {

View File

@@ -146,6 +146,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-6.6.1-forkfd-childstack-size.patch
"${FILESDIR}"/${PN}-6.6.3-gcc14-avx512fp16.patch
"${FILESDIR}"/${PN}-6.8.2-cross.patch
"${FILESDIR}"/${PN}-6.9.0-no-direct-extern-access.patch
)
src_prepare() {