summaryrefslogtreecommitdiff
path: root/dev-util/debugedit/files/debugedit-5.2-bashism.patch
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2025-08-17 20:56:55 +0100
committerSam James <sam@gentoo.org>2025-08-17 20:57:01 +0100
commit9e96e2afe78812f3893829938d9af7f200254f11 (patch)
tree592176173b51378dd00c9d4c0e2e7d4853a15071 /dev-util/debugedit/files/debugedit-5.2-bashism.patch
parenta2cd8332821facc86f5676e61d954401ab155262 (diff)
downloadgentoo-9e96e2afe78812f3893829938d9af7f200254f11.tar.gz
gentoo-9e96e2afe78812f3893829938d9af7f200254f11.tar.bz2
gentoo-9e96e2afe78812f3893829938d9af7f200254f11.zip
dev-util/debugedit: add 5.2
I see some test failures but they're not consistent and I see them with 5.1 too. I'll speak to mjw when I get a chance to see if he has any ideas. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-util/debugedit/files/debugedit-5.2-bashism.patch')
-rw-r--r--dev-util/debugedit/files/debugedit-5.2-bashism.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-util/debugedit/files/debugedit-5.2-bashism.patch b/dev-util/debugedit/files/debugedit-5.2-bashism.patch
new file mode 100644
index 000000000000..8f5bd0eac227
--- /dev/null
+++ b/dev-util/debugedit/files/debugedit-5.2-bashism.patch
@@ -0,0 +1,35 @@
+https://sourceware.org/cgit/debugedit/commit/?id=40b9c550dd2f94a069f3bedf51ceb310d7487d88
+
+From 40b9c550dd2f94a069f3bedf51ceb310d7487d88 Mon Sep 17 00:00:00 2001
+From: Michał Górny <mgorny@gentoo.org>
+Date: Tue, 8 Jul 2025 07:40:20 +0200
+Subject: tests/debugedit.at: Replace 'type -p' bashism
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Replace 'type -p' with more portable 'command -v', in order to fix
+running the test suite on non-bash shells. Note that while the test
+itself invokes bash, the backticks are evaluated within the context
+of the shell used by autotest.
+
+Signed-off-by: Michał Górny <mgorny@gentoo.org>
+---
+ tests/find-debuginfo.at | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/find-debuginfo.at b/tests/find-debuginfo.at
+index 5552ce1..dd59374 100644
+--- a/tests/find-debuginfo.at
++++ b/tests/find-debuginfo.at
+@@ -67,7 +67,7 @@ AT_CHECK([$READELF --debug-dump=line subdir_build/dupes.a | grep `pwd`], [0], [s
+
+ # run conversion, under bash -x tracing for fuller testing log
+ AT_CHECK([[env RPM_BUILD_DIR=${PWD} RPM_BUILD_ROOT=${PWD} RPM_PACKAGE_NAME=pkg RPM_PACKAGE_VERSION=ver RPM_PACKAGE_RELEASE=rel RPM_ARCH=arch \
+- bash -x `type -p find-debuginfo` -S sourcefiles.list -v ${PWD}/subdir_build]], [0], [stdout], [ignore])
++ bash -x `command -v find-debuginfo` -S sourcefiles.list -v ${PWD}/subdir_build]], [0], [stdout], [ignore])
+
+ # list new .a contents; ar tPv contains timestamps / subdirs, so not a good fit for AT_DATA() here
+ AT_CHECK([$AR tPv subdir_build/dupes.a],[0],[stdout],[ignore])
+--
+cgit