diff options
author | Hieu Van Nguyen <hieu2.nguyen@lge.com> | 2025-01-17 13:46:45 +0900 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2025-02-04 14:29:37 -0800 |
commit | 7816f8d0808007c78e23ca75390c87a98b8b6c69 (patch) | |
tree | be6de3a41ed8b1f6d7d0ca42cf3a8711c5cc245e | |
parent | 74b08dcbb1d0f4600527602804544c9d63697ebc (diff) | |
download | meta-openembedded-7816f8d0808007c78e23ca75390c87a98b8b6c69.tar.gz |
gphoto2: Fix /usr/bin/gphoto2 runtime error
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>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | meta-oe/recipes-graphics/gphoto2/gphoto2_2.5.28.bb | 6 |
1 files changed, 2 insertions, 4 deletions
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} \ | |||
19 | --without-cdk \ | 19 | --without-cdk \ |
20 | " | 20 | " |
21 | 21 | ||
22 | INSANE_SKIP:${PN} = "already-stripped" | 22 | do_configure:append() { |
23 | 23 | sed -i -e 's#${RECIPE_SYSROOT}##g' ${B}/config.h | |
24 | do_install:append() { | ||
25 | sed -i -e 's#${RECIPE_SYSROOT}##g' ${D}${bindir}/gphoto2 | ||
26 | } | 24 | } |