sys-libs/pam: Fix build on musl

Closes: https://bugs.gentoo.org/832573
Co-authored-by: Sam James <sam@gentoo.org>
Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
This commit is contained in:
Jakov Smolić
2022-02-03 09:45:20 +01:00
parent d1f8740326
commit bfd01260a3
3 changed files with 25 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
Fix undefined reference to `libintl_dgettext` on musl
Bug: https://bugs.gentoo.org/832573
Upstream: https://github.com/linux-pam/linux-pam/pull/433
--- a/libpam/Makefile.am
+++ b/libpam/Makefile.am
@@ -21,7 +21,7 @@ noinst_HEADERS = pam_prelude.h pam_private.h pam_tokens.h \
include/pam_inline.h include/test_assert.h
libpam_la_LDFLAGS = -no-undefined -version-info 85:1:85
-libpam_la_LIBADD = @LIBAUDIT@ $(LIBPRELUDE_LIBS) $(ECONF_LIBS) @LIBDL@
+libpam_la_LIBADD = @LIBAUDIT@ $(LIBPRELUDE_LIBS) $(ECONF_LIBS) @LIBDL@ @LTLIBINTL@
if HAVE_VERSIONING
libpam_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libpam.map

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -46,6 +46,10 @@ PDEPEND=">=sys-auth/pambase-20200616"
S="${WORKDIR}/linux-${PN}-${GIT_COMMIT}"
PATCHES=(
"${FILESDIR}"/${PN}-1.5.1-musl.patch
)
src_prepare() {
default
touch ChangeLog || die

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -45,6 +45,10 @@ PDEPEND=">=sys-auth/pambase-20200616"
S="${WORKDIR}/${MY_P}"
PATCHES=(
"${FILESDIR}"/${PN}-1.5.1-musl.patch
)
src_prepare() {
default
touch ChangeLog || die