diff mbox series

[meta-oe,scarthgap] gphoto2: Fix contains reference to TMPDIR [buildpaths] warning

Message ID 20250117033958.1309072-1-hieu2.nguyen@lge.com
State New
Headers show
Series [meta-oe,scarthgap] gphoto2: Fix contains reference to TMPDIR [buildpaths] warning | expand

Commit Message

Hieu Van Nguyen Jan. 17, 2025, 3:39 a.m. UTC
From: Hieu Van Nguyen <hieu2.nguyen@lge.com>

Remove ${RECIPE_SYSROOT} path from ${B}/config.h to fix the QA warning:
WARNING: gphoto2-2.5.28-r0 do_package_qa: QA Issue: File /usr/bin/gphoto2 in package gphoto2 contains reference to TMPDIR [buildpaths]

Signed-off-by: Hieu Van Nguyen <hieu2.nguyen@lge.com>
---
 meta-oe/recipes-graphics/gphoto2/gphoto2_2.5.28.bb | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/meta-oe/recipes-graphics/gphoto2/gphoto2_2.5.28.bb b/meta-oe/recipes-graphics/gphoto2/gphoto2_2.5.28.bb
index 513845194d..1dc2a1fc34 100644
--- a/meta-oe/recipes-graphics/gphoto2/gphoto2_2.5.28.bb
+++ b/meta-oe/recipes-graphics/gphoto2/gphoto2_2.5.28.bb
@@ -19,3 +19,6 @@  EXTRA_OECONF += "--with-jpeg-prefix=${STAGING_INCDIR} \
                  --without-cdk \
 "
 
+do_configure:append() {
+	sed -i -e 's#${RECIPE_SYSROOT}##g' ${B}/config.h
+}