Skip to contentSkip to conversation

xz: remove redundant PTEST_ENABLED conditional

PATCH New [email protected] 1 participant 2 messages Feb 12, 2024

lore
Share & tools
lore
#0 lore raw

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.

---
 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
index 0f0849c3e5b..ad519e56894 100644
@@ -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
#1 lore raw

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.

---
 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
index 809d927f55b..4dd98906064 100644
@@ -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