1 |
commit: deb72d3a8b4e6f37c9191a229bbe19affa597492 |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 27 20:39:00 2018 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 28 16:34:43 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=deb72d3a |
7 |
|
8 |
profiles: restructure amd64, arm and x86 musl profiles |
9 |
|
10 |
This restructuring brings the musl profiles into conformity |
11 |
with the glibc profiles for amd64, arm and x86. Yet to be |
12 |
done are the profiles for ppc and mips. |
13 |
|
14 |
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> |
15 |
|
16 |
profiles/default/linux/amd64/17.0/musl/eapi | 1 + |
17 |
.../default/linux/amd64/17.0/musl/hardened/eapi | 1 + |
18 |
.../default/linux/amd64/17.0/musl/hardened/parent | 2 ++ |
19 |
.../default/linux/amd64/17.0/musl/make.defaults | 10 +++++++++ |
20 |
profiles/default/linux/amd64/17.0/musl/parent | 3 +++ |
21 |
profiles/default/linux/arm/17.0/musl/armv7a/eapi | 1 + |
22 |
.../linux/arm/17.0/musl/armv7a/hardened/eapi | 1 + |
23 |
.../linux/arm/17.0/musl/armv7a/hardened/parent | 2 ++ |
24 |
.../linux/arm/17.0/musl/armv7a/make.defaults | 8 +++++++ |
25 |
profiles/default/linux/arm/17.0/musl/armv7a/parent | 1 + |
26 |
profiles/default/linux/arm/17.0/musl/eapi | 1 + |
27 |
profiles/default/linux/arm/17.0/musl/make.defaults | 5 +++++ |
28 |
profiles/default/linux/arm/17.0/musl/parent | 3 +++ |
29 |
profiles/default/linux/x86/17.0/musl/eapi | 1 + |
30 |
profiles/default/linux/x86/17.0/musl/make.defaults | 5 +++++ |
31 |
profiles/default/linux/x86/17.0/musl/parent | 3 +++ |
32 |
profiles/default/linux/x86/17.0/musl/use.mask | 5 +++++ |
33 |
profiles/features/musl/eapi | 1 + |
34 |
profiles/features/musl/make.defaults | 18 +++++++++++++++ |
35 |
profiles/features/musl/package.mask | 26 ++++++++++++++++++++++ |
36 |
profiles/features/musl/package.use | 7 ++++++ |
37 |
profiles/features/musl/package.use.force | 9 ++++++++ |
38 |
profiles/features/musl/package.use.mask | 19 ++++++++++++++++ |
39 |
profiles/features/musl/packages | 6 +++++ |
40 |
profiles/features/musl/packages.build | 10 +++++++++ |
41 |
profiles/features/musl/use.force | 6 +++++ |
42 |
profiles/features/musl/use.mask | 7 ++++++ |
43 |
profiles/profiles.desc | 5 +++++ |
44 |
28 files changed, 167 insertions(+) |
45 |
|
46 |
diff --git a/profiles/default/linux/amd64/17.0/musl/eapi b/profiles/default/linux/amd64/17.0/musl/eapi |
47 |
new file mode 100644 |
48 |
index 00000000000..7ed6ff82de6 |
49 |
--- /dev/null |
50 |
+++ b/profiles/default/linux/amd64/17.0/musl/eapi |
51 |
@@ -0,0 +1 @@ |
52 |
+5 |
53 |
|
54 |
diff --git a/profiles/default/linux/amd64/17.0/musl/hardened/eapi b/profiles/default/linux/amd64/17.0/musl/hardened/eapi |
55 |
new file mode 100644 |
56 |
index 00000000000..7ed6ff82de6 |
57 |
--- /dev/null |
58 |
+++ b/profiles/default/linux/amd64/17.0/musl/hardened/eapi |
59 |
@@ -0,0 +1 @@ |
60 |
+5 |
61 |
|
62 |
diff --git a/profiles/default/linux/amd64/17.0/musl/hardened/parent b/profiles/default/linux/amd64/17.0/musl/hardened/parent |
63 |
new file mode 100644 |
64 |
index 00000000000..45a355b0beb |
65 |
--- /dev/null |
66 |
+++ b/profiles/default/linux/amd64/17.0/musl/hardened/parent |
67 |
@@ -0,0 +1,2 @@ |
68 |
+.. |
69 |
+../../../../../../features/hardened/amd64 |
70 |
|
71 |
diff --git a/profiles/default/linux/amd64/17.0/musl/make.defaults b/profiles/default/linux/amd64/17.0/musl/make.defaults |
72 |
new file mode 100644 |
73 |
index 00000000000..d09a4c21803 |
74 |
--- /dev/null |
75 |
+++ b/profiles/default/linux/amd64/17.0/musl/make.defaults |
76 |
@@ -0,0 +1,10 @@ |
77 |
+# Copyright 1999-2018 Gentoo Foundation. |
78 |
+# Distributed under the terms of the GNU General Public License v2 |
79 |
+ |
80 |
+CHOST="x86_64-gentoo-linux-musl" |
81 |
+ |
82 |
+# Anthony G. Basile <blueness@g.o> (01 Jul 2014) |
83 |
+# Multilib-related setup, bug #515130 |
84 |
+MULTILIB_ABIS="amd64" |
85 |
+CHOST_amd64="${CHOST}" |
86 |
+LIBDIR_amd64="lib" |
87 |
|
88 |
diff --git a/profiles/default/linux/amd64/17.0/musl/parent b/profiles/default/linux/amd64/17.0/musl/parent |
89 |
new file mode 100644 |
90 |
index 00000000000..8b660ec6dca |
91 |
--- /dev/null |
92 |
+++ b/profiles/default/linux/amd64/17.0/musl/parent |
93 |
@@ -0,0 +1,3 @@ |
94 |
+.. |
95 |
+../../../../../arch/amd64/no-multilib |
96 |
+../../../../../features/musl/ |
97 |
|
98 |
diff --git a/profiles/default/linux/arm/17.0/musl/armv7a/eapi b/profiles/default/linux/arm/17.0/musl/armv7a/eapi |
99 |
new file mode 100644 |
100 |
index 00000000000..7ed6ff82de6 |
101 |
--- /dev/null |
102 |
+++ b/profiles/default/linux/arm/17.0/musl/armv7a/eapi |
103 |
@@ -0,0 +1 @@ |
104 |
+5 |
105 |
|
106 |
diff --git a/profiles/default/linux/arm/17.0/musl/armv7a/hardened/eapi b/profiles/default/linux/arm/17.0/musl/armv7a/hardened/eapi |
107 |
new file mode 100644 |
108 |
index 00000000000..7ed6ff82de6 |
109 |
--- /dev/null |
110 |
+++ b/profiles/default/linux/arm/17.0/musl/armv7a/hardened/eapi |
111 |
@@ -0,0 +1 @@ |
112 |
+5 |
113 |
|
114 |
diff --git a/profiles/default/linux/arm/17.0/musl/armv7a/hardened/parent b/profiles/default/linux/arm/17.0/musl/armv7a/hardened/parent |
115 |
new file mode 100644 |
116 |
index 00000000000..3e3d7782bae |
117 |
--- /dev/null |
118 |
+++ b/profiles/default/linux/arm/17.0/musl/armv7a/hardened/parent |
119 |
@@ -0,0 +1,2 @@ |
120 |
+.. |
121 |
+../../../../../../../features/hardened |
122 |
|
123 |
diff --git a/profiles/default/linux/arm/17.0/musl/armv7a/make.defaults b/profiles/default/linux/arm/17.0/musl/armv7a/make.defaults |
124 |
new file mode 100644 |
125 |
index 00000000000..c0cb6c11748 |
126 |
--- /dev/null |
127 |
+++ b/profiles/default/linux/arm/17.0/musl/armv7a/make.defaults |
128 |
@@ -0,0 +1,8 @@ |
129 |
+# Copyright 1999-2018 Gentoo Foundation. |
130 |
+# Distributed under the terms of the GNU General Public License v2 |
131 |
+ |
132 |
+CHOST="armv7a-hardfloat-linux-musleabi" |
133 |
+CFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard" |
134 |
+CXXFLAGS="${CFLAGS}" |
135 |
+FFLAGS="${CFLAGS}" |
136 |
+FCFLAGS="${CFLAGS}" |
137 |
|
138 |
diff --git a/profiles/default/linux/arm/17.0/musl/armv7a/parent b/profiles/default/linux/arm/17.0/musl/armv7a/parent |
139 |
new file mode 100644 |
140 |
index 00000000000..f3229c5b987 |
141 |
--- /dev/null |
142 |
+++ b/profiles/default/linux/arm/17.0/musl/armv7a/parent |
143 |
@@ -0,0 +1 @@ |
144 |
+.. |
145 |
|
146 |
diff --git a/profiles/default/linux/arm/17.0/musl/eapi b/profiles/default/linux/arm/17.0/musl/eapi |
147 |
new file mode 100644 |
148 |
index 00000000000..7ed6ff82de6 |
149 |
--- /dev/null |
150 |
+++ b/profiles/default/linux/arm/17.0/musl/eapi |
151 |
@@ -0,0 +1 @@ |
152 |
+5 |
153 |
|
154 |
diff --git a/profiles/default/linux/arm/17.0/musl/make.defaults b/profiles/default/linux/arm/17.0/musl/make.defaults |
155 |
new file mode 100644 |
156 |
index 00000000000..52e98be4833 |
157 |
--- /dev/null |
158 |
+++ b/profiles/default/linux/arm/17.0/musl/make.defaults |
159 |
@@ -0,0 +1,5 @@ |
160 |
+# Copyright 1999-2018 Gentoo Foundation. |
161 |
+# Distributed under the terms of the GNU General Public License v2 |
162 |
+ |
163 |
+CHOST="arm-unknown-linux-musleabi" |
164 |
+CHOST_arm="${CHOST}" |
165 |
|
166 |
diff --git a/profiles/default/linux/arm/17.0/musl/parent b/profiles/default/linux/arm/17.0/musl/parent |
167 |
new file mode 100644 |
168 |
index 00000000000..f381f1758c6 |
169 |
--- /dev/null |
170 |
+++ b/profiles/default/linux/arm/17.0/musl/parent |
171 |
@@ -0,0 +1,3 @@ |
172 |
+.. |
173 |
+../../../../../arch/arm |
174 |
+../../../../../features/musl/ |
175 |
|
176 |
diff --git a/profiles/default/linux/x86/17.0/musl/eapi b/profiles/default/linux/x86/17.0/musl/eapi |
177 |
new file mode 100644 |
178 |
index 00000000000..7ed6ff82de6 |
179 |
--- /dev/null |
180 |
+++ b/profiles/default/linux/x86/17.0/musl/eapi |
181 |
@@ -0,0 +1 @@ |
182 |
+5 |
183 |
|
184 |
diff --git a/profiles/default/linux/x86/17.0/musl/make.defaults b/profiles/default/linux/x86/17.0/musl/make.defaults |
185 |
new file mode 100644 |
186 |
index 00000000000..80515e7c892 |
187 |
--- /dev/null |
188 |
+++ b/profiles/default/linux/x86/17.0/musl/make.defaults |
189 |
@@ -0,0 +1,5 @@ |
190 |
+# Copyright 1999-2018 Gentoo Foundation |
191 |
+# Distributed under the terms of the GNU General Public License v2 |
192 |
+ |
193 |
+CHOST="i686-gentoo-linux-musl" |
194 |
+CHOST_x86="${CHOST}" |
195 |
|
196 |
diff --git a/profiles/default/linux/x86/17.0/musl/parent b/profiles/default/linux/x86/17.0/musl/parent |
197 |
new file mode 100644 |
198 |
index 00000000000..8b660ec6dca |
199 |
--- /dev/null |
200 |
+++ b/profiles/default/linux/x86/17.0/musl/parent |
201 |
@@ -0,0 +1,3 @@ |
202 |
+.. |
203 |
+../../../../../arch/amd64/no-multilib |
204 |
+../../../../../features/musl/ |
205 |
|
206 |
diff --git a/profiles/default/linux/x86/17.0/musl/use.mask b/profiles/default/linux/x86/17.0/musl/use.mask |
207 |
new file mode 100644 |
208 |
index 00000000000..057f0d454f0 |
209 |
--- /dev/null |
210 |
+++ b/profiles/default/linux/x86/17.0/musl/use.mask |
211 |
@@ -0,0 +1,5 @@ |
212 |
+# Copyright 1999-2018 Gentoo Foundation. |
213 |
+# Distributed under the terms of the GNU General Public License, v2 |
214 |
+ |
215 |
+# ssp is broken on x86 musl. This is critical for gcc-6. |
216 |
+ssp |
217 |
|
218 |
diff --git a/profiles/features/musl/eapi b/profiles/features/musl/eapi |
219 |
new file mode 100644 |
220 |
index 00000000000..7ed6ff82de6 |
221 |
--- /dev/null |
222 |
+++ b/profiles/features/musl/eapi |
223 |
@@ -0,0 +1 @@ |
224 |
+5 |
225 |
|
226 |
diff --git a/profiles/features/musl/make.defaults b/profiles/features/musl/make.defaults |
227 |
new file mode 100644 |
228 |
index 00000000000..e2dbf5d8a4b |
229 |
--- /dev/null |
230 |
+++ b/profiles/features/musl/make.defaults |
231 |
@@ -0,0 +1,18 @@ |
232 |
+# Copyright 1999-2018 Gentoo Foundation. |
233 |
+# Distributed under the terms of the GNU General Public License v2 |
234 |
+ |
235 |
+PORTAGE_LIBC="musl" |
236 |
+ELIBC="musl" |
237 |
+ |
238 |
+FEATURES="sandbox sfperms strict" |
239 |
+ |
240 |
+USE="nptl unicode -berkdb -gdbm" |
241 |
+BOOTSTRAP_USE="${BOOTSTRAP_USE} nptl -berkdb -gdbm" |
242 |
+ |
243 |
+# All libraries are in /lib or /usr/lib |
244 |
+SYMLINK_LIB="no" |
245 |
+FEATURES="-multilib-strict" |
246 |
+ |
247 |
+# TODO: fix so musl doesn't generate this for all packages |
248 |
+# that use a charset, it causes package collisons. |
249 |
+INSTALL_MASK="charset.alias" |
250 |
|
251 |
diff --git a/profiles/features/musl/package.mask b/profiles/features/musl/package.mask |
252 |
new file mode 100644 |
253 |
index 00000000000..cb795facd55 |
254 |
--- /dev/null |
255 |
+++ b/profiles/features/musl/package.mask |
256 |
@@ -0,0 +1,26 @@ |
257 |
+# Copyright 1999-2018 Gentoo Foundation. |
258 |
+# Distributed under the terms of the GNU General Public License v2 |
259 |
+ |
260 |
+sys-libs/uclibc |
261 |
+sys-libs/uclibc-ng |
262 |
+sys-libs/glibc |
263 |
+ |
264 |
+# Older versions of net-mail/mailutils fail on musl, bug #604212 |
265 |
+<net-mail/mailutils-3.2 |
266 |
+ |
267 |
+# We use eudev which is tested on both uclibc and musl |
268 |
+sys-apps/systemd |
269 |
+sys-fs/udev |
270 |
+ |
271 |
+# dev-libs/elfutils needs a port to musl, bug #602126 |
272 |
+dev-libs/elfutils |
273 |
+>virtual/libelf-2 |
274 |
+ |
275 |
+# packages that unconditionally depend on dev-libs/elfutils |
276 |
+<net-firewall/fwbuilder-5.3.7 |
277 |
+ |
278 |
+# Ian Stakenvicius, 2017-06-14 |
279 |
+# on behalf of mozilla@g.o |
280 |
+# Mask firefox-54 and above as it requires rust |
281 |
+# now, and rust reportedly will not build yet. |
282 |
+>=www-client/firefox-54.0 |
283 |
|
284 |
diff --git a/profiles/features/musl/package.use b/profiles/features/musl/package.use |
285 |
new file mode 100644 |
286 |
index 00000000000..87d13cec246 |
287 |
--- /dev/null |
288 |
+++ b/profiles/features/musl/package.use |
289 |
@@ -0,0 +1,7 @@ |
290 |
+# Copyright 1999-2018 Gentoo Foundation. |
291 |
+# Distributed under the terms of the GNU General Public License v2 |
292 |
+ |
293 |
+# Anthony G. Basile <blueness@g.o> (14 Jul 2016) |
294 |
+# We need this to break a circular dependency with |
295 |
+# 'sys-libs/libcap pam' in stage3 catalyst builds |
296 |
+sys-libs/pam -filecaps |
297 |
|
298 |
diff --git a/profiles/features/musl/package.use.force b/profiles/features/musl/package.use.force |
299 |
new file mode 100644 |
300 |
index 00000000000..c26a7ba83f2 |
301 |
--- /dev/null |
302 |
+++ b/profiles/features/musl/package.use.force |
303 |
@@ -0,0 +1,9 @@ |
304 |
+# Copyright 1999-2018 Gentoo Foundation. |
305 |
+# Distributed under the terms of the GNU General Public License v2 |
306 |
+ |
307 |
+# Force system-libevent use flag on mozilla packages, since the building of |
308 |
+# bundled libevent cannot accomodate a system without sysctl.h |
309 |
+# See bug 574830 for more info. |
310 |
+>=www-client/firefox-45.0 system-libevent |
311 |
+>=www-client/seamonkey-2.40 system-libevent |
312 |
+>=mail-client/thunderbird-45.0 system-libevent |
313 |
|
314 |
diff --git a/profiles/features/musl/package.use.mask b/profiles/features/musl/package.use.mask |
315 |
new file mode 100644 |
316 |
index 00000000000..2c0a91e428e |
317 |
--- /dev/null |
318 |
+++ b/profiles/features/musl/package.use.mask |
319 |
@@ -0,0 +1,19 @@ |
320 |
+# Copyright 1999-2018 Gentoo Foundation. |
321 |
+# Distributed under the terms of the GNU General Public License v2 |
322 |
+ |
323 |
+# See bug #604542 |
324 |
+net-misc/iputils idn |
325 |
+ |
326 |
+# See bug #504200 |
327 |
+sys-devel/gcc sanitize vtv |
328 |
+ |
329 |
+# llvm's sanitizers are also incompatible with musl |
330 |
+sys-devel/llvm sanitize |
331 |
+ |
332 |
+# These cause collisions with <libintl.h> |
333 |
+# even with --without-included-gettext |
334 |
+sys-devel/gettext nls |
335 |
+sys-fs/e2fsprogs nls |
336 |
+ |
337 |
+# See bug #576928 |
338 |
+media-libs/mesa nptl |
339 |
|
340 |
diff --git a/profiles/features/musl/packages b/profiles/features/musl/packages |
341 |
new file mode 100644 |
342 |
index 00000000000..4bbf9c32099 |
343 |
--- /dev/null |
344 |
+++ b/profiles/features/musl/packages |
345 |
@@ -0,0 +1,6 @@ |
346 |
+# Copyright 1999-2018 Gentoo Foundation. |
347 |
+# Distributed under the terms of the GNU General Public License v2 |
348 |
+ |
349 |
+*app-misc/pax-utils |
350 |
+*sys-apps/sandbox |
351 |
+-*sys-apps/man-pages |
352 |
|
353 |
diff --git a/profiles/features/musl/packages.build b/profiles/features/musl/packages.build |
354 |
new file mode 100644 |
355 |
index 00000000000..38ed7d27420 |
356 |
--- /dev/null |
357 |
+++ b/profiles/features/musl/packages.build |
358 |
@@ -0,0 +1,10 @@ |
359 |
+# Copyright 1999-2018 Gentoo Foundation. |
360 |
+# Distributed under the terms of the GNU General Public License v2 |
361 |
+ |
362 |
+# This file lists extra packages needed to build for |
363 |
+# a stage 1 based on this profile. |
364 |
+ |
365 |
+dev-util/pkgconf |
366 |
+sys-apps/attr |
367 |
+sys-apps/sandbox |
368 |
+dev-python/pyxattr |
369 |
|
370 |
diff --git a/profiles/features/musl/use.force b/profiles/features/musl/use.force |
371 |
new file mode 100644 |
372 |
index 00000000000..bfe77a581d7 |
373 |
--- /dev/null |
374 |
+++ b/profiles/features/musl/use.force |
375 |
@@ -0,0 +1,6 @@ |
376 |
+# Copyright 1999-2018 Gentoo Foundation. |
377 |
+# Distributed under the terms of the GNU General Public License v2 |
378 |
+ |
379 |
+# Select the correct ELIBC |
380 |
+elibc_musl |
381 |
+ |
382 |
|
383 |
diff --git a/profiles/features/musl/use.mask b/profiles/features/musl/use.mask |
384 |
new file mode 100644 |
385 |
index 00000000000..46c03330afb |
386 |
--- /dev/null |
387 |
+++ b/profiles/features/musl/use.mask |
388 |
@@ -0,0 +1,7 @@ |
389 |
+# Copyright 1999-2018 Gentoo Foundation. |
390 |
+# Distributed under the terms of the GNU General Public License v2 |
391 |
+ |
392 |
+# Select the correct ELIBC |
393 |
+-elibc_musl |
394 |
+elibc_uclibc |
395 |
+elibc_glibc |
396 |
|
397 |
diff --git a/profiles/profiles.desc b/profiles/profiles.desc |
398 |
index d323534ffc4..e6fe238b8a6 100644 |
399 |
--- a/profiles/profiles.desc |
400 |
+++ b/profiles/profiles.desc |
401 |
@@ -295,8 +295,12 @@ amd64 default/linux/musl/amd64 exp |
402 |
amd64 hardened/linux/musl/amd64 exp |
403 |
amd64 default/linux/musl/amd64/x32 exp |
404 |
amd64 hardened/linux/musl/amd64/x32 exp |
405 |
+amd64 default/linux/amd64/17.0/musl exp |
406 |
+amd64 default/linux/amd64/17.0/musl/hardened exp |
407 |
arm default/linux/musl/arm/armv7a exp |
408 |
arm hardened/linux/musl/arm/armv7a exp |
409 |
+arm default/linux/arm/17.0/musl/armv7a exp |
410 |
+arm default/linux/arm/17.0/musl/armv7a/hardened exp |
411 |
arm64 default/linux/musl/arm64 exp |
412 |
arm64 hardened/linux/musl/arm64 exp |
413 |
mips default/linux/musl/mips exp |
414 |
@@ -307,6 +311,7 @@ ppc default/linux/musl/ppc exp |
415 |
ppc hardened/linux/musl/ppc exp |
416 |
x86 default/linux/musl/x86 exp |
417 |
x86 hardened/linux/musl/x86 exp |
418 |
+x86 default/linux/x86/17.0/musl exp |
419 |
|
420 |
# Non-embedded uclibc profiles |
421 |
# @MAINTAINER: uclibc@g.o |