]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
libpam: use libdir in conditional
authorDaniel McGregor <daniel.mcgregor@vecima.com>
Thu, 19 Sep 2024 16:25:00 +0000 (10:25 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 20 Sep 2024 14:56:27 +0000 (15:56 +0100)
Using the usrmerge distro feature for this check causes the -native
variant's build to fail. Simplify the test to be correct for both
native and target builds.

Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/pam/libpam_1.6.1.bb

index b9ef564f5648fa1d14aaf55e7a3fba2d586cee65..c9ef40bf23493e97422de40ac08d688c4aadfa52 100644 (file)
@@ -155,7 +155,7 @@ do_install() {
        if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
                echo "session optional pam_systemd.so" >> ${D}${sysconfdir}/pam.d/common-session
        fi
-       if ${@bb.utils.contains('DISTRO_FEATURES','usrmerge','false','true',d)}; then
+       if [ "${base_libdir}" != "${libdir}" ]; then
                install -d ${D}/${libdir}/
                mv ${D}/${base_libdir}/pkgconfig ${D}/${libdir}/
        fi