From patchwork Thu Jan 16 02:48:09 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hieu Van Nguyen X-Patchwork-Id: 55649 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id BC845C02180 for ; Thu, 16 Jan 2025 02:48:47 +0000 (UTC) Received: from lgeamrelo11.lge.com (lgeamrelo11.lge.com [156.147.23.51]) by mx.groups.io with SMTP id smtpd.web11.40168.1736995721522135493 for ; Wed, 15 Jan 2025 18:48:42 -0800 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: lge.com, ip: 156.147.23.51, mailfrom: hieu2.nguyen@lge.com) Received: from unknown (HELO lgemrelse7q.lge.com) (156.147.1.151) by 156.147.23.51 with ESMTP; 16 Jan 2025 11:48:38 +0900 X-Original-SENDERIP: 156.147.1.151 X-Original-MAILFROM: hieu2.nguyen@lge.com Received: from unknown (HELO hieu2-nguyen-worker-2204.bee-live.svc.cluster.local) (10.185.60.91) by 156.147.1.151 with ESMTP; 16 Jan 2025 11:48:38 +0900 X-Original-SENDERIP: 10.185.60.91 X-Original-MAILFROM: hieu2.nguyen@lge.com From: hieu2.nguyen@lge.com To: openembedded-devel@lists.openembedded.org Cc: martin.jansa@gmail.com, Hieu Van Nguyen Subject: [meta-oe] gphoto2: Fix /usr/bin/gphoto2 runtime error Date: Thu, 16 Jan 2025 11:48:09 +0900 Message-Id: <20250116024809.348128-1-hieu2.nguyen@lge.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 16 Jan 2025 02:48:47 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/114905 From: Hieu Van Nguyen 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 --- meta-oe/recipes-graphics/gphoto2/gphoto2_2.5.28.bb | 6 ++---- 1 file 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} \ --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 }