1 |
commit: bfd01260a3fbdeb541d67a6c8ab6f1d7df23e456 |
2 |
Author: Jakov Smolić <jsmolic <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 3 08:45:20 2022 +0000 |
4 |
Commit: Jakov Smolić <jsmolic <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 3 08:46:52 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bfd01260 |
7 |
|
8 |
sys-libs/pam: Fix build on musl |
9 |
|
10 |
Closes: https://bugs.gentoo.org/832573 |
11 |
Co-authored-by: Sam James <sam <AT> gentoo.org> |
12 |
Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org> |
13 |
|
14 |
sys-libs/pam/files/pam-1.5.1-musl.patch | 15 +++++++++++++++ |
15 |
sys-libs/pam/pam-1.5.1_p20210622-r1.ebuild | 6 +++++- |
16 |
sys-libs/pam/pam-1.5.2-r1.ebuild | 6 +++++- |
17 |
3 files changed, 25 insertions(+), 2 deletions(-) |
18 |
|
19 |
diff --git a/sys-libs/pam/files/pam-1.5.1-musl.patch b/sys-libs/pam/files/pam-1.5.1-musl.patch |
20 |
new file mode 100644 |
21 |
index 000000000000..a1d5b1543daf |
22 |
--- /dev/null |
23 |
+++ b/sys-libs/pam/files/pam-1.5.1-musl.patch |
24 |
@@ -0,0 +1,15 @@ |
25 |
+Fix undefined reference to `libintl_dgettext` on musl |
26 |
+Bug: https://bugs.gentoo.org/832573 |
27 |
+Upstream: https://github.com/linux-pam/linux-pam/pull/433 |
28 |
+ |
29 |
+--- a/libpam/Makefile.am |
30 |
++++ b/libpam/Makefile.am |
31 |
+@@ -21,7 +21,7 @@ noinst_HEADERS = pam_prelude.h pam_private.h pam_tokens.h \ |
32 |
+ include/pam_inline.h include/test_assert.h |
33 |
+ |
34 |
+ libpam_la_LDFLAGS = -no-undefined -version-info 85:1:85 |
35 |
+-libpam_la_LIBADD = @LIBAUDIT@ $(LIBPRELUDE_LIBS) $(ECONF_LIBS) @LIBDL@ |
36 |
++libpam_la_LIBADD = @LIBAUDIT@ $(LIBPRELUDE_LIBS) $(ECONF_LIBS) @LIBDL@ @LTLIBINTL@ |
37 |
+ |
38 |
+ if HAVE_VERSIONING |
39 |
+ libpam_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libpam.map |
40 |
|
41 |
diff --git a/sys-libs/pam/pam-1.5.1_p20210622-r1.ebuild b/sys-libs/pam/pam-1.5.1_p20210622-r1.ebuild |
42 |
index bbc95832d99a..98f33edbb60a 100644 |
43 |
--- a/sys-libs/pam/pam-1.5.1_p20210622-r1.ebuild |
44 |
+++ b/sys-libs/pam/pam-1.5.1_p20210622-r1.ebuild |
45 |
@@ -1,4 +1,4 @@ |
46 |
-# Copyright 1999-2021 Gentoo Authors |
47 |
+# Copyright 1999-2022 Gentoo Authors |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
|
50 |
EAPI=7 |
51 |
@@ -46,6 +46,10 @@ PDEPEND=">=sys-auth/pambase-20200616" |
52 |
|
53 |
S="${WORKDIR}/linux-${PN}-${GIT_COMMIT}" |
54 |
|
55 |
+PATCHES=( |
56 |
+ "${FILESDIR}"/${PN}-1.5.1-musl.patch |
57 |
+) |
58 |
+ |
59 |
src_prepare() { |
60 |
default |
61 |
touch ChangeLog || die |
62 |
|
63 |
diff --git a/sys-libs/pam/pam-1.5.2-r1.ebuild b/sys-libs/pam/pam-1.5.2-r1.ebuild |
64 |
index 77719a8fded9..41f8b3081e5a 100644 |
65 |
--- a/sys-libs/pam/pam-1.5.2-r1.ebuild |
66 |
+++ b/sys-libs/pam/pam-1.5.2-r1.ebuild |
67 |
@@ -1,4 +1,4 @@ |
68 |
-# Copyright 1999-2021 Gentoo Authors |
69 |
+# Copyright 1999-2022 Gentoo Authors |
70 |
# Distributed under the terms of the GNU General Public License v2 |
71 |
|
72 |
EAPI=7 |
73 |
@@ -45,6 +45,10 @@ PDEPEND=">=sys-auth/pambase-20200616" |
74 |
|
75 |
S="${WORKDIR}/${MY_P}" |
76 |
|
77 |
+PATCHES=( |
78 |
+ "${FILESDIR}"/${PN}-1.5.1-musl.patch |
79 |
+) |
80 |
+ |
81 |
src_prepare() { |
82 |
default |
83 |
touch ChangeLog || die |