xz: remove redundant PTEST_ENABLED conditional
PATCH 1/2 xz: remove redundant PTEST_ENABLED conditional
From: Ross Burton <[email protected]>
There's no need to conditionally include run-ptest in the SRC_URI.
Signed-off-by Ross Burton <[email protected]>
--- meta/recipes-extended/xz/xz_5.4.5.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-extended/xz/xz_5.4.5.bb +1 -1
@@ -25,7 +25,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=c8ea84ebe7b93cce676b54355dc6b2c0 \ " SRC_URI = "https://tukaani.org/xz/xz-${PV}.tar.gz \ - ${@bb.utils.contains('PTEST_ENABLED', '1', 'file://run-ptest', '', d)} \ + file://run-ptest \ " SRC_URI[sha256sum] = "135c90b934aee8fbc0d467de87a05cb70d627da36abe518c357a873709e5b7d6" UPSTREAM_CHECK_REGEX = "xz-(?P<pver>\d+(\.\d+)+)\.tar"
Signature · 1 line
2.34.1
PATCH 2/2 libpam: remove redundant PTEST_ENABLED conditional
From: Ross Burton <[email protected]>
do_install_ptest is only called if ptest is enabled, so don't guard it again.
Signed-off-by Ross Burton <[email protected]>
--- meta/recipes-extended/pam/libpam_1.5.3.bb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)
meta/recipes-extended/pam/libpam_1.5.3.bb +3 -5
@@ -163,11 +163,9 @@ do_install() { } do_install_ptest() { - if [ ${PTEST_ENABLED} = "1" ]; then - mkdir -p ${D}${PTEST_PATH}/tests - install -m 0755 ${B}/tests/.libs/* ${D}${PTEST_PATH}/tests - install -m 0644 ${S}/tests/confdir ${D}${PTEST_PATH}/tests - fi + mkdir -p ${D}${PTEST_PATH}/tests + install -m 0755 ${B}/tests/.libs/* ${D}${PTEST_PATH}/tests + install -m 0644 ${S}/tests/confdir ${D}${PTEST_PATH}/tests } pkg_postinst:${PN}() {
Signature · 1 line
2.34.1