commit: 99492d04ef5f0e1834eaf0930951a492e22a3092 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> AuthorDate: Wed Aug 4 15:59:30 2021 +0000 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> CommitDate: Wed Aug 4 15:59:30 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99492d04
sys-apps/shadow: fix build with cracklib enabled Closes: https://bugs.gentoo.org/806124 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> sys-apps/shadow/files/shadow-4.9-libcrack.patch | 27 +++++++++++++++++++++++++ sys-apps/shadow/shadow-4.9-r1.ebuild | 1 + 2 files changed, 28 insertions(+) diff --git a/sys-apps/shadow/files/shadow-4.9-libcrack.patch b/sys-apps/shadow/files/shadow-4.9-libcrack.patch new file mode 100644 index 00000000000..5c954feac1a --- /dev/null +++ b/sys-apps/shadow/files/shadow-4.9-libcrack.patch @@ -0,0 +1,27 @@ +From 6becc82e262205f8a23bf9fe1127af57286826ee Mon Sep 17 00:00:00 2001 +From: Mike Gilbert <[email protected]> +Date: Mon, 2 Aug 2021 11:51:44 -0400 +Subject: [PATCH] libsubid: fix build with libcrack + +Fixes a link failure: + + ../libsubid/.libs/libsubid.so: undefined reference to `FascistCheck' + +Bug: https://bugs.gentoo.org/806124 +Signed-off-by: Mike Gilbert <[email protected]> +--- + libsubid/Makefile.am | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/libsubid/Makefile.am b/libsubid/Makefile.am +index 8bba02ab..bfc982ef 100644 +--- a/libsubid/Makefile.am ++++ b/libsubid/Makefile.am +@@ -11,6 +11,7 @@ MISCLIBS = \ + $(LIBAUDIT) \ + $(LIBSELINUX) \ + $(LIBSEMANAGE) \ ++ $(LIBCRACK) \ + $(LIBCRYPT_NOPAM) \ + $(LIBSKEY) \ + $(LIBMD) \ diff --git a/sys-apps/shadow/shadow-4.9-r1.ebuild b/sys-apps/shadow/shadow-4.9-r1.ebuild index 4e3c4cc53a2..545c8cb652b 100644 --- a/sys-apps/shadow/shadow-4.9-r1.ebuild +++ b/sys-apps/shadow/shadow-4.9-r1.ebuild @@ -56,6 +56,7 @@ PATCHES=( "${FILESDIR}/${PN}-4.1.3-dots-in-usernames.patch" "${FILESDIR}/${P}-libsubid_pam_linking.patch" "${FILESDIR}/${P}-libsubid_oot_build.patch" + "${FILESDIR}/shadow-4.9-libcrack.patch" ) src_prepare() {
