commit:     3c6009e3d48bcc80cfc714e4365ae24856114c5f
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Aug  4 19:17:59 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Aug  4 19:19:09 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c6009e3

eclass/tests: dot-a: use strip -p to avoid spurious differences within archive

Like in https://sourceware.org/bugzilla/show_bug.cgi?id=33246#c21, but it
showed up in our tests too.

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

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

diff --git a/eclass/tests/dot-a.sh b/eclass/tests/dot-a.sh
index dd68bc00eeaf..982e02c28e62 100755
--- a/eclass/tests/dot-a.sh
+++ b/eclass/tests/dot-a.sh
@@ -428,7 +428,7 @@ test_strip_lto() {
                $(tc-getCC) a.c -o a.o -c -flto -ggdb3 || return 1
                $(tc-getAR) q foo.a a.o 2>/dev/null || return 1
                cp foo.a foo.a.bak || return 1
-               $(tc-getSTRIP) -d foo.a || return 1
+               $(tc-getSTRIP) -p -d foo.a || return 1
 
                # They should NOT differ after stripping because it
                # can't be safely stripped without special arguments.
@@ -447,7 +447,7 @@ test_strip_lto() {
                $(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
                cp foo.a foo.a.bak || return 1
-               $(tc-getSTRIP) -d foo.a || return 1
+               $(tc-getSTRIP) -p -d foo.a || return 1
 
                # They should NOT differ after stripping because it
                # can't be safely stripped without special arguments.
@@ -525,7 +525,7 @@ test_strip_nolto() {
                $(tc-getCC) a.c -o a.o -c -ggdb3 || return 1
                $(tc-getAR) q foo.a a.o 2>/dev/null || return 1
                cp foo.a foo.a.bak || return 1
-               $(tc-getSTRIP) -d foo.a || return 1
+               $(tc-getSTRIP) -p -d foo.a || return 1
 
                # They should differ after stripping.
                cmp -s foo.a foo.a.bak && return 1
@@ -549,7 +549,7 @@ test_strip_nolto() {
                $(tc-getCC) a.c -o a.o -c -ggdb3 || return 1
                $(tc-getAR) q foo.a a.o 2>/dev/null || return 1
                cp foo.a foo.a.bak || return 1
-               $(tc-getSTRIP) -d foo.a || return 1
+               $(tc-getSTRIP) -p -d foo.a || return 1
 
                # They should differ after stripping.
                cmp -s foo.a foo.a.bak && return 1

Reply via email to