mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-05 12:38:09 -07:00
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:
15
sys-libs/pam/files/pam-1.5.1-musl.patch
Normal file
15
sys-libs/pam/files/pam-1.5.1-musl.patch
Normal 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
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user