diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-08-18 07:03:03 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-08-18 07:03:03 +0000 |
| commit | e49d9ae0faf4481727693a13f91dfc114d292c34 (patch) | |
| tree | 0c2251259a43a6030e15cce92fac7022df5ca3fc /dev-util/debugedit/files/debugedit-5.2-bashism.patch | |
| parent | 0258209713eef21f0d82c607393bf5360fc94bcc (diff) | |
| download | srcux-e49d9ae0faf4481727693a13f91dfc114d292c34.tar.gz srcux-e49d9ae0faf4481727693a13f91dfc114d292c34.tar.xz srcux-e49d9ae0faf4481727693a13f91dfc114d292c34.zip | |
Adding metadata
Diffstat (limited to 'dev-util/debugedit/files/debugedit-5.2-bashism.patch')
| -rw-r--r-- | dev-util/debugedit/files/debugedit-5.2-bashism.patch | 35 |
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 |
