summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2021-08-04 11:59:30 -0400
committerMike Gilbert <floppym@gentoo.org>2021-08-04 11:59:30 -0400
commit99492d04ef5f0e1834eaf0930951a492e22a3092 (patch)
treeb7b3fde18714c81b178191ebc5e57a938a745c66 /sys-apps/shadow
parentdev-perl/PerlIO-utf8_strict: Added ~mips to KEYWORDS (diff)
downloadgentoo-99492d04ef5f0e1834eaf0930951a492e22a3092.tar.gz
gentoo-99492d04ef5f0e1834eaf0930951a492e22a3092.tar.bz2
gentoo-99492d04ef5f0e1834eaf0930951a492e22a3092.zip
sys-apps/shadow: fix build with cracklib enabled
Closes: https://bugs.gentoo.org/806124 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'sys-apps/shadow')
-rw-r--r--sys-apps/shadow/files/shadow-4.9-libcrack.patch27
-rw-r--r--sys-apps/shadow/shadow-4.9-r1.ebuild1
2 files changed, 28 insertions, 0 deletions
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 000000000000..5c954feac1ae
--- /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 <floppym@gentoo.org>
+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 <floppym@gentoo.org>
+---
+ 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 4e3c4cc53a2b..545c8cb652b1 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() {