Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/wol/, net-misc/wol/files/
Date: Thu, 27 Aug 2020 21:00:00
Message-Id: 1598561952.a9d1b1f359f8913a436f9f83d62d155916c40271.conikost@gentoo
1 commit: a9d1b1f359f8913a436f9f83d62d155916c40271
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 27 20:01:44 2020 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 27 20:59:12 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9d1b1f3
7
8 net-misc/wol: fix compilation with musl
9
10 Closes: https://bugs.gentoo.org/712558
11 Package-Manager: Portage-3.0.4, Repoman-3.0.1
12 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
13
14 net-misc/wol/files/wol-0.7.1-musl.patch | 17 +++++++++++++++++
15 net-misc/wol/wol-0.7.1-r2.ebuild | 2 ++
16 2 files changed, 19 insertions(+)
17
18 diff --git a/net-misc/wol/files/wol-0.7.1-musl.patch b/net-misc/wol/files/wol-0.7.1-musl.patch
19 new file mode 100644
20 index 00000000000..c7c0dc6028c
21 --- /dev/null
22 +++ b/net-misc/wol/files/wol-0.7.1-musl.patch
23 @@ -0,0 +1,17 @@
24 +--- a/lib/getline.h
25 ++++ b/lib/getline.h
26 +@@ -27,6 +27,7 @@
27 + # endif
28 + # endif
29 +
30 ++# if defined (__GLIBC__)
31 + # if __GLIBC__ < 2
32 + int
33 + getline PARAMS ((char **_lineptr, size_t *_n, FILE *_stream));
34 +@@ -34,5 +35,6 @@
35 + int
36 + getdelim PARAMS ((char **_lineptr, size_t *_n, int _delimiter, FILE *_stream));
37 + # endif
38 ++# endif
39 +
40 + #endif /* not GETLINE_H_ */
41
42 diff --git a/net-misc/wol/wol-0.7.1-r2.ebuild b/net-misc/wol/wol-0.7.1-r2.ebuild
43 index 8ee1f1db407..67f55caf695 100644
44 --- a/net-misc/wol/wol-0.7.1-r2.ebuild
45 +++ b/net-misc/wol/wol-0.7.1-r2.ebuild
46 @@ -14,6 +14,8 @@ SLOT="0"
47 KEYWORDS="amd64 arm ppc ppc64 x86"
48 IUSE="nls"
49
50 +PATCHES=( "${FILESDIR}/${P}-musl.patch" )
51 +
52 src_configure() {
53 local myeconfargs=(
54 --disable-rpath