Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/pam/
Date: Mon, 05 Sep 2022 02:23:03
Message-Id: 1662344556.d9a5223420c777c1edde14239f812d788d8848e7.sam@gentoo
1 commit: d9a5223420c777c1edde14239f812d788d8848e7
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 5 02:22:36 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 5 02:22:36 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9a52234
7
8 sys-libs/pam: workaround build failures on musl w/ sys-libs/libxcrypt[compat]
9
10 Closes: https://bugs.gentoo.org/867991
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 sys-libs/pam/pam-1.5.2-r2.ebuild | 15 ++++++++++++++-
14 1 file changed, 14 insertions(+), 1 deletion(-)
15
16 diff --git a/sys-libs/pam/pam-1.5.2-r2.ebuild b/sys-libs/pam/pam-1.5.2-r2.ebuild
17 index 428087494c40..5a8c46443f0d 100644
18 --- a/sys-libs/pam/pam-1.5.2-r2.ebuild
19 +++ b/sys-libs/pam/pam-1.5.2-r2.ebuild
20 @@ -9,7 +9,7 @@ MY_P="Linux-${PN^^}-${PV}"
21 # Can reconsider w/ EAPI 8 and IDEPEND, bug #810979
22 TMPFILES_OPTIONAL=1
23
24 -inherit autotools db-use fcaps toolchain-funcs usr-ldscript multilib-minimal
25 +inherit autotools db-use fcaps flag-o-matic toolchain-funcs usr-ldscript multilib-minimal
26
27 DESCRIPTION="Linux-PAM (Pluggable Authentication Modules)"
28 HOMEPAGE="https://github.com/linux-pam/linux-pam"
29 @@ -59,6 +59,19 @@ multilib_src_configure() {
30 # Do not let user's BROWSER setting mess us up. #549684
31 unset BROWSER
32
33 + # This whole weird has_version libxcrypt block can go once
34 + # musl systems have libxcrypt[system] if we ever make
35 + # that mandatory. See bug #867991.
36 + if use elibc_musl && ! has_version sys-libs/libxcrypt[system] ; then
37 + # Avoid picking up symbol-versioned compat symbol on musl systems
38 + export ac_cv_search_crypt_gensalt_rn=no
39 +
40 + # Need to avoid picking up the libxcrypt headers which define
41 + # CRYPT_GENSALT_IMPLEMENTS_AUTO_ENTROPY.
42 + cp "${ESYSROOT}"/usr/include/crypt.h "${T}"/crypt.h || die
43 + append-cppflags -I"${T}"
44 + fi
45 +
46 local myconf=(
47 CC_FOR_BUILD="$(tc-getBUILD_CC)"
48 --with-db-uniquename=-$(db_findver sys-libs/db)