commit:     2c76b49f5755837d01023486052d9651be0daabd
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Aug  4 21:22:07 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Aug  4 21:22:41 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c76b49f

eclass/tests: dot-a: pass D to ar

... for deterministic archives.

See 3c6009e3d48bcc80cfc714e4365ae24856114c5f and 
a6d64cf6d851ea48b45f6b4914a5a2930d0cedce.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/tests/dot-a.sh | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/eclass/tests/dot-a.sh b/eclass/tests/dot-a.sh
index 2ee526d2ba3e..96b8c3a130a7 100755
--- a/eclass/tests/dot-a.sh
+++ b/eclass/tests/dot-a.sh
@@ -155,7 +155,7 @@ test_strip_lto_bytecode() {
                tc-is-clang && return 0
 
                $(tc-getCC) ${CFLAGS} a.c -o a.o -c 2>/dev/null || return 1
-               $(tc-getAR) q test.a a.o 2>/dev/null || return 1
+               $(tc-getAR) qD test.a a.o 2>/dev/null || return 1
 
                # This should corrupt a.o and make linking below fail.
                strip-lto-bytecode test.a
@@ -176,7 +176,7 @@ test_strip_lto_bytecode() {
                lto-guarantee-fat
 
                $(tc-getCC) ${CFLAGS} a.c -o a.o -c 2>/dev/null || return 1
-               $(tc-getAR) q test.a a.o 2>/dev/null || return 1
+               $(tc-getAR) qD test.a a.o 2>/dev/null || return 1
 
                # This should NOT corrupt a.o, so linking below should succeed.
                strip-lto-bytecode test.a
@@ -347,7 +347,7 @@ test_search_recursion() {
                _create_test_progs
                lto-guarantee-fat
                $(tc-getCC) ${CFLAGS} a.c -o a.o -c 2>/dev/null || return 1
-               $(tc-getAR) q foo.a a.o 2>/dev/null || return 1
+               $(tc-getAR) qD foo.a a.o 2>/dev/null || return 1
 
                _check_if_lto_object "${tmpdir}/lto/foo.a" || return 1
                # It should search ${ED} if no arguments are passed, find
@@ -397,8 +397,8 @@ test_search_recursion() {
                _create_test_progs
                lto-guarantee-fat
                $(tc-getCC) ${CFLAGS} "${tmpdir}"/lto/a.c -o 
"${tmpdir}"/lto/a.o -c 2>/dev/null || return 1
-               $(tc-getAR) q foo.a a.o 2>/dev/null || return 1
-               $(tc-getAR) q "${tmpdir}"/lto2/foo.a a.o 2>/dev/null || return 1
+               $(tc-getAR) qD foo.a a.o 2>/dev/null || return 1
+               $(tc-getAR) qD "${tmpdir}"/lto2/foo.a a.o 2>/dev/null || return 
1
 
                _check_if_lto_object "${tmpdir}/lto/foo.a" || return 1
                _check_if_lto_object "${tmpdir}/lto2/foo.a" || return 1
@@ -426,7 +426,7 @@ test_strip_lto() {
                _create_test_progs
 
                $(tc-getCC) a.c -o a.o -c -flto -ggdb3 || return 1
-               $(tc-getAR) q foo.a a.o 2>/dev/null || return 1
+               $(tc-getAR) qD foo.a a.o 2>/dev/null || return 1
                cp foo.a foo.a.bak || return 1
                $(tc-getSTRIP) --enable-deterministic-archives -p -d foo.a || 
return 1
 
@@ -445,7 +445,7 @@ test_strip_lto() {
                _create_test_progs
 
                $(tc-getCC) a.c -o a.o -c -flto -ffat-lto-objects -ggdb3 || 
return 1
-               $(tc-getAR) q foo.a a.o 2>/dev/null || return 1
+               $(tc-getAR) qD foo.a a.o 2>/dev/null || return 1
                cp foo.a foo.a.bak || return 1
                $(tc-getSTRIP) --enable-deterministic-archives -p -d foo.a || 
return 1
 
@@ -479,7 +479,7 @@ test_strip_lto_mixed() {
                rm test.a 2>/dev/null
 
                clang ${CFLAGS} a.c -o a.o -c 2>/dev/null || return 1
-               $(tc-getAR) q test.a a.o 2>/dev/null || return 1
+               $(tc-getAR) qD test.a a.o 2>/dev/null || return 1
 
                # Pretend that gcc built a.o/test.a so that we use
                # GNU Binutils strip to trigger the bug.
@@ -503,7 +503,7 @@ test_strip_lto_mixed() {
                rm test.a 2>/dev/null
 
                clang ${CFLAGS} a.c -o a.o -c 2>/dev/null || return 1
-               $(tc-getAR) q test.a a.o 2>/dev/null || return 1
+               $(tc-getAR) qD test.a a.o 2>/dev/null || return 1
 
                # Pretend that gcc built a.o/test.a so that we use
                # GNU Binutils strip to trigger the bug.
@@ -524,7 +524,7 @@ test_strip_nolto() {
                _create_test_progs
 
                $(tc-getCC) a.c -o a.o -c -ggdb3 || return 1
-               $(tc-getAR) q foo.a a.o 2>/dev/null || return 1
+               $(tc-getAR) qD foo.a a.o 2>/dev/null || return 1
                cp foo.a foo.a.bak || return 1
                $(tc-getSTRIP) --enable-deterministic-archives -p -d foo.a || 
return 1
 
@@ -548,7 +548,7 @@ test_strip_nolto() {
                _create_test_progs
 
                $(tc-getCC) a.c -o a.o -c -ggdb3 || return 1
-               $(tc-getAR) q foo.a a.o 2>/dev/null || return 1
+               $(tc-getAR) qD foo.a a.o 2>/dev/null || return 1
                cp foo.a foo.a.bak || return 1
                $(tc-getSTRIP) --enable-deterministic-archives -p -d foo.a || 
return 1
 

Reply via email to