From patchwork Tue Feb 27 15:51:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 40155 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 8F459C5478C for ; Tue, 27 Feb 2024 15:51:52 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.15544.1709049109677231037 for ; Tue, 27 Feb 2024 07:51:49 -0800 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B7E88DA7 for ; Tue, 27 Feb 2024 07:52:27 -0800 (PST) Received: from oss-tx204.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id E25523F762 for ; Tue, 27 Feb 2024 07:51:48 -0800 (PST) From: ross.burton@arm.com To: openembedded-core@lists.openembedded.org Subject: [PATCH 1/2] libexif: remove unused version_underscore Date: Tue, 27 Feb 2024 15:51:44 +0000 Message-Id: <20240227155145.2679899-1-ross.burton@arm.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 ; Tue, 27 Feb 2024 15:51:52 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/196277 From: Ross Burton This function hasn't been used since the upgrade to 0.6.23 in 2021[1] [1] oe-core 65a54f72e15f59bdf9d8c4618f3ef8510541d134 Signed-off-by: Ross Burton --- meta/recipes-support/libexif/libexif_0.6.24.bb | 3 --- 1 file changed, 3 deletions(-) diff --git a/meta/recipes-support/libexif/libexif_0.6.24.bb b/meta/recipes-support/libexif/libexif_0.6.24.bb index 27e369a89a5..b407ee52de0 100644 --- a/meta/recipes-support/libexif/libexif_0.6.24.bb +++ b/meta/recipes-support/libexif/libexif_0.6.24.bb @@ -7,9 +7,6 @@ SECTION = "libs" LICENSE = "LGPL-2.1-only" LIC_FILES_CHKSUM = "file://COPYING;md5=243b725d71bb5df4a1e5920b344b86ad" -def version_underscore(v): - return "_".join(v.split(".")) - SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/libexif-${PV}.tar.bz2 \ file://0001-Add-serial-tests-config-needed-by-ptest.patch \ file://run-ptest \ From patchwork Tue Feb 27 15:51:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 40156 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 8F4DAC54798 for ; Tue, 27 Feb 2024 15:51:52 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.15545.1709049110170633939 for ; Tue, 27 Feb 2024 07:51:50 -0800 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 46B5EFEC for ; Tue, 27 Feb 2024 07:52:28 -0800 (PST) Received: from oss-tx204.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 7B7803F762 for ; Tue, 27 Feb 2024 07:51:49 -0800 (PST) From: ross.burton@arm.com To: openembedded-core@lists.openembedded.org Subject: [PATCH 2/2] libexif: improve ptest packaging Date: Tue, 27 Feb 2024 15:51:45 +0000 Message-Id: <20240227155145.2679899-2-ross.burton@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240227155145.2679899-1-ross.burton@arm.com> References: <20240227155145.2679899-1-ross.burton@arm.com> 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 ; Tue, 27 Feb 2024 15:51:52 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/196278 From: Ross Burton The NLS tests don't actually test anything useful and were not being ran anyway, so don't install them. Install the test binaries using libtool so that we install the actual binaries instead of libtool wrapper scripts. This means that if we also tell the Makefile to use /bin/sh there's no need to RDEPEND on bash. Signed-off-by: Ross Burton --- meta/recipes-support/libexif/libexif/run-ptest | 2 +- meta/recipes-support/libexif/libexif_0.6.24.bb | 14 ++++---------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/meta/recipes-support/libexif/libexif/run-ptest b/meta/recipes-support/libexif/libexif/run-ptest index 2d23159eb03..9713a1bec2d 100644 --- a/meta/recipes-support/libexif/libexif/run-ptest +++ b/meta/recipes-support/libexif/libexif/run-ptest @@ -1,3 +1,3 @@ #!/bin/sh -make -o Makefile runtest-TESTS +make -o Makefile SHELL=/bin/sh runtest-TESTS diff --git a/meta/recipes-support/libexif/libexif_0.6.24.bb b/meta/recipes-support/libexif/libexif_0.6.24.bb index b407ee52de0..69c91773097 100644 --- a/meta/recipes-support/libexif/libexif_0.6.24.bb +++ b/meta/recipes-support/libexif/libexif_0.6.24.bb @@ -23,18 +23,12 @@ do_compile_ptest() { } do_install_ptest() { - install ${B}/test/test*[!\.o] ${D}${PTEST_PATH} - for f in ${D}${PTEST_PATH}/test*; do - sed -i "s/\(LD_LIBRARY_PATH=\).*\(:\$LD_LIBRARY_PATH\)\"/\1.\2/" $f - done - install ${B}/test/Makefile ${D}${PTEST_PATH} sed -i -e "/^srcdir/c srcdir = \$\{PWD\}" ${D}${PTEST_PATH}/Makefile - install -d ${D}${PTEST_PATH}/nls - install ${B}/test/nls/*[!\.o] ${D}${PTEST_PATH}/nls - install -d ${D}${PTEST_PATH}/.libs - install ${B}/test/.libs/* ${D}${PTEST_PATH}/.libs + for f in ${B}/test/test*[!\.o]; do + libtool --mode=install install $f ${D}${PTEST_PATH} + done install ${S}/test/*.sh ${D}${PTEST_PATH} @@ -42,6 +36,6 @@ do_install_ptest() { install ${S}/test/testdata/* ${D}${PTEST_PATH}/testdata } -RDEPENDS:${PN}-ptest += "make bash" +RDEPENDS:${PN}-ptest += "make" BBCLASSEXTEND = "native nativesdk"