Gentoo Archives: gentoo-commits

From: Aric Belsito <lluixhi@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: dev-libs/libbsd/files/, dev-libs/libbsd/
Date: Sun, 18 Jun 2017 15:49:28
Message-Id: 1497800922.295f8291b2baa9ddae86f77c1eb69b8459154358.lluixhi@gentoo
1 commit: 295f8291b2baa9ddae86f77c1eb69b8459154358
2 Author: Aric Belsito <lluixhi <AT> gmail <DOT> com>
3 AuthorDate: Sun Jun 18 15:48:42 2017 +0000
4 Commit: Aric Belsito <lluixhi <AT> gmail <DOT> com>
5 CommitDate: Sun Jun 18 15:48:42 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=295f8291
7
8 dev-libs/libbsd: version bump to 0.8.3-r2
9
10 refresh patches, remove r99 suffix
11
12 dev-libs/libbsd/Manifest | 11 +-
13 .../libbsd/files/libbsd-0.8.2-fix-headers.patch | 44 ---
14 dev-libs/libbsd/files/libbsd-0.8.2-musl.patch | 39 +++
15 .../libbsd/files/libbsd-0.8.2-remore-funopen.patch | 33 ---
16 .../files/libbsd-0.8.2-replace__BEGIN_DECLS.patch | 323 ---------------------
17 dev-libs/libbsd/files/libbsd-0.8.3-cdefs.patch | 181 ++++++++++++
18 dev-libs/libbsd/files/libbsd-0.8.3-musl.patch | 27 ++
19 ...libbsd-0.8.2-r99.ebuild => libbsd-0.8.2.ebuild} | 28 +-
20 ...bsd-0.8.2-r99.ebuild => libbsd-0.8.3-r2.ebuild} | 40 +--
21 ...libbsd-0.8.2-r99.ebuild => libbsd-0.8.3.ebuild} | 36 +--
22 10 files changed, 306 insertions(+), 456 deletions(-)
23
24 diff --git a/dev-libs/libbsd/Manifest b/dev-libs/libbsd/Manifest
25 index 559bea3..c8c1459 100644
26 --- a/dev-libs/libbsd/Manifest
27 +++ b/dev-libs/libbsd/Manifest
28 @@ -1,6 +1,9 @@
29 -AUX libbsd-0.8.2-fix-headers.patch 1525 SHA256 3b23e44da0958b88eb6c6e510d8c2955380eb5d1029a8bbfd75d112aa411d96c SHA512 9f536ea8a528947069415b9208f7b573152d155bbd6dc180babdb9ec885f81e5d6dea2a04e4e47865fd66d37a1242ac801add077be364f0c0fccedefefe8f798 WHIRLPOOL 778293a18d2219d752759815b2abd5566c2aea470956432f09d61efb12d79d3895b93402865bf882f9bdc1ed549c387eeed916207ba59af42d5a02a8d773f510
30 -AUX libbsd-0.8.2-remore-funopen.patch 1243 SHA256 87271accf42ad6ea0f8d4c1a96ffc8bc6f55d0f73f0a6605738b270b35afd08b SHA512 2c593fbbe7f164c1b0d197cbad18a1d6645165cbd34064aebaf2c8c930dbe2aafbb15a6b7240d26eaae84606fef3ec672d1cefbc65c6f4d7d6a39971306becc9 WHIRLPOOL f35dd53c6c3a2f74b6e2ed9980e3f3795d29f2f5f5df0fae5c7d40df75d003e880263dc940ee1abdfa159c4d98fce1cbee7dcb57ebb6bb3b11227b7eb57494e9
31 -AUX libbsd-0.8.2-replace__BEGIN_DECLS.patch 9764 SHA256 afbb8973809150cdcbe3482fb71c99621c16347b293e590d36a4104391397809 SHA512 6afdad87ca30c624382223b1891b9073e5b65e791a85eeb9d1620e37106b4822bcf42a247184be3ead6576685cb74db23b2ce2c4965d272cb371a799eaf604f3 WHIRLPOOL 6ee85e38e9d7d40f2d650da250d99e99d82d340d768417cd0d0d6f6c77d85e49991d6903701bdb25fd83a9b161770177c2af218fe598f7b02665489181fec14e
32 +AUX libbsd-0.8.2-musl.patch 1160 SHA256 9960810bd2c2173ef56d3c40bd3c07b88d278fadbce6c533e83d5baffd673174 SHA512 1a5db0e4cb1a46b92d5415562246df66017b0daf3cf7d208c98a4da09e6277ae97ab7783310a410e8d93496a8698a6b279c7a2c48d74e433b494f938f0cd018f WHIRLPOOL 3dfdbb90333dad189335520cbdd698ce071d2a33e5e4a5289edd72d91155e5f75975ffac7f41699a4bd4ce0271f568b4568daa4a71334dc18d8d0e3dad89f7a6
33 +AUX libbsd-0.8.3-cdefs.patch 6102 SHA256 52c3453e878a7a4aad76977e40bafb82a59ddde217089fcfec9e92e54cdd7572 SHA512 924021930911012441414b077541b18ad68a283568dbc45bd27ab734e868cf1fefb59d8aa2f75bea7c8fe100169426c2c885d8da3e88456e946725897890e5e2 WHIRLPOOL 4ef017c98f6b30207e25bf677c37b7729208393beb9066ca3fd19057b65fd87fc4ed6aee031f578f3482ae536384690d1872f64a9357cafb9b336e43950d8c2e
34 +AUX libbsd-0.8.3-musl.patch 784 SHA256 9d8955d027719eb9d8209b9ebf3fc142b70d6185d32bb89d28a82b6143b3718e SHA512 7f8147a60c3d5dd62757045df67e13c7a09e9fbc1c96b457adf4efa77f6f3271be72d9f0fe1bfbccd0bc2eaf1502eed039030ef5ad53f2e30a7fa28b4e988d77 WHIRLPOOL 3c27788198ee7ede664ad9b095e15c83bdfe0f26b822a63dd79709837b92eb63929ac184449ec8fc72d71424c7c3fa9eb3371610e922248653b999010151bfe1
35 DIST libbsd-0.8.2.tar.xz 344292 SHA256 b2f644cae94a6e2fe109449c20ad79a0f6ee4faec2205b07eefa0020565e250a SHA512 2230d51a30a0c3a8518c7e325036d2b578c8c2b47525c2d0d5f530d28d82227ad48b50341e44521db21f99208fe7c0df7313254c90e3c92da1c8664a8cbb87c5 WHIRLPOOL 4f9b09aaa7c0775cd46bf0aaaba9e9a7f07040262739002bf3966aace3bb4d782f96b176e2c489e7d7cbc0840eecc463a414dee1b5c92414c9a821796d739290
36 -EBUILD libbsd-0.8.2-r99.ebuild 1268 SHA256 a74971fd7df08e64944b25c91fdc951d3d5c9c4297af4650e04385c8da69675c SHA512 0c9cbd722111b40d2260695431175ddc1583a98a6c103d0d048f46a1f36550335dffe604cb0cc73fc9d21887a92d092cc6f1a7bc738708371033d5cdb22b1567 WHIRLPOOL 4002f15ada0f76029b3fd0dd67f586174392a4f1412e855f1c0da6cf0a198f0afae1492637db6404586b062534874a8cc520055e940196299947208983eda8e2
37 +DIST libbsd-0.8.3.tar.xz 356772 SHA256 934b634f4dfd865b6482650b8f522c70ae65c463529de8be907b53c89c3a34a8 SHA512 155b895d6bd62b180718d65a2cda7484946c492d52735a57b51005705dfe4528b6a72e8745acea47b01fe68e3bbbe3c036c5e9998a8d06fc79efe2b96a04767f WHIRLPOOL ab74a85813ea3308e7e4c53b7a46f4b93e4dff4d091964a6347f9960729e8eb4c8a2a0866938de508caf47caf9371f14499fcb0cc4aa30da06f501f4ccad9ef2
38 +EBUILD libbsd-0.8.2.ebuild 1235 SHA256 3bd39fb377334b96185a7b7022eab7e80a5b635ccaebf4a464a6dc020c2dddd6 SHA512 8101da8fb30a3fd3cbbbbb52c2a85c3537f743aba670b4917f2e6e7d29ef946ecabb8031f97b847752a6d48d58dacba0f4aeac1402a271f0b93a32ed05f60f4d WHIRLPOOL ac583480897e075e68d6a076a322792914896b7e00ae4a2e161b47cbe5a26642b4e84fc84ca69219d3d1c6069832bdb89101c65e29a28cdc08d36f0c203ca664
39 +EBUILD libbsd-0.8.3-r2.ebuild 1367 SHA256 88530ca86520693d45e2ba1f518c5a78ab30e01ea6305e6954e5def7294142f8 SHA512 b103da5c43a6c4ae5b8b9f4448d304fcb34265249af2ee986a6b3e52bb8e587b3aa9b4d5bdcd40871d6e09b703898fb0777748bff084622826743f9f671401c7 WHIRLPOOL 4244b6f7bb3ba49d7163f617bd8577ae2c4081f53420f19b991bfcbf40b33b48f108cb874882700d159fe605027595faddaff88ca07799cc156e5c5927bb06bb
40 +EBUILD libbsd-0.8.3.ebuild 1276 SHA256 e2d7c73ffaa1eae5bfee67693183100c346db5adb2841ac63ac30acd114ca104 SHA512 9051d6869bebaad74992aafc54d60551d3829ed9bd8ec59838fc2602138f40361ec92d56f818f7f537f0b90d56c5d4506c96f89d7689f29548d40896910da94a WHIRLPOOL 608370f87e1d265a6fddf65d53c4ca0217b34d5686daecf2bc6eafae35aaa11dad46850ece56567a2107d3818ada680c3c3682c98a86047d6678fb68d18ca725
41 MISC metadata.xml 276 SHA256 6bb81cdb026b199d78fb2a2327320a915a3bd241a9300bb069bd9c998521f613 SHA512 673180ba375ea401c0a8f197d516417b3f9361b11943c71bac88b0d0b1407b0bc657f5763c6fb6e429cc6ee112869a2247083fe56743e9ce918855c0ea929e59 WHIRLPOOL d494386e01171fe51879cf968a6cebca04c22477f3b8a52bfdd17b9ee06afd99c3979396f7abf40bee698d6fbb060e2f37e083cb3ed010c018d84211a2bc7cd0
42
43 diff --git a/dev-libs/libbsd/files/libbsd-0.8.2-fix-headers.patch b/dev-libs/libbsd/files/libbsd-0.8.2-fix-headers.patch
44 deleted file mode 100644
45 index 890c690..0000000
46 --- a/dev-libs/libbsd/files/libbsd-0.8.2-fix-headers.patch
47 +++ /dev/null
48 @@ -1,44 +0,0 @@
49 -diff -Naur /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/include/bsd/sys/cdefs.h libbsd-0.8.2/include/bsd/sys/cdefs.h
50 ---- /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/include/bsd/sys/cdefs.h 2015-09-23 05:59:27.000000000 +0000
51 -+++ libbsd-0.8.2/include/bsd/sys/cdefs.h 2016-04-04 22:04:30.264000000 +0000
52 -@@ -24,11 +24,13 @@
53 - * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
54 - */
55 -
56 -+/*
57 - #ifdef LIBBSD_OVERLAY
58 - #include_next <sys/cdefs.h>
59 - #else
60 - #include <sys/cdefs.h>
61 - #endif
62 -+*/
63 -
64 - #ifndef LIBBSD_SYS_CDEFS_H
65 - #define LIBBSD_SYS_CDEFS_H
66 -diff -Naur /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/src/flopen.c libbsd-0.8.2/src/flopen.c
67 ---- /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/src/flopen.c 2011-07-05 16:56:44.000000000 +0000
68 -+++ libbsd-0.8.2/src/flopen.c 2016-04-04 23:46:26.120000000 +0000
69 -@@ -35,6 +35,7 @@
70 - #include <stdarg.h>
71 - #include <unistd.h>
72 - #include <libutil.h>
73 -+#include <fcntl.h>
74 -
75 - int
76 - flopen(const char *path, int flags, ...)
77 -diff -Naur /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/src/nlist.c libbsd-0.8.2/src/nlist.c
78 ---- /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/src/nlist.c 2015-09-23 05:59:34.000000000 +0000
79 -+++ libbsd-0.8.2/src/nlist.c 2016-04-05 00:22:48.056000000 +0000
80 -@@ -39,10 +39,11 @@
81 - #include <arpa/inet.h>
82 -
83 - #include <errno.h>
84 --#include <a.out.h>
85 -+#include <linux/a.out.h>
86 - #include <stdio.h>
87 - #include <string.h>
88 - #include <unistd.h>
89 -+#include <fcntl.h>
90 -
91 - #if !defined(__NO_A_OUT_SUPPORT)
92 - #define _NLIST_DO_AOUT
93
94 diff --git a/dev-libs/libbsd/files/libbsd-0.8.2-musl.patch b/dev-libs/libbsd/files/libbsd-0.8.2-musl.patch
95 new file mode 100644
96 index 0000000..bc1f1e7
97 --- /dev/null
98 +++ b/dev-libs/libbsd/files/libbsd-0.8.2-musl.patch
99 @@ -0,0 +1,39 @@
100 +diff -Naur libbsd-0.8.2.orig/src/flopen.c libbsd-0.8.2/src/flopen.c
101 +--- libbsd-0.8.2.orig/src/flopen.c 2011-07-05 09:56:44.000000000 -0700
102 ++++ libbsd-0.8.2/src/flopen.c 2016-02-06 17:45:19.491982943 -0800
103 +@@ -32,6 +32,7 @@
104 + #include <sys/stat.h>
105 +
106 + #include <errno.h>
107 ++#include <fcntl.h>
108 + #include <stdarg.h>
109 + #include <unistd.h>
110 + #include <libutil.h>
111 +diff -Naur libbsd-0.8.2.orig/src/funopen.c libbsd-0.8.2/src/funopen.c
112 +--- libbsd-0.8.2.orig/src/funopen.c 2015-09-22 10:56:09.000000000 -0700
113 ++++ libbsd-0.8.2/src/funopen.c 2016-02-06 17:45:38.954982595 -0800
114 +@@ -137,6 +137,4 @@
115 +
116 + return fopencookie(cookiewrap, mode, funcswrap);
117 + }
118 +-#else
119 +-#error "Function funopen() needs to be ported."
120 + #endif
121 +diff -Naur libbsd-0.8.2.orig/src/nlist.c libbsd-0.8.2/src/nlist.c
122 +--- libbsd-0.8.2.orig/src/nlist.c 2015-09-22 22:59:34.000000000 -0700
123 ++++ libbsd-0.8.2/src/nlist.c 2016-02-06 17:46:01.065982199 -0800
124 +@@ -39,11 +39,13 @@
125 + #include <arpa/inet.h>
126 +
127 + #include <errno.h>
128 +-#include <a.out.h>
129 ++#include <fcntl.h>
130 + #include <stdio.h>
131 + #include <string.h>
132 + #include <unistd.h>
133 +
134 ++#include "nlist.h"
135 ++
136 + #if !defined(__NO_A_OUT_SUPPORT)
137 + #define _NLIST_DO_AOUT
138 + #endif
139
140 diff --git a/dev-libs/libbsd/files/libbsd-0.8.2-remore-funopen.patch b/dev-libs/libbsd/files/libbsd-0.8.2-remore-funopen.patch
141 deleted file mode 100644
142 index 0da444d..0000000
143 --- a/dev-libs/libbsd/files/libbsd-0.8.2-remore-funopen.patch
144 +++ /dev/null
145 @@ -1,33 +0,0 @@
146 -diff -Naur /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/man/Makefile.am libbsd-0.8.2/man/Makefile.am
147 ---- /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/man/Makefile.am 2015-11-30 22:48:50.000000000 +0000
148 -+++ libbsd-0.8.2/man/Makefile.am 2016-04-05 00:23:52.848000000 +0000
149 -@@ -29,7 +29,6 @@
150 - flopen.3 \
151 - fmtcheck.3 \
152 - fparseln.3 \
153 -- funopen.3bsd \
154 - getbsize.3 \
155 - getmode.3 \
156 - getpeereid.3 \
157 -diff -Naur /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/src/Makefile.am libbsd-0.8.2/src/Makefile.am
158 ---- /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/src/Makefile.am 2015-12-14 02:34:40.000000000 +0000
159 -+++ libbsd-0.8.2/src/Makefile.am 2016-04-05 00:14:59.360000000 +0000
160 -@@ -74,7 +74,6 @@
161 - fmtcheck.c \
162 - fparseln.c \
163 - fpurge.c \
164 -- funopen.c \
165 - getbsize.c \
166 - getpeereid.c \
167 - hash/md5.c \
168 -diff -Naur /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/test/Makefile.am libbsd-0.8.2/test/Makefile.am
169 ---- /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/test/Makefile.am 2015-12-14 02:34:40.000000000 +0000
170 -+++ libbsd-0.8.2/test/Makefile.am 2016-04-05 00:24:03.592000000 +0000
171 -@@ -36,7 +36,6 @@
172 - endian \
173 - humanize \
174 - fgetln \
175 -- funopen \
176 - fparseln \
177 - fpurge \
178 - proctitle-init \
179
180 diff --git a/dev-libs/libbsd/files/libbsd-0.8.2-replace__BEGIN_DECLS.patch b/dev-libs/libbsd/files/libbsd-0.8.2-replace__BEGIN_DECLS.patch
181 deleted file mode 100644
182 index 38fcb45..0000000
183 --- a/dev-libs/libbsd/files/libbsd-0.8.2-replace__BEGIN_DECLS.patch
184 +++ /dev/null
185 @@ -1,323 +0,0 @@
186 -diff -Naur /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/include/bsd/err.h libbsd-0.8.2/include/bsd/err.h
187 ---- /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/include/bsd/err.h 2015-12-13 23:58:51.000000000 +0000
188 -+++ libbsd-0.8.2/include/bsd/err.h 2016-04-04 23:37:30.448000000 +0000
189 -@@ -42,7 +42,10 @@
190 -
191 - #include <stdarg.h>
192 -
193 --__BEGIN_DECLS
194 -+/* __BEGIN_DECLS */
195 -+#ifdef __cplusplus
196 -+extern "C" {
197 -+#endif
198 - void warnc(int code, const char *format, ...)
199 - __printflike(2, 3);
200 - void vwarnc(int code, const char *format, va_list ap)
201 -@@ -51,6 +54,9 @@
202 - __printflike(3, 4);
203 - void verrc(int status, int code, const char *format, va_list ap)
204 - __printflike(3, 0);
205 --__END_DECLS
206 -+#ifdef __cplusplus
207 -+}
208 -+#endif
209 -+/* __END_DECLS */
210 -
211 - #endif
212 -diff -Naur /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/include/bsd/libutil.h libbsd-0.8.2/include/bsd/libutil.h
213 ---- /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/include/bsd/libutil.h 2015-09-22 17:56:09.000000000 +0000
214 -+++ libbsd-0.8.2/include/bsd/libutil.h 2016-04-04 23:37:42.336000000 +0000
215 -@@ -53,7 +53,10 @@
216 - ino_t pf_ino;
217 - };
218 -
219 --__BEGIN_DECLS
220 -+/* __BEGIN_DECLS */
221 -+#ifdef __cplusplus
222 -+extern "C" {
223 -+#endif
224 - int humanize_number(char *buf, size_t len, int64_t bytes,
225 - const char *suffix, int scale, int flags);
226 - int expand_number(const char *_buf, uint64_t *_num);
227 -@@ -66,7 +69,10 @@
228 - int pidfile_remove(struct pidfh *pfh);
229 -
230 - char *fparseln(FILE *, size_t *, size_t *, const char[3], int);
231 --__END_DECLS
232 -+#ifdef __cplusplus
233 -+}
234 -+#endif
235 -+/* __END_DECLS */
236 -
237 - /* humanize_number(3) */
238 - #define HN_DECIMAL 0x01
239 -diff -Naur /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/include/bsd/md5.h libbsd-0.8.2/include/bsd/md5.h
240 ---- /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/include/bsd/md5.h 2015-12-13 23:58:59.000000000 +0000
241 -+++ libbsd-0.8.2/include/bsd/md5.h 2016-04-04 23:37:50.496000000 +0000
242 -@@ -30,7 +30,10 @@
243 - #include <sys/cdefs.h>
244 - #include <sys/types.h>
245 -
246 --__BEGIN_DECLS
247 -+/* __BEGIN_DECLS */
248 -+#ifdef __cplusplus
249 -+extern "C" {
250 -+#endif
251 - void MD5Init(MD5_CTX *);
252 - void MD5Update(MD5_CTX *, const uint8_t *, size_t)
253 - __attribute__((__bounded__(__string__,2,3)));
254 -@@ -49,6 +52,9 @@
255 - char *MD5Data(const uint8_t *, size_t, char *)
256 - __attribute__((__bounded__(__string__,1,2)))
257 - __attribute__((__bounded__(__minbytes__,3,MD5_DIGEST_STRING_LENGTH)));
258 --__END_DECLS
259 -+#ifdef __cplusplus
260 -+}
261 -+#endif
262 -+/* __END_DECLS */
263 -
264 - #endif /* _MD5_H_ */
265 -diff -Naur /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/include/bsd/nlist.h libbsd-0.8.2/include/bsd/nlist.h
266 ---- /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/include/bsd/nlist.h 2015-09-22 17:56:09.000000000 +0000
267 -+++ libbsd-0.8.2/include/bsd/nlist.h 2016-04-04 22:47:44.656000000 +0000
268 -@@ -30,8 +30,14 @@
269 - #include <sys/cdefs.h>
270 - #include <a.out.h>
271 -
272 --__BEGIN_DECLS
273 -+/* __BEGIN_DECLS */
274 -+#ifdef __cplusplus
275 -+extern "C" {
276 -+#endif
277 - extern int nlist(const char *filename, struct nlist *list);
278 --__END_DECLS
279 -+#ifdef __cplusplus
280 -+}
281 -+#endif
282 -+/* __END_DECLS */
283 -
284 - #endif
285 -diff -Naur /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/include/bsd/readpassphrase.h libbsd-0.8.2/include/bsd/readpassphrase.h
286 ---- /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/include/bsd/readpassphrase.h 2011-07-05 18:58:44.000000000 +0000
287 -+++ libbsd-0.8.2/include/bsd/readpassphrase.h 2016-04-04 23:38:19.276000000 +0000
288 -@@ -34,8 +34,14 @@
289 - #include <sys/cdefs.h>
290 - #include <sys/types.h>
291 -
292 --__BEGIN_DECLS
293 -+/* __BEGIN_DECLS */
294 -+#ifdef __cplusplus
295 -+extern "C" {
296 -+#endif
297 - char * readpassphrase(const char *, char *, size_t, int);
298 --__END_DECLS
299 -+#ifdef __cplusplus
300 -+}
301 -+#endif
302 -+/* __END_DECLS */
303 -
304 - #endif /* !_READPASSPHRASE_H_ */
305 -diff -Naur /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/include/bsd/stdio.h libbsd-0.8.2/include/bsd/stdio.h
306 ---- /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/include/bsd/stdio.h 2015-09-23 05:59:34.000000000 +0000
307 -+++ libbsd-0.8.2/include/bsd/stdio.h 2016-04-04 23:38:34.016000000 +0000
308 -@@ -41,7 +41,10 @@
309 - #include <sys/cdefs.h>
310 - #include <sys/types.h>
311 -
312 --__BEGIN_DECLS
313 -+/* __BEGIN_DECLS */
314 -+#ifdef __cplusplus
315 -+extern "C" {
316 -+#endif
317 - const char *fmtcheck(const char *, const char *);
318 -
319 - /* XXX: The function requires cooperation from the system libc to store the
320 -@@ -69,7 +72,10 @@
321 - #define fwopen(cookie, fn) funopen(cookie, NULL, fn, NULL, NULL)
322 -
323 - int fpurge(FILE *fp);
324 --__END_DECLS
325 -+#ifdef __cplusplus
326 -+}
327 -+#endif
328 -+/* __END_DECLS */
329 -
330 - #endif
331 - #endif
332 -diff -Naur /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/include/bsd/stdlib.h libbsd-0.8.2/include/bsd/stdlib.h
333 ---- /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/include/bsd/stdlib.h 2015-09-23 05:14:21.000000000 +0000
334 -+++ libbsd-0.8.2/include/bsd/stdlib.h 2016-04-04 23:38:46.384000000 +0000
335 -@@ -46,7 +46,10 @@
336 - #include <sys/stat.h>
337 - #include <stdint.h>
338 -
339 --__BEGIN_DECLS
340 -+/* __BEGIN_DECLS */
341 -+#ifdef __cplusplus
342 -+extern "C" {
343 -+#endif
344 - uint32_t arc4random(void);
345 - void arc4random_stir(void);
346 - void arc4random_addrandom(u_char *dat, int datlen);
347 -@@ -73,6 +76,9 @@
348 - const char **errstr);
349 -
350 - char *getbsize(int *headerlenp, long *blocksizep);
351 --__END_DECLS
352 -+#ifdef __cplusplus
353 -+}
354 -+#endif
355 -+/* __END_DECLS */
356 -
357 - #endif
358 -diff -Naur /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/include/bsd/string.h libbsd-0.8.2/include/bsd/string.h
359 ---- /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/include/bsd/string.h 2015-09-24 03:30:23.000000000 +0000
360 -+++ libbsd-0.8.2/include/bsd/string.h 2016-04-04 23:39:00.040000000 +0000
361 -@@ -36,13 +36,19 @@
362 - #include <sys/cdefs.h>
363 - #include <sys/types.h>
364 -
365 --__BEGIN_DECLS
366 -+/* __BEGIN_DECLS */
367 -+#ifdef __cplusplus
368 -+extern "C" {
369 -+#endif
370 - size_t strlcpy(char *dst, const char *src, size_t siz);
371 - size_t strlcat(char *dst, const char *src, size_t siz);
372 - char *strnstr(const char *str, const char *find, size_t str_len);
373 - void strmode(mode_t mode, char *str);
374 -
375 - void explicit_bzero(void *buf, size_t len);
376 --__END_DECLS
377 -+#ifdef __cplusplus
378 -+}
379 -+#endif
380 -+/* __END_DECLS */
381 -
382 - #endif
383 -diff -Naur /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/include/bsd/stringlist.h libbsd-0.8.2/include/bsd/stringlist.h
384 ---- /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/include/bsd/stringlist.h 2015-09-22 17:56:09.000000000 +0000
385 -+++ libbsd-0.8.2/include/bsd/stringlist.h 2016-04-04 23:39:08.168000000 +0000
386 -@@ -43,12 +43,18 @@
387 - size_t sl_cur;
388 - } StringList;
389 -
390 --__BEGIN_DECLS
391 -+/* __BEGIN_DECLS */
392 -+#ifdef __cplusplus
393 -+extern "C" {
394 -+#endif
395 - StringList *sl_init(void);
396 - int sl_add(StringList *, char *);
397 - void sl_free(StringList *, int);
398 - char *sl_find(StringList *, const char *);
399 - int sl_delete(StringList *, const char *, int);
400 --__END_DECLS
401 -+#ifdef __cplusplus
402 -+}
403 -+#endif
404 -+/* __END_DECLS */
405 -
406 - #endif /* _STRINGLIST_H */
407 -diff -Naur /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/include/bsd/unistd.h libbsd-0.8.2/include/bsd/unistd.h
408 ---- /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/include/bsd/unistd.h 2015-12-13 23:58:51.000000000 +0000
409 -+++ libbsd-0.8.2/include/bsd/unistd.h 2016-04-04 23:39:19.816000000 +0000
410 -@@ -45,7 +45,10 @@
411 - #define S_ISTXT S_ISVTX
412 - #endif
413 -
414 --__BEGIN_DECLS
415 -+/* __BEGIN_DECLS */
416 -+#ifdef __cplusplus
417 -+extern "C" {
418 -+#endif
419 - extern int optreset;
420 -
421 - #ifdef LIBBSD_OVERLAY
422 -@@ -68,6 +71,9 @@
423 - __printflike(1, 2);
424 -
425 - int getpeereid(int s, uid_t *euid, gid_t *egid);
426 --__END_DECLS
427 -+#ifdef __cplusplus
428 -+}
429 -+#endif
430 -+/* __END_DECLS */
431 -
432 - #endif
433 -diff -Naur /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/include/bsd/vis.h libbsd-0.8.2/include/bsd/vis.h
434 ---- /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/include/bsd/vis.h 2011-07-05 18:58:44.000000000 +0000
435 -+++ libbsd-0.8.2/include/bsd/vis.h 2016-04-04 23:39:28.360000000 +0000
436 -@@ -74,7 +74,10 @@
437 -
438 - #include <sys/cdefs.h>
439 -
440 --__BEGIN_DECLS
441 -+/* __BEGIN_DECLS */
442 -+#ifdef __cplusplus
443 -+extern "C" {
444 -+#endif
445 - char *vis(char *, int, int, int);
446 - int strvis(char *, const char *, int);
447 - int strvisx(char *, const char *, size_t, int);
448 -@@ -83,6 +86,9 @@
449 - int strunvisx(char *, const char *, int);
450 - ssize_t strnunvis(char *, const char *, size_t);
451 - int unvis(char *, int, int *, int);
452 --__END_DECLS
453 -+#ifdef __cplusplus
454 -+}
455 -+#endif
456 -+/* __END_DECLS */
457 -
458 - #endif /* !_VIS_H_ */
459 -diff -Naur /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/include/bsd/wchar.h libbsd-0.8.2/include/bsd/wchar.h
460 ---- /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/include/bsd/wchar.h 2015-09-22 17:56:09.000000000 +0000
461 -+++ libbsd-0.8.2/include/bsd/wchar.h 2016-04-04 23:39:35.656000000 +0000
462 -@@ -43,12 +43,18 @@
463 - #include <sys/cdefs.h>
464 - #include <sys/types.h>
465 -
466 --__BEGIN_DECLS
467 -+/* __BEGIN_DECLS */
468 -+#ifdef __cplusplus
469 -+extern "C" {
470 -+#endif
471 - wchar_t *fgetwln(FILE *stream, size_t *len);
472 -
473 - size_t wcslcat(wchar_t *dst, const wchar_t *src, size_t size);
474 - size_t wcslcpy(wchar_t *dst, const wchar_t *src, size_t size);
475 --__END_DECLS
476 -+#ifdef __cplusplus
477 -+}
478 -+#endif
479 -+/* __END_DECLS */
480 -
481 - #endif
482 - #endif
483 -diff -Naur /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/src/hash/sha512.h libbsd-0.8.2/src/hash/sha512.h
484 ---- /var/tmp/portage/dev-libs/libbsd-0.8.2/work/libbsd-0.8.2/src/hash/sha512.h 2015-12-01 02:35:17.000000000 +0000
485 -+++ libbsd-0.8.2/src/hash/sha512.h 2016-04-05 00:17:13.576000000 +0000
486 -@@ -39,7 +39,10 @@
487 - unsigned char buf[128];
488 - } SHA512_CTX;
489 -
490 --__BEGIN_DECLS
491 -+/* __BEGIN_DECLS */
492 -+#ifdef __cplusplus
493 -+extern "C" {
494 -+#endif
495 -
496 - void SHA512_Init(SHA512_CTX *);
497 - void SHA512_Update(SHA512_CTX *, const void *, size_t);
498 -@@ -48,6 +51,9 @@
499 - char *SHA512_File(const char *, char *);
500 - char *SHA512_FileChunk(const char *, char *, off_t, off_t);
501 - char *SHA512_Data(const void *, unsigned int, char *);
502 --__END_DECLS
503 -+#ifdef __cplusplus
504 -+}
505 -+#endif
506 -+/* __END_DECLS */
507 -
508 - #endif /* !_SHA512_H_ */
509
510 diff --git a/dev-libs/libbsd/files/libbsd-0.8.3-cdefs.patch b/dev-libs/libbsd/files/libbsd-0.8.3-cdefs.patch
511 new file mode 100644
512 index 0000000..e11cad6
513 --- /dev/null
514 +++ b/dev-libs/libbsd/files/libbsd-0.8.3-cdefs.patch
515 @@ -0,0 +1,181 @@
516 +diff -Naur libbsd-0.8.3.orig/include/bsd/libutil.h libbsd-0.8.3/include/bsd/libutil.h
517 +--- libbsd-0.8.3.orig/include/bsd/libutil.h 2016-08-10 13:54:09.060111735 -0700
518 ++++ libbsd-0.8.3/include/bsd/libutil.h 2016-08-10 13:54:23.477266978 -0700
519 +@@ -40,7 +40,7 @@
520 + #define _LIBUTIL_H_
521 +
522 + #include <features.h>
523 +-#include <sys/cdefs.h>
524 ++#include "sys/cdefs.h"
525 + #include <sys/types.h>
526 + #include <stdint.h>
527 + #include <stdio.h>
528 +diff -Naur libbsd-0.8.3.orig/include/bsd/md5.h libbsd-0.8.3/include/bsd/md5.h
529 +--- libbsd-0.8.3.orig/include/bsd/md5.h 2016-08-10 13:54:09.060111735 -0700
530 ++++ libbsd-0.8.3/include/bsd/md5.h 2016-08-10 13:58:16.336688012 -0700
531 +@@ -27,7 +27,7 @@
532 + uint8_t buffer[MD5_BLOCK_LENGTH]; /* input buffer */
533 + } MD5_CTX;
534 +
535 +-#include <sys/cdefs.h>
536 ++#include "sys/cdefs.h"
537 + #include <sys/types.h>
538 +
539 + __BEGIN_DECLS
540 +diff -Naur libbsd-0.8.3.orig/include/bsd/nlist.h libbsd-0.8.3/include/bsd/nlist.h
541 +--- libbsd-0.8.3.orig/include/bsd/nlist.h 2016-08-10 13:54:09.060111735 -0700
542 ++++ libbsd-0.8.3/include/bsd/nlist.h 2016-08-10 13:54:42.174468307 -0700
543 +@@ -27,8 +27,8 @@
544 + #ifndef LIBBSD_NLIST_H
545 + #define LIBBSD_NLIST_H
546 +
547 +-#include <sys/cdefs.h>
548 +-#include <a.out.h>
549 ++#include "sys/cdefs.h"
550 ++#include <linux/a.out.h>
551 +
552 + __BEGIN_DECLS
553 + extern int nlist(const char *filename, struct nlist *list);
554 +diff -Naur libbsd-0.8.3.orig/include/bsd/readpassphrase.h libbsd-0.8.3/include/bsd/readpassphrase.h
555 +--- libbsd-0.8.3.orig/include/bsd/readpassphrase.h 2016-08-10 13:54:09.057111703 -0700
556 ++++ libbsd-0.8.3/include/bsd/readpassphrase.h 2016-08-10 13:55:12.343793168 -0700
557 +@@ -31,7 +31,7 @@
558 + #define RPP_SEVENBIT 0x10 /* Strip the high bit from input. */
559 + #define RPP_STDIN 0x20 /* Read from stdin, not /dev/tty */
560 +
561 +-#include <sys/cdefs.h>
562 ++#include "sys/cdefs.h"
563 + #include <sys/types.h>
564 +
565 + __BEGIN_DECLS
566 +diff -Naur libbsd-0.8.3.orig/include/bsd/stdio.h libbsd-0.8.3/include/bsd/stdio.h
567 +--- libbsd-0.8.3.orig/include/bsd/stdio.h 2016-08-10 13:54:09.057111703 -0700
568 ++++ libbsd-0.8.3/include/bsd/stdio.h 2016-08-10 13:55:28.476966889 -0700
569 +@@ -38,7 +38,7 @@
570 + #ifndef LIBBSD_STDIO_H
571 + #define LIBBSD_STDIO_H
572 +
573 +-#include <sys/cdefs.h>
574 ++#include "sys/cdefs.h"
575 + #include <sys/types.h>
576 +
577 + __BEGIN_DECLS
578 +diff -Naur libbsd-0.8.3.orig/include/bsd/stdlib.h libbsd-0.8.3/include/bsd/stdlib.h
579 +--- libbsd-0.8.3.orig/include/bsd/stdlib.h 2016-08-10 13:54:09.059111724 -0700
580 ++++ libbsd-0.8.3/include/bsd/stdlib.h 2016-08-10 13:55:45.418149310 -0700
581 +@@ -42,7 +42,7 @@
582 + #ifndef LIBBSD_STDLIB_H
583 + #define LIBBSD_STDLIB_H
584 +
585 +-#include <sys/cdefs.h>
586 ++#include "sys/cdefs.h"
587 + #include <sys/stat.h>
588 + #include <stdint.h>
589 +
590 +diff -Naur libbsd-0.8.3.orig/include/bsd/string.h libbsd-0.8.3/include/bsd/string.h
591 +--- libbsd-0.8.3.orig/include/bsd/string.h 2016-08-10 13:54:09.059111724 -0700
592 ++++ libbsd-0.8.3/include/bsd/string.h 2016-08-10 13:55:58.746292826 -0700
593 +@@ -33,7 +33,7 @@
594 + #ifndef LIBBSD_STRING_H
595 + #define LIBBSD_STRING_H
596 +
597 +-#include <sys/cdefs.h>
598 ++#include "sys/cdefs.h"
599 + #include <sys/types.h>
600 +
601 + __BEGIN_DECLS
602 +diff -Naur libbsd-0.8.3.orig/include/bsd/stringlist.h libbsd-0.8.3/include/bsd/stringlist.h
603 +--- libbsd-0.8.3.orig/include/bsd/stringlist.h 2016-08-10 13:54:09.059111724 -0700
604 ++++ libbsd-0.8.3/include/bsd/stringlist.h 2016-08-10 13:56:10.166408777 -0700
605 +@@ -31,7 +31,7 @@
606 +
607 + #ifndef _STRINGLIST_H
608 + #define _STRINGLIST_H
609 +-#include <sys/cdefs.h>
610 ++#include "sys/cdefs.h"
611 + #include <sys/types.h>
612 +
613 + /*
614 +diff -Naur libbsd-0.8.3.orig/include/bsd/sys/cdefs.h libbsd-0.8.3/include/bsd/sys/cdefs.h
615 +--- libbsd-0.8.3.orig/include/bsd/sys/cdefs.h 2016-08-10 13:54:09.059111724 -0700
616 ++++ libbsd-0.8.3/include/bsd/sys/cdefs.h 2016-08-10 14:01:27.929630564 -0700
617 +@@ -24,11 +24,19 @@
618 + * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
619 + */
620 +
621 ++#if defined(__GLIBC__) || !defined(__linux__)
622 + #ifdef LIBBSD_OVERLAY
623 + #include_next <sys/cdefs.h>
624 + #else
625 + #include <sys/cdefs.h>
626 + #endif
627 ++#elif defined(__cplusplus)
628 ++#define __BEGIN_DECLS extern "C" {
629 ++#define __END_DECLS }
630 ++#else
631 ++#define __BEGIN_DECLS
632 ++#define __END_DECLS
633 ++#endif
634 +
635 + #ifndef LIBBSD_SYS_CDEFS_H
636 + #define LIBBSD_SYS_CDEFS_H
637 +diff -Naur libbsd-0.8.3.orig/include/bsd/sys/queue.h libbsd-0.8.3/include/bsd/sys/queue.h
638 +--- libbsd-0.8.3.orig/include/bsd/sys/queue.h 2016-08-10 13:54:09.058111714 -0700
639 ++++ libbsd-0.8.3/include/bsd/sys/queue.h 2016-08-10 14:00:18.062922188 -0700
640 +@@ -33,7 +33,7 @@
641 + #ifndef _SYS_QUEUE_H_
642 + #define _SYS_QUEUE_H_
643 +
644 +-#include <sys/cdefs.h>
645 ++#include "cdefs.h"
646 +
647 + /*
648 + * This file defines four types of data structures: singly-linked lists,
649 +diff -Naur libbsd-0.8.3.orig/include/bsd/sys/tree.h libbsd-0.8.3/include/bsd/sys/tree.h
650 +--- libbsd-0.8.3.orig/include/bsd/sys/tree.h 2016-08-10 13:54:09.059111724 -0700
651 ++++ libbsd-0.8.3/include/bsd/sys/tree.h 2016-08-10 14:00:05.587795704 -0700
652 +@@ -30,7 +30,7 @@
653 + #ifndef _SYS_TREE_H_
654 + #define _SYS_TREE_H_
655 +
656 +-#include <sys/cdefs.h>
657 ++#include "cdefs.h"
658 +
659 + /*
660 + * This file defines data structures for different types of trees:
661 +diff -Naur libbsd-0.8.3.orig/include/bsd/timeconv.h libbsd-0.8.3/include/bsd/timeconv.h
662 +--- libbsd-0.8.3.orig/include/bsd/timeconv.h 2016-08-10 13:54:09.057111703 -0700
663 ++++ libbsd-0.8.3/include/bsd/timeconv.h 2016-08-10 13:56:26.952578971 -0700
664 +@@ -41,7 +41,7 @@
665 + #ifndef _TIMECONV_H_
666 + #define _TIMECONV_H_
667 +
668 +-#include <sys/cdefs.h>
669 ++#include "sys/cdefs.h"
670 + #include <stdint.h>
671 + #include <time.h>
672 +
673 +diff -Naur libbsd-0.8.3.orig/include/bsd/vis.h libbsd-0.8.3/include/bsd/vis.h
674 +--- libbsd-0.8.3.orig/include/bsd/vis.h 2016-08-10 13:54:09.059111724 -0700
675 ++++ libbsd-0.8.3/include/bsd/vis.h 2016-08-10 13:56:53.115844239 -0700
676 +@@ -72,7 +72,7 @@
677 + */
678 + #define UNVIS_END 1 /* no more characters */
679 +
680 +-#include <sys/cdefs.h>
681 ++#include "sys/cdefs.h"
682 +
683 + __BEGIN_DECLS
684 + char *vis(char *, int, int, int);
685 +diff -Naur libbsd-0.8.3.orig/include/bsd/wchar.h libbsd-0.8.3/include/bsd/wchar.h
686 +--- libbsd-0.8.3.orig/include/bsd/wchar.h 2016-08-10 13:54:09.058111714 -0700
687 ++++ libbsd-0.8.3/include/bsd/wchar.h 2016-08-10 13:57:03.455949077 -0700
688 +@@ -40,7 +40,7 @@
689 + #define LIBBSD_WCHAR_H
690 +
691 + #include <stddef.h>
692 +-#include <sys/cdefs.h>
693 ++#include "sys/cdefs.h"
694 + #include <sys/types.h>
695 +
696 + __BEGIN_DECLS
697
698 diff --git a/dev-libs/libbsd/files/libbsd-0.8.3-musl.patch b/dev-libs/libbsd/files/libbsd-0.8.3-musl.patch
699 new file mode 100644
700 index 0000000..2833cdb
701 --- /dev/null
702 +++ b/dev-libs/libbsd/files/libbsd-0.8.3-musl.patch
703 @@ -0,0 +1,27 @@
704 +diff -Naur libbsd-0.8.3.orig/src/funopen.c libbsd-0.8.3/src/funopen.c
705 +--- libbsd-0.8.3.orig/src/funopen.c 2016-08-10 13:54:09.064111778 -0700
706 ++++ libbsd-0.8.3/src/funopen.c 2016-08-10 14:02:55.416520029 -0700
707 +@@ -137,6 +137,4 @@
708 +
709 + return fopencookie(cookiewrap, mode, funcswrap);
710 + }
711 +-#else
712 +-#error "Function funopen() needs to be ported."
713 + #endif
714 +diff -Naur libbsd-0.8.3.orig/src/nlist.c libbsd-0.8.3/src/nlist.c
715 +--- libbsd-0.8.3.orig/src/nlist.c 2016-08-10 13:54:09.063111767 -0700
716 ++++ libbsd-0.8.3/src/nlist.c 2016-08-10 14:03:35.312927245 -0700
717 +@@ -40,11 +40,12 @@
718 +
719 + #include <errno.h>
720 + #include <fcntl.h>
721 +-#include <a.out.h>
722 + #include <stdio.h>
723 + #include <string.h>
724 + #include <unistd.h>
725 +
726 ++#include "nlist.h"
727 ++
728 + #if !defined(__NO_A_OUT_SUPPORT)
729 + #define _NLIST_DO_AOUT
730 + #endif
731
732 diff --git a/dev-libs/libbsd/libbsd-0.8.2-r99.ebuild b/dev-libs/libbsd/libbsd-0.8.2.ebuild
733 similarity index 62%
734 copy from dev-libs/libbsd/libbsd-0.8.2-r99.ebuild
735 copy to dev-libs/libbsd/libbsd-0.8.2.ebuild
736 index 48e4677..4204854 100644
737 --- a/dev-libs/libbsd/libbsd-0.8.2-r99.ebuild
738 +++ b/dev-libs/libbsd/libbsd-0.8.2.ebuild
739 @@ -1,19 +1,26 @@
740 # Copyright 1999-2016 Gentoo Foundation
741 # Distributed under the terms of the GNU General Public License v2
742 -# $Id$
743
744 EAPI=5
745 -inherit autotools eutils multilib-minimal
746 +inherit eutils multilib-minimal
747
748 DESCRIPTION="An library to provide useful functions commonly found on BSD systems"
749 -HOMEPAGE="http://libbsd.freedesktop.org/wiki/"
750 -SRC_URI="http://${PN}.freedesktop.org/releases/${P}.tar.xz"
751 +HOMEPAGE="https://libbsd.freedesktop.org/wiki/"
752 +SRC_URI="https://${PN}.freedesktop.org/releases/${P}.tar.xz"
753
754 LICENSE="BSD BSD-2 BSD-4 ISC"
755 SLOT="0"
756 -KEYWORDS="amd64 arm ~mips ppc x86"
757 +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86"
758 IUSE="static-libs"
759
760 +DEPEND=">=sys-kernel/linux-headers-3.17"
761 +RDEPEND=""
762 +
763 +src_prepare() {
764 + epatch "${FILESDIR}"/${PN}-0.8.3-cdefs.patch
765 + epatch "${FILESDIR}"/${P}-musl.patch
766 +}
767 +
768 pkg_setup() {
769 local f="${ROOT}/usr/$(get_libdir)/${PN}.a"
770 local m="You need to remove ${f} by hand or re-emerge sys-libs/glibc first."
771 @@ -25,19 +32,10 @@ pkg_setup() {
772 fi
773 }
774
775 -src_prepare() {
776 - epatch "${FILESDIR}"/${P}-replace__BEGIN_DECLS.patch
777 - epatch "${FILESDIR}"/${P}-fix-headers.patch
778 -
779 - /* This requires autoconf */
780 - epatch "${FILESDIR}"/${P}-remore-funopen.patch
781 - eautoreconf
782 -}
783 -
784 multilib_src_configure() {
785 # The build system will install libbsd-ctor.a despite of USE="-static-libs"
786 # which is correct, see:
787 - # http://cgit.freedesktop.org/libbsd/commit/?id=c5b959028734ca2281250c85773d9b5e1d259bc8
788 + # https://cgit.freedesktop.org/libbsd/commit/?id=c5b959028734ca2281250c85773d9b5e1d259bc8
789 ECONF_SOURCE="${S}" econf $(use_enable static-libs static)
790 }
791
792
793 diff --git a/dev-libs/libbsd/libbsd-0.8.2-r99.ebuild b/dev-libs/libbsd/libbsd-0.8.3-r2.ebuild
794 similarity index 50%
795 copy from dev-libs/libbsd/libbsd-0.8.2-r99.ebuild
796 copy to dev-libs/libbsd/libbsd-0.8.3-r2.ebuild
797 index 48e4677..9c34599 100644
798 --- a/dev-libs/libbsd/libbsd-0.8.2-r99.ebuild
799 +++ b/dev-libs/libbsd/libbsd-0.8.3-r2.ebuild
800 @@ -1,21 +1,30 @@
801 -# Copyright 1999-2016 Gentoo Foundation
802 +# Copyright 1999-2017 Gentoo Foundation
803 # Distributed under the terms of the GNU General Public License v2
804 -# $Id$
805
806 -EAPI=5
807 -inherit autotools eutils multilib-minimal
808 +EAPI=6
809 +inherit multilib-minimal
810
811 DESCRIPTION="An library to provide useful functions commonly found on BSD systems"
812 -HOMEPAGE="http://libbsd.freedesktop.org/wiki/"
813 -SRC_URI="http://${PN}.freedesktop.org/releases/${P}.tar.xz"
814 +HOMEPAGE="https://libbsd.freedesktop.org/wiki/"
815 +SRC_URI="https://${PN}.freedesktop.org/releases/${P}.tar.xz"
816
817 LICENSE="BSD BSD-2 BSD-4 ISC"
818 SLOT="0"
819 -KEYWORDS="amd64 arm ~mips ppc x86"
820 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
821 IUSE="static-libs"
822
823 +DEPEND=">=sys-kernel/linux-headers-3.17"
824 +RDEPEND=""
825 +
826 +src_prepare() {
827 + eapply "${FILESDIR}"/${PN}-0.8.3-musl.patch
828 + eapply "${FILESDIR}"/${PN}-0.8.3-cdefs.patch
829 +
830 + default
831 +}
832 +
833 pkg_setup() {
834 - local f="${ROOT}/usr/$(get_libdir)/${PN}.a"
835 + local f="${EROOT}/usr/$(get_libdir)/${PN}.a"
836 local m="You need to remove ${f} by hand or re-emerge sys-libs/glibc first."
837 if ! has_version ${CATEGORY}/${PN}; then
838 if [[ -e ${f} ]]; then
839 @@ -25,23 +34,16 @@ pkg_setup() {
840 fi
841 }
842
843 -src_prepare() {
844 - epatch "${FILESDIR}"/${P}-replace__BEGIN_DECLS.patch
845 - epatch "${FILESDIR}"/${P}-fix-headers.patch
846 -
847 - /* This requires autoconf */
848 - epatch "${FILESDIR}"/${P}-remore-funopen.patch
849 - eautoreconf
850 -}
851 -
852 multilib_src_configure() {
853 # The build system will install libbsd-ctor.a despite of USE="-static-libs"
854 # which is correct, see:
855 - # http://cgit.freedesktop.org/libbsd/commit/?id=c5b959028734ca2281250c85773d9b5e1d259bc8
856 + # https://cgit.freedesktop.org/libbsd/commit/?id=c5b959028734ca2281250c85773d9b5e1d259bc8
857 ECONF_SOURCE="${S}" econf $(use_enable static-libs static)
858 }
859
860 multilib_src_install() {
861 emake DESTDIR="${D}" install
862 - prune_libtool_files
863 + find "${ED}" -name "*.la" -delete || die
864 +
865 + rm "${ED%/}"/usr/share/man/man3/explicit_bzero.3 || die # 617462
866 }
867
868 diff --git a/dev-libs/libbsd/libbsd-0.8.2-r99.ebuild b/dev-libs/libbsd/libbsd-0.8.3.ebuild
869 similarity index 55%
870 rename from dev-libs/libbsd/libbsd-0.8.2-r99.ebuild
871 rename to dev-libs/libbsd/libbsd-0.8.3.ebuild
872 index 48e4677..5e96f52 100644
873 --- a/dev-libs/libbsd/libbsd-0.8.2-r99.ebuild
874 +++ b/dev-libs/libbsd/libbsd-0.8.3.ebuild
875 @@ -1,21 +1,30 @@
876 -# Copyright 1999-2016 Gentoo Foundation
877 +# Copyright 1999-2017 Gentoo Foundation
878 # Distributed under the terms of the GNU General Public License v2
879 -# $Id$
880
881 -EAPI=5
882 -inherit autotools eutils multilib-minimal
883 +EAPI=6
884 +inherit eutils multilib-minimal
885
886 DESCRIPTION="An library to provide useful functions commonly found on BSD systems"
887 -HOMEPAGE="http://libbsd.freedesktop.org/wiki/"
888 -SRC_URI="http://${PN}.freedesktop.org/releases/${P}.tar.xz"
889 +HOMEPAGE="https://libbsd.freedesktop.org/wiki/"
890 +SRC_URI="https://${PN}.freedesktop.org/releases/${P}.tar.xz"
891
892 LICENSE="BSD BSD-2 BSD-4 ISC"
893 SLOT="0"
894 -KEYWORDS="amd64 arm ~mips ppc x86"
895 +KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux"
896 IUSE="static-libs"
897
898 +DEPEND=">=sys-kernel/linux-headers-3.17"
899 +RDEPEND=""
900 +
901 +src_prepare() {
902 + eapply "${FILESDIR}"/${PN}-0.8.3-musl.patch
903 + eapply "${FILESDIR}"/${PN}-0.8.3-cdefs.patch
904 +
905 + default
906 +}
907 +
908 pkg_setup() {
909 - local f="${ROOT}/usr/$(get_libdir)/${PN}.a"
910 + local f="${EROOT}/usr/$(get_libdir)/${PN}.a"
911 local m="You need to remove ${f} by hand or re-emerge sys-libs/glibc first."
912 if ! has_version ${CATEGORY}/${PN}; then
913 if [[ -e ${f} ]]; then
914 @@ -25,19 +34,10 @@ pkg_setup() {
915 fi
916 }
917
918 -src_prepare() {
919 - epatch "${FILESDIR}"/${P}-replace__BEGIN_DECLS.patch
920 - epatch "${FILESDIR}"/${P}-fix-headers.patch
921 -
922 - /* This requires autoconf */
923 - epatch "${FILESDIR}"/${P}-remore-funopen.patch
924 - eautoreconf
925 -}
926 -
927 multilib_src_configure() {
928 # The build system will install libbsd-ctor.a despite of USE="-static-libs"
929 # which is correct, see:
930 - # http://cgit.freedesktop.org/libbsd/commit/?id=c5b959028734ca2281250c85773d9b5e1d259bc8
931 + # https://cgit.freedesktop.org/libbsd/commit/?id=c5b959028734ca2281250c85773d9b5e1d259bc8
932 ECONF_SOURCE="${S}" econf $(use_enable static-libs static)
933 }