diff mbox series

[meta-oe,styhead] gphoto2: Fix /usr/bin/gphoto2 runtime error

Message ID 20250117044645.2535390-1-hieu2.nguyen@lge.com
State New
Headers show
Series [meta-oe,styhead] gphoto2: Fix /usr/bin/gphoto2 runtime error | expand

Commit Message

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

After fixing the TMPDIR [buildpaths] warning, a segmentation fault while
running gphoto2 command.

It seems 'sed' is primarily designed for text processing. When running
'sed' on a binary, it may overwrite or corrupt critical parts of the
binary.
> root@qemux86-64:~# gphoto2 -v
> Segmentation fault

Signed-off-by: Hieu Van Nguyen <hieu2.nguyen@lge.com>
---
 meta-oe/recipes-graphics/gphoto2/gphoto2_2.5.28.bb | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
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 aba590aa02..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,8 +19,6 @@  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
+do_configure:append() {
+	sed -i -e 's#${RECIPE_SYSROOT}##g' ${B}/config.h
 }