From ba8266267b4a89285bba0fceeaa1507957d318fb Mon Sep 17 00:00:00 2001 From: Kai Kang Date: Wed, 19 Mar 2025 01:15:32 -0700 Subject: [PATCH] libpam: add ptest cases back It removes the installation of ptest cases when upgrade libpam to 1.7.0. Add them back to make ptest work. And 2 more cases in libpam 1.7.0. Signed-off-by: Kai Kang Signed-off-by: Khem Raj Signed-off-by: Richard Purdie --- meta/recipes-extended/pam/libpam_1.7.0.bb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meta/recipes-extended/pam/libpam_1.7.0.bb b/meta/recipes-extended/pam/libpam_1.7.0.bb index 1be3c9e2bb9..4abc52bd93b 100644 --- a/meta/recipes-extended/pam/libpam_1.7.0.bb +++ b/meta/recipes-extended/pam/libpam_1.7.0.bb @@ -142,6 +142,12 @@ do_install:append() { fi } +do_install_ptest() { + mkdir -p ${D}${PTEST_PATH}/tests + find ${B}/tests -maxdepth 1 -type f -exec cp {} ${D}${PTEST_PATH}/tests \; + install -m 0644 ${S}/tests/confdir ${D}${PTEST_PATH}/tests +} + pkg_postinst:${PN}() { if [ -z "$D" ] && [ -e /etc/init.d/populate-volatile.sh ] ; then /etc/init.d/populate-volatile.sh update -- 2.47.3