commit:     b1c12e1317fb71bc18eafc71fd2188ff78b12259
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Jan  8 10:00:48 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jan  8 10:01:04 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1c12e13

sys-libs/pam: add elogind dep, only build logind module for native ABI

elogind isn't multilib and I don't really think we want/need the
module for non-native ABI.

Closes: https://bugs.gentoo.org/947714
Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...pam-1.7.0_p20241230-r1.ebuild => pam-1.7.0_p20241230-r2.ebuild} | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/sys-libs/pam/pam-1.7.0_p20241230-r1.ebuild 
b/sys-libs/pam/pam-1.7.0_p20241230-r2.ebuild
similarity index 97%
rename from sys-libs/pam/pam-1.7.0_p20241230-r1.ebuild
rename to sys-libs/pam/pam-1.7.0_p20241230-r2.ebuild
index b99992b49517..bbf91688ecec 100644
--- a/sys-libs/pam/pam-1.7.0_p20241230-r1.ebuild
+++ b/sys-libs/pam/pam-1.7.0_p20241230-r2.ebuild
@@ -53,8 +53,9 @@ DEPEND="
        audit? ( >=sys-process/audit-2.2.2[${MULTILIB_USEDEP}] )
        berkdb? ( >=sys-libs/db-4.8.30-r1:=[${MULTILIB_USEDEP}] )
        !berkdb? ( sys-libs/gdbm:=[${MULTILIB_USEDEP}] )
+       elogind? ( sys-auth/elogind )
        selinux? ( >=sys-libs/libselinux-2.2.2-r4[${MULTILIB_USEDEP}] )
-       systemd? ( sys-apps/systemd:=[${MULTILIB_USEDEP}] )
+       systemd? ( sys-apps/systemd:= )
        nis? (
                net-libs/libnsl:=[${MULTILIB_USEDEP}]
                >=net-libs/libtirpc-0.2.4-r2:=[${MULTILIB_USEDEP}]
@@ -118,8 +119,8 @@ multilib_src_configure() {
                # TODO: lastlog is enabled again for now by us as elogind 
support
                # wasn't available at first. Even then, disabling lastlog will
                # probably need a news item.
-               $(meson_feature systemd logind)
-               $(meson_feature elogind)
+               $(meson_native_use_feature systemd logind)
+               $(meson_native_use_feature elogind)
                -Dpam_lastlog=enabled
        )
 

Reply via email to