From: Robert Yang <[email protected]>

The 'devtool finish" added 0001-Ignore-pwritev-pwrite64-tests-on-musl.patch to
strace/files rather than strace/strace

This is because the 0001-Ignore-pwritev-pwrite64-tests-on-musl.patch is a
conditional patch:

SRC_URI:append:libc-musl = "\
           file://0001-Ignore-pwritev-pwrite64-tests-on-musl.patch \
           "

So the devtool won't copy it into workspace, then bb.utils.which() can't find
it, and will return the last section in FILESPATH which is strace/files, I
can't a regular way to fix it because that's how the bb.utils.which() and
localpath works. But there a workaround, add the following line to the recipe
can fix the problem:

FILESPATH .= ":${FILE_DIRNAME}/${BPN}"

Signed-off-by: Robert Yang <[email protected]>
---
 meta/recipes-devtools/strace/strace_6.19.bb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/recipes-devtools/strace/strace_6.19.bb 
b/meta/recipes-devtools/strace/strace_6.19.bb
index 7b8d4851fb..b92bfc4f31 100644
--- a/meta/recipes-devtools/strace/strace_6.19.bb
+++ b/meta/recipes-devtools/strace/strace_6.19.bb
@@ -22,6 +22,10 @@ SRC_URI:append:libc-musl = "\
            "
 SRC_URI[sha256sum] = 
"e076c851eec0972486ec842164fdc54547f9d17abd3d1449de8b120f5d299143"
 
+# To help "devtool finish" can add 
0001-Ignore-pwritev-pwrite64-tests-on-musl.patch
+# into strace/strace rather than strace/files.
+FILESPATH .= ":${FILE_DIRNAME}/${BPN}"
+
 # remove at next version upgrade or when output changes
 PR = "r1"
 HASHEQUIV_HASH_VERSION .= ".1"
-- 
2.49.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#238913): 
https://lists.openembedded.org/g/openembedded-core/message/238913
Mute This Topic: https://lists.openembedded.org/mt/119835699/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to