From: Hieu Van Nguyen <[email protected]>

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 <[email protected]>
---
 meta-oe/recipes-graphics/gphoto2/gphoto2_2.5.28.bb | 3 +++
 1 file changed, 3 insertions(+)

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
+}
-- 
2.34.1

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

Reply via email to