diff options
author | Alexander Kanavin <alex@linutronix.de> | 2025-06-06 22:58:08 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-06-09 17:43:41 +0100 |
commit | e65d0d156de06d402feeee571c4b543c5221723a (patch) | |
tree | af91e405f009cabd9ed8a38d62755c60763075b9 | |
parent | b2a037780e24c776f81542d310f453bc15331d44 (diff) | |
download | poky-e65d0d156de06d402feeee571c4b543c5221723a.tar.gz |
strace: better sed expression for ptest Makefile
The previous one wasn't particularly readable, and assumed
a particular relationship between S and B. The new one
also works when S is in UNPACKDIR, or anywhere else.
(From OE-Core rev: 584b039fe688ba85fb19b48f2c7209452e248c00)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-devtools/strace/strace_6.15.bb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/strace/strace_6.15.bb b/meta/recipes-devtools/strace/strace_6.15.bb index d8ac2a53d0..2093c92eb3 100644 --- a/meta/recipes-devtools/strace/strace_6.15.bb +++ b/meta/recipes-devtools/strace/strace_6.15.bb | |||
@@ -45,7 +45,7 @@ do_install_ptest() { | |||
45 | mkdir -p ${D}${PTEST_PATH}/src | 45 | mkdir -p ${D}${PTEST_PATH}/src |
46 | install -m 755 ${S}/build-aux/test-driver ${D}${PTEST_PATH}/build-aux/ | 46 | install -m 755 ${S}/build-aux/test-driver ${D}${PTEST_PATH}/build-aux/ |
47 | install -m 644 ${B}/src/config.h ${D}${PTEST_PATH}/src/ | 47 | install -m 644 ${B}/src/config.h ${D}${PTEST_PATH}/src/ |
48 | sed -e '/^src/s/strace.*[0-9]/ptest/' \ | 48 | sed -e 's/^srcdir = .*/srcdir = ..\/..\/ptest\/tests/' \ |
49 | -e "/^TEST_LOG_DRIVER =/s|(top_srcdir)|(top_builddir)|" \ | 49 | -e "/^TEST_LOG_DRIVER =/s|(top_srcdir)|(top_builddir)|" \ |
50 | -i ${D}/${PTEST_PATH}/${TESTDIR}/Makefile | 50 | -i ${D}/${PTEST_PATH}/${TESTDIR}/Makefile |
51 | } | 51 | } |