Skip to contentSkip to conversation

gphoto2: Fix contains reference to TMPDIR [buildpaths] warning

PATCH New alperak 1 participant 1 message Jun 26, 2024

lore
Share & tools
lore

alperak

author
#0 lore raw

PATCH 1/1 gphoto2: Fix contains reference to TMPDIR [buildpaths] warning

WARNING: gphoto2-2.5.28-r0 do_package_qa: QA Issue: File /usr/bin/gphoto2 in package gphoto2 contains reference to TMPDIR [buildpaths]

ERROR: gphoto2-2.5.28-r0 do_package: QA Issue: File '/usr/bin/gphoto2' from gphoto2 was already stripped, this will prevent future debugging! [already-stripped]
ERROR: gphoto2-2.5.28-r0 do_package: Fatal QA errors were found, failing task.

---
 meta-oe/recipes-graphics/gphoto2/gphoto2_2.5.28.bb | 5 +++++
 1 file changed, 5 insertions(+)
meta-oe/recipes-graphics/gphoto2/gphoto2_2.5.28.bb +5 -0
index 513845194..aba590aa0 100644
@@ -19,3 +19,8 @@ EXTRA_OECONF += "--with-jpeg-prefix=${STAGING_INCDIR} \
                  --without-cdk \
 "
 
+INSANE_SKIP:${PN} = "already-stripped"
+
+do_install:append() {
+	sed -i -e 's#${RECIPE_SYSROOT}##g' ${D}${bindir}/gphoto2
+}
Signature · 1 line
2.25.1