libexif: remove unused version_underscore
PATCH 1/2 libexif: remove unused version_underscore
From: Ross Burton <[email protected]>
This function hasn't been used since the upgrade to 0.6.23 in 2021[1]
[1] oe-core 65a54f72e15f59bdf9d8c4618f3ef8510541d134
--- meta/recipes-support/libexif/libexif_0.6.24.bb | 3 --- 1 file changed, 3 deletions(-)
meta/recipes-support/libexif/libexif_0.6.24.bb +0 -3
@@ -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 \
Signature · 1 line
2.34.1
PATCH 2/2 libexif: improve ptest packaging
From: Ross Burton <[email protected]>
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.
--- 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(-)
meta/recipes-support/libexif/libexif/run-ptest +1 -1
@@ -1,3 +1,3 @@ #!/bin/sh -make -o Makefile runtest-TESTS +make -o Makefile SHELL=/bin/sh runtest-TESTS
meta/recipes-support/libexif/libexif_0.6.24.bb +4 -10
@@ -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"
Signature · 1 line
2.34.1
Re: [OE-core] [PATCH 2/2] libexif: improve ptest packaging
Quoted 9 lines · Ross Burton
From: Ross Burton <[email protected]>
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
Makefileto use/bin/shthere's no need to RDEPEND on bash.
Quoted 5 lines
Signed-off-by Ross Burton <[email protected]>---
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(-)
https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/6617
Lots of QA errors/warnings from this :(
Cheers,
Richard