1 |
commit: 2c78de9033cf97213ddd4983b04df2eef995fc39 |
2 |
Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr> |
3 |
AuthorDate: Mon Dec 28 15:17:11 2020 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 28 15:17:11 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c78de90 |
7 |
|
8 |
sys-libs/musl-nscd: Fix build with gcc-10 |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/18635 |
11 |
Closes: https://bugs.gentoo.org/708632 |
12 |
Package-Manager: Portage-3.0.9, Repoman-3.0.1 |
13 |
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr> |
14 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
15 |
|
16 |
.../files/musl-nscd-1.0.2-fno-common.patch | 36 ++++++++++++++++++++++ |
17 |
sys-libs/musl-nscd/musl-nscd-1.0.2.ebuild | 6 ++-- |
18 |
2 files changed, 40 insertions(+), 2 deletions(-) |
19 |
|
20 |
diff --git a/sys-libs/musl-nscd/files/musl-nscd-1.0.2-fno-common.patch b/sys-libs/musl-nscd/files/musl-nscd-1.0.2-fno-common.patch |
21 |
new file mode 100644 |
22 |
index 00000000000..fce44ecdef7 |
23 |
--- /dev/null |
24 |
+++ b/sys-libs/musl-nscd/files/musl-nscd-1.0.2-fno-common.patch |
25 |
@@ -0,0 +1,36 @@ |
26 |
+--- a/include/modules.h |
27 |
++++ b/include/modules.h |
28 |
+@@ -28,7 +28,7 @@ struct mod_passwd { |
29 |
+ link_t link; |
30 |
+ }; |
31 |
+ |
32 |
+-list_t passwd_mods; |
33 |
+-list_t group_mods; |
34 |
++extern list_t passwd_mods; |
35 |
++extern list_t group_mods; |
36 |
+ |
37 |
+ #endif |
38 |
+--- a/src/main.c |
39 |
++++ b/src/main.c |
40 |
+@@ -18,6 +18,9 @@ |
41 |
+ #include "parse.h" |
42 |
+ #include "util.h" |
43 |
+ |
44 |
++list_t passwd_mods; |
45 |
++list_t group_mods; |
46 |
++ |
47 |
+ static void *get_dll(const char *service) |
48 |
+ { |
49 |
+ char *path; |
50 |
+--- a/src/socket_handle.c |
51 |
++++ b/src/socket_handle.c |
52 |
+@@ -19,6 +19,9 @@ |
53 |
+ #include "modules.h" |
54 |
+ #include "list.h" |
55 |
+ |
56 |
++extern list_t passwd_mods; |
57 |
++extern list_t group_mods; |
58 |
++ |
59 |
+ static int return_result(int fd, int swap, uint32_t reqtype, void *key); |
60 |
+ |
61 |
+ struct pthread_args { |
62 |
|
63 |
diff --git a/sys-libs/musl-nscd/musl-nscd-1.0.2.ebuild b/sys-libs/musl-nscd/musl-nscd-1.0.2.ebuild |
64 |
index 6d29e439755..41e38df7180 100644 |
65 |
--- a/sys-libs/musl-nscd/musl-nscd-1.0.2.ebuild |
66 |
+++ b/sys-libs/musl-nscd/musl-nscd-1.0.2.ebuild |
67 |
@@ -8,7 +8,7 @@ inherit systemd |
68 |
DESCRIPTION="musl-nscd is an implementation of the NSCD protocol for the musl libc" |
69 |
HOMEPAGE="https://github.com/pikhq/musl-nscd" |
70 |
|
71 |
-if [[ ${PV} == "9999" ]] ; then |
72 |
+if [[ ${PV} == *9999 ]] ; then |
73 |
inherit git-r3 |
74 |
EGIT_REPO_URI="https://github.com/pikhq/musl-nscd" |
75 |
EGIT_BRANCH=master |
76 |
@@ -25,8 +25,10 @@ DEPEND=" |
77 |
!sys-libs/glibc |
78 |
!sys-libs/uclibc" |
79 |
|
80 |
+PATCHES=( "${FILESDIR}"/${P}-fno-common.patch ) |
81 |
+ |
82 |
src_prepare() { |
83 |
- eapply_user |
84 |
+ default |
85 |
|
86 |
sed -i '/LDFLAGS_AUTO=-s/d' configure || die 'Cannot patch configure file' |
87 |
} |