Skip to contentSkip to conversation

uftrace: fix issue that actually not install

PATCH In review Liu Yiding 2 participants 2 messages Jul 30, 2025

lore
Share & tools
lore

Liu Yiding

author
#0 lore raw

PATCH 1/1 uftrace: fix issue that actually not install

1. "oe_runmake DESTDIR=${D} install" will actually install to ${D}, "oe_runmake DESTDIR=${D}" will skip install, ${D} is empty

2. fix issue that:
| ERROR: uftrace-0.18-r0 do_package: QA Issue: File '/usr/lib/libelf.so' from | uftrace was already stripped, this will prevent future debugging! [already-stripped]

we have set to use sysroot libelf in do_configure with "--with-elfutils=${STAGING_EXECPREFIXDIR}", here remove uftrace build libelf

---
 meta-oe/recipes-devtools/uftrace/uftrace_0.18.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-oe/recipes-devtools/uftrace/uftrace_0.18.bb +2 -1
index 7ba2dcadc9..6764557f37 100644
@@ -41,7 +41,8 @@ do_compile() {
 }
 
 do_install() {
-    oe_runmake DESTDIR=${D}
+    oe_runmake DESTDIR=${D} install
+    rm -f ${D}/usr/lib/libelf.so*
 }
 
 FILES_SOLIBSDEV = ""
Signature · 1 line
2.43.0
#1 lore raw
Quoted 21 lines · Liu Yiding

1. "oe_runmake DESTDIR=${D} install" will actually install to ${D}, "oe_runmake DESTDIR=${D}" will skip install, ${D} is empty

2. fix issue that:
| ERROR: uftrace-0.18-r0 do_package: QA Issue: File '/usr/lib/libelf.so' from | uftrace was already stripped, this will prevent future debugging! [already-stripped]

we have set to use sysroot libelf in do_configure with "--with-elfutils=${STAGING_EXECPREFIXDIR}", here remove uftrace build libelf

---
 meta-oe/recipes-devtools/uftrace/uftrace_0.18.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-oe/recipes-devtools/uftrace/uftrace_0.18.bb +0 -0
index 7ba2dcadc9..6764557f37 100644

meta-oe/recipes-devtools/uftrace/uftrace_0.18.bb do_compile() { · line 45

Quoted 6 lines
meta-oe/recipes-devtools/uftrace/uftrace_0.18.bb +2 -1
@@ -41,7 +41,8 @@ do_compile() {
 }
 
 do_install() {
-    oe_runmake DESTDIR=${D}
+    oe_runmake DESTDIR=${D} install
+    rm -f ${D}/usr/lib/libelf.so*

Thanks, it should be using ${libdir} instead of /usr/lib here which I have fixed locally.

Quoted 6 lines
meta-oe/recipes-devtools/uftrace/uftrace_0.18.bb +0 -1
 }
 
 FILES_SOLIBSDEV = ""
--

2.43.0