Gentoo Archives: gentoo-commits

From: "Andreas K. Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/releng:master commit in: tools-musl/portage.amd64.hardened/package.use/, ...
Date: Sat, 31 Jul 2021 15:55:50
Message-Id: 1627746919.c89c48aecf609f179dbbd102bf636c7e57317201.dilfridge@gentoo
1 commit: c89c48aecf609f179dbbd102bf636c7e57317201
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 31 15:55:19 2021 +0000
4 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 31 15:55:19 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/releng.git/commit/?id=c89c48ae
7
8 Drop all the musl special sauce, integrated in main builds now
9
10 Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
11
12 tools-musl/.gitignore | 3 -
13 tools-musl/catalyst.conf.local | 31 --------
14 tools-musl/clean.sh | 6 --
15 tools-musl/common.sh | 63 ---------------
16 tools-musl/portage.amd64.hardened.stage4/.keep | 0
17 .../package.keywords/stage4 | 1 -
18 .../portage.amd64.hardened.stage4/package.license | 3 -
19 .../package.use/stage4 | 4 -
20 tools-musl/portage.amd64.hardened/.keep | 0
21 tools-musl/portage.amd64.hardened/package.use/pam | 1 -
22 tools-musl/portage.amd64.vanilla/.keep | 0
23 tools-musl/portage.amd64.vanilla/package.use/pam | 1 -
24 tools-musl/portage.arm64.hardened/.keep | 0
25 tools-musl/portage.arm64.hardened/package.use/gmp | 1 -
26 tools-musl/portage.arm64.hardened/package.use/pam | 1 -
27 tools-musl/portage.arm64.vanilla/.keep | 0
28 tools-musl/portage.arm64.vanilla/package.use/gmp | 1 -
29 tools-musl/portage.arm64.vanilla/package.use/pam | 1 -
30 tools-musl/portage.armv7a.hardened/.keep | 0
31 tools-musl/portage.armv7a.hardened/package.use/pam | 1 -
32 tools-musl/portage.armv7a.vanilla/.keep | 0
33 tools-musl/portage.armv7a.vanilla/package.use/pam | 1 -
34 tools-musl/portage.i686.vanilla/.keep | 0
35 tools-musl/portage.i686.vanilla/package.use/pam | 1 -
36 tools-musl/portage.mips32r2.vanilla/.keep | 0
37 tools-musl/portage.mips32r2.vanilla/package.mask | 5 --
38 .../portage.mips32r2.vanilla/package.use/pam | 1 -
39 tools-musl/portage.mipsel3.vanilla/.keep | 0
40 tools-musl/portage.mipsel3.vanilla/package.mask | 5 --
41 tools-musl/portage.mipsel3.vanilla/package.use/pam | 1 -
42 tools-musl/portage.ppc.vanilla/.keep | 0
43 tools-musl/portage.ppc.vanilla/package.use/pam | 1 -
44 tools-musl/run-arm64.sh | 57 -------------
45 tools-musl/run-armv7a.sh | 61 --------------
46 tools-musl/run-mips32r2.sh | 65 ---------------
47 tools-musl/run-mipsel3.sh | 65 ---------------
48 tools-musl/run-ppc.sh | 65 ---------------
49 tools-musl/run-stage4.sh | 23 ------
50 tools-musl/run.sh | 70 ----------------
51 tools-musl/stage-all.conf.template | 12 ---
52 tools-musl/stage.conf.template | 12 ---
53 tools-musl/stage4-fsscript.sh | 93 ----------------------
54 tools-musl/stage4-hardened-amd64.spec | 72 -----------------
55 43 files changed, 728 deletions(-)
56
57 diff --git a/tools-musl/.gitignore b/tools-musl/.gitignore
58 deleted file mode 100644
59 index 2315a4e4..00000000
60 --- a/tools-musl/.gitignore
61 +++ /dev/null
62 @@ -1,3 +0,0 @@
63 -*log
64 -*err
65 -stage*.conf
66
67 diff --git a/tools-musl/catalyst.conf.local b/tools-musl/catalyst.conf.local
68 deleted file mode 100644
69 index 91d3c926..00000000
70 --- a/tools-musl/catalyst.conf.local
71 +++ /dev/null
72 @@ -1,31 +0,0 @@
73 -# Custom catalyst.conf file
74 -
75 -digests="sha512 whirlpool"
76 -
77 -contents="auto"
78 -
79 -distdir="/release/tmp/distfiles"
80 -
81 -envscript="/etc/catalyst/catalystrc"
82 -
83 -hash_function="crc32"
84 -
85 -#options="autoresume bindist kerncache pkgcache seedcache snapcache"
86 -options="autoresume bindist kerncache pkgcache seedcache"
87 -
88 -portdir="/usr/portage"
89 -
90 -repo_basedir="/var/db/repos"
91 -repo_name="gentoo"
92 -target_distdir="/var/cache/distfiles"
93 -target_pkgdir="/var/cache/binpkgs"
94 -
95 -sharedir="/usr/share/catalyst"
96 -
97 -shdir="%(sharedir)s/targets"
98 -
99 -snapshot_cache="/release/buildroot/alt-dev/snapshot_cache"
100 -
101 -storedir="/release/buildroot/alt-dev"
102 -
103 -source_matching="strict"
104
105 diff --git a/tools-musl/clean.sh b/tools-musl/clean.sh
106 deleted file mode 100755
107 index 916c4eb4..00000000
108 --- a/tools-musl/clean.sh
109 +++ /dev/null
110 @@ -1,6 +0,0 @@
111 -#!/bin/bash
112 -
113 -# This just removes the temporary conf err and log
114 -# files generated during a run
115 -
116 -rm -f *conf *err *log
117
118 diff --git a/tools-musl/common.sh b/tools-musl/common.sh
119 deleted file mode 100644
120 index 67481bbd..00000000
121 --- a/tools-musl/common.sh
122 +++ /dev/null
123 @@ -1,63 +0,0 @@
124 -#!/bin/bash
125 -
126 -source $(pwd)/catalyst.conf.local
127 -
128 -mydate=`date +%Y%m%d`
129 -
130 -
131 -undo_grsec() {
132 - [[ -d /proc/sys/kernel/grsecurity ]] || return
133 - for i in /proc/sys/kernel/grsecurity/chroot_* ; do
134 - echo 0 > $i
135 - done
136 -}
137 -
138 -
139 -banner() {
140 -cat << EOF | tee -a zzz.log > stage$1-$2-musl-$3.log
141 -
142 -************************************************************************
143 -* stage$1-$2-musl-$3
144 -************************************************************************"
145 -
146 -EOF
147 -}
148 -
149 -
150 -do_stages() {
151 - local arch=$1
152 - local flavor=$2
153 -
154 - for s in 1 2 3; do
155 - local tgpath="${storedir}/builds/musl/${flavor}/${arch}"
156 - local target="stage${s}-${arch}-musl-${flavor}-${mydate}.tar.bz2"
157 - local tglink="stage${s}-${arch}-musl-${flavor}.tar.bz2"
158 -
159 - if [[ ! -f "${tgpath}/${tglink}" ]]; then
160 - touch stage${s}-${arch}-musl-${flavor}.log
161 - echo "!!! ${tglink} at ${tgpath} doesn't exist" \
162 - | tee -a zzz.log \
163 - > stage${s}-${arch}-musl-${flavor}.err
164 - return 1
165 - fi
166 -
167 - banner ${s} ${arch} ${flavor}
168 - catalyst -c $(pwd)/catalyst.conf.local \
169 - -f stage${s}-${arch}-musl-${flavor}.conf \
170 - | tee -a zzz.log \
171 - > stage${s}-${arch}-musl-${flavor}.log \
172 - 2> stage${s}-${arch}-musl-${flavor}.err
173 -
174 - if [[ -f "${tgpath}/${target}" ]]; then
175 - rm -f "${tgpath}/${tglink}"
176 - ln -s ${target} "${tgpath}/${tglink}"
177 - else
178 - echo "!!! ${target} was not generated" \
179 - | tee -a zzz.log \
180 - >stage${s}-${arch}-musl-${flavor}.err
181 - return 1
182 - fi
183 - done
184 -
185 - return 0
186 -}
187
188 diff --git a/tools-musl/portage.amd64.hardened.stage4/.keep b/tools-musl/portage.amd64.hardened.stage4/.keep
189 deleted file mode 100644
190 index e69de29b..00000000
191
192 diff --git a/tools-musl/portage.amd64.hardened.stage4/package.keywords/stage4 b/tools-musl/portage.amd64.hardened.stage4/package.keywords/stage4
193 deleted file mode 100644
194 index 6f797e35..00000000
195 --- a/tools-musl/portage.amd64.hardened.stage4/package.keywords/stage4
196 +++ /dev/null
197 @@ -1 +0,0 @@
198 -=net-analyzer/macchanger-1.7.0-r1 ~amd64
199
200 diff --git a/tools-musl/portage.amd64.hardened.stage4/package.license b/tools-musl/portage.amd64.hardened.stage4/package.license
201 deleted file mode 100644
202 index c5fd72de..00000000
203 --- a/tools-musl/portage.amd64.hardened.stage4/package.license
204 +++ /dev/null
205 @@ -1,3 +0,0 @@
206 -# Allow linux-firmware and other required packages in @BINARY-REDISTRIBUTABLE
207 -# license group
208 -*/* @BINARY-REDISTRIBUTABLE
209
210 diff --git a/tools-musl/portage.amd64.hardened.stage4/package.use/stage4 b/tools-musl/portage.amd64.hardened.stage4/package.use/stage4
211 deleted file mode 100644
212 index dfa8b0e3..00000000
213 --- a/tools-musl/portage.amd64.hardened.stage4/package.use/stage4
214 +++ /dev/null
215 @@ -1,4 +0,0 @@
216 -app-admin/syslog-ng -tcpd
217 -sys-apps/kmod lzma # kernel module compression
218 -sys-apps/util-linux static-libs # for genkernel
219 -dev-lang/python xml sqlite # for layman
220
221 diff --git a/tools-musl/portage.amd64.hardened/.keep b/tools-musl/portage.amd64.hardened/.keep
222 deleted file mode 100644
223 index e69de29b..00000000
224
225 diff --git a/tools-musl/portage.amd64.hardened/package.use/pam b/tools-musl/portage.amd64.hardened/package.use/pam
226 deleted file mode 100644
227 index 0ce1211a..00000000
228 --- a/tools-musl/portage.amd64.hardened/package.use/pam
229 +++ /dev/null
230 @@ -1 +0,0 @@
231 -sys-libs/pam cracklib
232
233 diff --git a/tools-musl/portage.amd64.vanilla/.keep b/tools-musl/portage.amd64.vanilla/.keep
234 deleted file mode 100644
235 index e69de29b..00000000
236
237 diff --git a/tools-musl/portage.amd64.vanilla/package.use/pam b/tools-musl/portage.amd64.vanilla/package.use/pam
238 deleted file mode 100644
239 index 0ce1211a..00000000
240 --- a/tools-musl/portage.amd64.vanilla/package.use/pam
241 +++ /dev/null
242 @@ -1 +0,0 @@
243 -sys-libs/pam cracklib
244
245 diff --git a/tools-musl/portage.arm64.hardened/.keep b/tools-musl/portage.arm64.hardened/.keep
246 deleted file mode 100644
247 index e69de29b..00000000
248
249 diff --git a/tools-musl/portage.arm64.hardened/package.use/gmp b/tools-musl/portage.arm64.hardened/package.use/gmp
250 deleted file mode 100644
251 index 11d30357..00000000
252 --- a/tools-musl/portage.arm64.hardened/package.use/gmp
253 +++ /dev/null
254 @@ -1 +0,0 @@
255 -dev-libs/gmp static-libs
256
257 diff --git a/tools-musl/portage.arm64.hardened/package.use/pam b/tools-musl/portage.arm64.hardened/package.use/pam
258 deleted file mode 100644
259 index 0ce1211a..00000000
260 --- a/tools-musl/portage.arm64.hardened/package.use/pam
261 +++ /dev/null
262 @@ -1 +0,0 @@
263 -sys-libs/pam cracklib
264
265 diff --git a/tools-musl/portage.arm64.vanilla/.keep b/tools-musl/portage.arm64.vanilla/.keep
266 deleted file mode 100644
267 index e69de29b..00000000
268
269 diff --git a/tools-musl/portage.arm64.vanilla/package.use/gmp b/tools-musl/portage.arm64.vanilla/package.use/gmp
270 deleted file mode 100644
271 index 11d30357..00000000
272 --- a/tools-musl/portage.arm64.vanilla/package.use/gmp
273 +++ /dev/null
274 @@ -1 +0,0 @@
275 -dev-libs/gmp static-libs
276
277 diff --git a/tools-musl/portage.arm64.vanilla/package.use/pam b/tools-musl/portage.arm64.vanilla/package.use/pam
278 deleted file mode 100644
279 index 0ce1211a..00000000
280 --- a/tools-musl/portage.arm64.vanilla/package.use/pam
281 +++ /dev/null
282 @@ -1 +0,0 @@
283 -sys-libs/pam cracklib
284
285 diff --git a/tools-musl/portage.armv7a.hardened/.keep b/tools-musl/portage.armv7a.hardened/.keep
286 deleted file mode 100644
287 index e69de29b..00000000
288
289 diff --git a/tools-musl/portage.armv7a.hardened/package.use/pam b/tools-musl/portage.armv7a.hardened/package.use/pam
290 deleted file mode 100644
291 index 0ce1211a..00000000
292 --- a/tools-musl/portage.armv7a.hardened/package.use/pam
293 +++ /dev/null
294 @@ -1 +0,0 @@
295 -sys-libs/pam cracklib
296
297 diff --git a/tools-musl/portage.armv7a.vanilla/.keep b/tools-musl/portage.armv7a.vanilla/.keep
298 deleted file mode 100644
299 index e69de29b..00000000
300
301 diff --git a/tools-musl/portage.armv7a.vanilla/package.use/pam b/tools-musl/portage.armv7a.vanilla/package.use/pam
302 deleted file mode 100644
303 index 0ce1211a..00000000
304 --- a/tools-musl/portage.armv7a.vanilla/package.use/pam
305 +++ /dev/null
306 @@ -1 +0,0 @@
307 -sys-libs/pam cracklib
308
309 diff --git a/tools-musl/portage.i686.vanilla/.keep b/tools-musl/portage.i686.vanilla/.keep
310 deleted file mode 100644
311 index e69de29b..00000000
312
313 diff --git a/tools-musl/portage.i686.vanilla/package.use/pam b/tools-musl/portage.i686.vanilla/package.use/pam
314 deleted file mode 100644
315 index 0ce1211a..00000000
316 --- a/tools-musl/portage.i686.vanilla/package.use/pam
317 +++ /dev/null
318 @@ -1 +0,0 @@
319 -sys-libs/pam cracklib
320
321 diff --git a/tools-musl/portage.mips32r2.vanilla/.keep b/tools-musl/portage.mips32r2.vanilla/.keep
322 deleted file mode 100644
323 index e69de29b..00000000
324
325 diff --git a/tools-musl/portage.mips32r2.vanilla/package.mask b/tools-musl/portage.mips32r2.vanilla/package.mask
326 deleted file mode 100644
327 index 37e357a8..00000000
328 --- a/tools-musl/portage.mips32r2.vanilla/package.mask
329 +++ /dev/null
330 @@ -1,5 +0,0 @@
331 ->app-editors/nano-2.3.6
332 ->sys-apps/coreutils-8.23
333 ->sys-apps/iproute2-3.17.0
334 ->sys-apps/sandbox-2.6-r999
335 ->sys-devel/gcc-4.8.5-r99
336
337 diff --git a/tools-musl/portage.mips32r2.vanilla/package.use/pam b/tools-musl/portage.mips32r2.vanilla/package.use/pam
338 deleted file mode 100644
339 index 0ce1211a..00000000
340 --- a/tools-musl/portage.mips32r2.vanilla/package.use/pam
341 +++ /dev/null
342 @@ -1 +0,0 @@
343 -sys-libs/pam cracklib
344
345 diff --git a/tools-musl/portage.mipsel3.vanilla/.keep b/tools-musl/portage.mipsel3.vanilla/.keep
346 deleted file mode 100644
347 index e69de29b..00000000
348
349 diff --git a/tools-musl/portage.mipsel3.vanilla/package.mask b/tools-musl/portage.mipsel3.vanilla/package.mask
350 deleted file mode 100644
351 index 37e357a8..00000000
352 --- a/tools-musl/portage.mipsel3.vanilla/package.mask
353 +++ /dev/null
354 @@ -1,5 +0,0 @@
355 ->app-editors/nano-2.3.6
356 ->sys-apps/coreutils-8.23
357 ->sys-apps/iproute2-3.17.0
358 ->sys-apps/sandbox-2.6-r999
359 ->sys-devel/gcc-4.8.5-r99
360
361 diff --git a/tools-musl/portage.mipsel3.vanilla/package.use/pam b/tools-musl/portage.mipsel3.vanilla/package.use/pam
362 deleted file mode 100644
363 index 0ce1211a..00000000
364 --- a/tools-musl/portage.mipsel3.vanilla/package.use/pam
365 +++ /dev/null
366 @@ -1 +0,0 @@
367 -sys-libs/pam cracklib
368
369 diff --git a/tools-musl/portage.ppc.vanilla/.keep b/tools-musl/portage.ppc.vanilla/.keep
370 deleted file mode 100644
371 index e69de29b..00000000
372
373 diff --git a/tools-musl/portage.ppc.vanilla/package.use/pam b/tools-musl/portage.ppc.vanilla/package.use/pam
374 deleted file mode 100644
375 index 0ce1211a..00000000
376 --- a/tools-musl/portage.ppc.vanilla/package.use/pam
377 +++ /dev/null
378 @@ -1 +0,0 @@
379 -sys-libs/pam cracklib
380
381 diff --git a/tools-musl/run-arm64.sh b/tools-musl/run-arm64.sh
382 deleted file mode 100755
383 index 6b20710f..00000000
384 --- a/tools-musl/run-arm64.sh
385 +++ /dev/null
386 @@ -1,57 +0,0 @@
387 -#!/bin/bash
388 -
389 -source common.sh
390 -
391 -prepare_confs() {
392 - local flavor=$1
393 - local arch="arm64"
394 - local tarch="aarch64"
395 - local profile="default/linux/arm64/17.0/musl"
396 - [[ "${flavor}" == "hardened" ]] && profile="${profile}/hardened"
397 -
398 - for s in 1 2 3; do
399 - local cstage=stage${s}
400 - local p=$(( s - 1 ))
401 - [[ $p == 0 ]] && p=3
402 - local pstage=stage${p}
403 -
404 - cat stage.conf.template | \
405 - sed -e "s:\(^version_stamp.*$\):\1-${mydate}:" \
406 - -e "s:CSTAGE:${cstage}:g" \
407 - -e "s:PSTAGE:${pstage}:g" \
408 - -e "s:SARCH:${arch}:g" \
409 - -e "s:TARCH:${tarch}:g" \
410 - -e "s:FLAVOR:${flavor}:g" \
411 - -e "s:^profile\:.*:profile\: ${profile}:" \
412 - -e "s:MYCATALYST:$(pwd):g" \
413 - > stage${s}-${arch}-musl-${flavor}.conf
414 -
415 - sed -i "/^portage_confdir/s:_hardfp::" \
416 - stage${s}-${arch}-musl-${flavor}.conf
417 -
418 - portage_confdir=$(grep portage_confdir stage${s}-${arch}-musl-${flavor}.conf \
419 - | sed -e 's/^.*:[ \t]*//')
420 - [[ ! -e ${portage_confdir} ]] && sed -i -e '/^portage_confdir/d' \
421 - stage${s}-${arch}-musl-${flavor}.conf
422 - done
423 -
424 - sed -i "/^chost/d" stage3-${arch}-musl-${flavor}.conf
425 -}
426 -
427 -
428 -main() {
429 - >zzz.log
430 -
431 - catalyst -s current | tee -a zzz.log >snapshot.log 2>snapshot.err
432 -
433 - for flavor in hardened vanilla; do
434 - prepare_confs ${flavor}
435 - done
436 -
437 - for flavor in hardened vanilla; do
438 - do_stages "arm64" ${flavor}
439 - [[ $? == 1 ]] && echo "FAILURE at ${arch} ${flavor} " | tee zzz.log
440 - done
441 -}
442 -
443 -main $1 &
444
445 diff --git a/tools-musl/run-armv7a.sh b/tools-musl/run-armv7a.sh
446 deleted file mode 100755
447 index 12c16569..00000000
448 --- a/tools-musl/run-armv7a.sh
449 +++ /dev/null
450 @@ -1,61 +0,0 @@
451 -#!/bin/bash
452 -
453 -source common.sh
454 -
455 -prepare_confs() {
456 - local flavor=$1
457 - local arch="armv7a_hardfp"
458 - local tarch="armv7a"
459 - local profile="default/linux/arm/17.0/musl/armv7a"
460 - [[ "${flavor}" == "hardened" ]] && profile="${profile}/hardened"
461 -
462 - for s in 1 2 3; do
463 - local cstage=stage${s}
464 - local p=$(( s - 1 ))
465 - [[ $p == 0 ]] && p=3
466 - local pstage=stage${p}
467 -
468 - cat stage.conf.template | \
469 - sed -e "s:\(^version_stamp.*$\):\1-${mydate}:" \
470 - -e "s:CSTAGE:${cstage}:g" \
471 - -e "s:PSTAGE:${pstage}:g" \
472 - -e "s:SARCH:${arch}:g" \
473 - -e "s:TARCH:${tarch}:g" \
474 - -e "s:FLAVOR:${flavor}:g" \
475 - -e "s:gentoo-linux-musl:unknown-linux-musleabihf:g" \
476 - -e "s:^profile\:.*:profile\: ${profile}:" \
477 - -e "s:MYCATALYST:$(pwd):g" \
478 - > stage${s}-${arch}-musl-${flavor}.conf
479 -
480 - sed -i "/^portage_confdir/s:_hardfp::" \
481 - stage${s}-${arch}-musl-${flavor}.conf
482 -
483 - echo "cflags: -O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard" >> \
484 - stage${s}-${arch}-musl-${flavor}.conf
485 -
486 - portage_confdir=$(grep portage_confdir stage${s}-${arch}-musl-${flavor}.conf \
487 - | sed -e 's/^.*:[ \t]*//')
488 - [[ ! -e ${portage_confdir} ]] && sed -i -e '/^portage_confdir/d' \
489 - stage${s}-${arch}-musl-${flavor}.conf
490 - done
491 -
492 - sed -i "/^chost/d" stage3-${arch}-musl-${flavor}.conf
493 -}
494 -
495 -
496 -main() {
497 - >zzz.log
498 -
499 - catalyst -s current | tee -a zzz.log >snapshot.log 2>snapshot.err
500 -
501 - for flavor in hardened vanilla; do
502 - prepare_confs ${flavor}
503 - done
504 -
505 - for flavor in hardened vanilla; do
506 - do_stages "armv7a_hardfp" ${flavor}
507 - [[ $? == 1 ]] && echo "FAILURE at ${arch} ${flavor} " | tee zzz.log
508 - done
509 -}
510 -
511 -main $1 &
512
513 diff --git a/tools-musl/run-mips32r2.sh b/tools-musl/run-mips32r2.sh
514 deleted file mode 100755
515 index 07622eb4..00000000
516 --- a/tools-musl/run-mips32r2.sh
517 +++ /dev/null
518 @@ -1,65 +0,0 @@
519 -#!/bin/bash
520 -
521 -source common.sh
522 -
523 -prepare_confs() {
524 - local arch=$1
525 - local flavor=$2
526 -
527 - for s in 1 2 3; do
528 -
529 - local cstage=stage${s}
530 - local p=$(( s - 1 ))
531 - [[ $p == 0 ]] && p=3
532 - local pstage=stage${p}
533 - local tarch="${arch%32r2}"
534 - local parch="${tarch}"
535 -
536 - local profile=${flavor}
537 - [[ "${flavor}" == "vanilla" ]] && profile="default"
538 -
539 - cat stage-all.conf.template | \
540 - sed -e "s:\(^version_stamp.*$\):\1-${mydate}:" \
541 - -e "s:CSTAGE:${cstage}:g" \
542 - -e "s:PSTAGE:${pstage}:g" \
543 - -e "s:SARCH:${arch}:g" \
544 - -e "s:PARCH:${parch}:g" \
545 - -e "s:TARCH:${tarch}:g" \
546 - -e "s:FLAVOR:${flavor}:g" \
547 - -e "s:PROFILE:${profile}:g" \
548 - -e "s:MYCATALYST:$(pwd):g" \
549 - -e "s|^cflags:.*|cflags: -O2 -march=mips3 -mplt -Wa,-mfix-loongson2f-nop -pipe|" \
550 - -e "s|^cxxflags:.*|cxxflags: -O2 -march=mips3 -mplt -Wa,-mfix-loongson2f-nop -pipe|" \
551 - > stage${s}-${arch}-musl-${flavor}.conf
552 -
553 - portage_confdir=$(grep portage_confdir stage${s}-${arch}-musl-${flavor}.conf \
554 - | sed -e 's/^.*:[ \t]*//')
555 - [[ ! -e ${portage_confdir} ]] && sed -i -e '/^portage_confdir/d' \
556 - stage${s}-${arch}-musl-${flavor}.conf
557 - done
558 -
559 - sed -i "/^chost/d" stage3-${arch}-musl-${flavor}.conf
560 -}
561 -
562 -
563 -main() {
564 - >zzz.log
565 -
566 - catalyst -s current | tee -a zzz.log >snapshot.log 2>snapshot.err
567 -
568 - for arch in mips32r2; do
569 - for flavor in vanilla; do
570 - prepare_confs ${arch} ${flavor}
571 - done
572 - done
573 -
574 - # No parallelization for mips. Its too hard on the cpu!
575 - for arch in mips32r2; do
576 - for flavor in vanilla; do
577 - do_stages ${arch} ${flavor}
578 - [[ $? == 1 ]] && echo "FAILURE at ${arch} ${flavor} " | tee zzz.log
579 - done
580 - done
581 -}
582 -
583 -main $1 &
584
585 diff --git a/tools-musl/run-mipsel3.sh b/tools-musl/run-mipsel3.sh
586 deleted file mode 100755
587 index 930f34af..00000000
588 --- a/tools-musl/run-mipsel3.sh
589 +++ /dev/null
590 @@ -1,65 +0,0 @@
591 -#!/bin/bash
592 -
593 -source common.sh
594 -
595 -prepare_confs() {
596 - local arch=$1
597 - local flavor=$2
598 -
599 - for s in 1 2 3; do
600 -
601 - local cstage=stage${s}
602 - local p=$(( s - 1 ))
603 - [[ $p == 0 ]] && p=3
604 - local pstage=stage${p}
605 - local tarch="${arch%3}"
606 - local parch="mips/${tarch}"
607 -
608 - local profile=${flavor}
609 - [[ "${flavor}" == "vanilla" ]] && profile="default"
610 -
611 - cat stage-all.conf.template | \
612 - sed -e "s:\(^version_stamp.*$\):\1-${mydate}:" \
613 - -e "s:CSTAGE:${cstage}:g" \
614 - -e "s:PSTAGE:${pstage}:g" \
615 - -e "s:SARCH:${arch}:g" \
616 - -e "s:PARCH:${parch}:g" \
617 - -e "s:TARCH:${tarch}:g" \
618 - -e "s:FLAVOR:${flavor}:g" \
619 - -e "s:PROFILE:${profile}:g" \
620 - -e "s:MYCATALYST:$(pwd):g" \
621 - -e "s|^cflags:.*|cflags: -O2 -march=mips3 -mplt -Wa,-mfix-loongson2f-nop -pipe|" \
622 - -e "s|^cxxflags:.*|cxxflags: -O2 -march=mips3 -mplt -Wa,-mfix-loongson2f-nop -pipe|" \
623 - > stage${s}-${arch}-musl-${flavor}.conf
624 -
625 - portage_confdir=$(grep portage_confdir stage${s}-${arch}-musl-${flavor}.conf \
626 - | sed -e 's/^.*:[ \t]*//')
627 - [[ ! -e ${portage_confdir} ]] && sed -i -e '/^portage_confdir/d' \
628 - stage${s}-${arch}-musl-${flavor}.conf
629 - done
630 -
631 - sed -i "/^chost/d" stage3-${arch}-musl-${flavor}.conf
632 -}
633 -
634 -
635 -main() {
636 - >zzz.log
637 -
638 - catalyst -s current | tee -a zzz.log >snapshot.log 2>snapshot.err
639 -
640 - for arch in mipsel3; do
641 - for flavor in vanilla; do
642 - prepare_confs ${arch} ${flavor}
643 - done
644 - done
645 -
646 - # No parallelization for mips. Its too hard on the cpu!
647 - for arch in mipsel3; do
648 - for flavor in vanilla; do
649 - do_stages ${arch} ${flavor}
650 - [[ $? == 1 ]] && echo "FAILURE at ${arch} ${flavor} " | tee zzz.log
651 - done
652 - done
653 -}
654 -
655 -main $1 &
656
657 diff --git a/tools-musl/run-ppc.sh b/tools-musl/run-ppc.sh
658 deleted file mode 100755
659 index 2b985580..00000000
660 --- a/tools-musl/run-ppc.sh
661 +++ /dev/null
662 @@ -1,65 +0,0 @@
663 -#!/bin/bash
664 -
665 -source common.sh
666 -
667 -prepare_confs() {
668 - local arch=$1
669 - local flavor=$2
670 -
671 - for s in 1 2 3; do
672 -
673 - local cstage=stage${s}
674 - local p=$(( s - 1 ))
675 - [[ $p == 0 ]] && p=3
676 - local pstage=stage${p}
677 - local parch="${arch}"
678 -
679 - local tarch="${arch}"
680 - [[ "${arch}" == "ppc" ]] && tarch="powerpc"
681 -
682 - local profile=${flavor}
683 - [[ "${flavor}" == "vanilla" ]] && profile="default"
684 -
685 - cat stage-all.conf.template | \
686 - sed -e "s:\(^version_stamp.*$\):\1-${mydate}:" \
687 - -e "s:CSTAGE:${cstage}:g" \
688 - -e "s:PSTAGE:${pstage}:g" \
689 - -e "s:SARCH:${arch}:g" \
690 - -e "s:PARCH:${parch}:g" \
691 - -e "s:TARCH:${tarch}:g" \
692 - -e "s:FLAVOR:${flavor}:g" \
693 - -e "s:PROFILE:${profile}:g" \
694 - -e "s:MYCATALYST:$(pwd):g" \
695 - > stage${s}-${arch}-musl-${flavor}.conf
696 -
697 - portage_confdir=$(grep portage_confdir stage${s}-${arch}-musl-${flavor}.conf \
698 - | sed -e 's/^.*:[ \t]*//')
699 - [[ ! -e ${portage_confdir} ]] && sed -i -e '/^portage_confdir/d' \
700 - stage${s}-${arch}-musl-${flavor}.conf
701 - done
702 -
703 - sed -i "/^chost/d" stage3-${arch}-musl-${flavor}.conf
704 -}
705 -
706 -
707 -main() {
708 - >zzz.log
709 -
710 - catalyst -s current | tee -a zzz.log >snapshot.log 2>snapshot.err
711 -
712 - for arch in ppc; do
713 - for flavor in vanilla; do
714 - prepare_confs ${arch} ${flavor}
715 - done
716 - done
717 -
718 - # No parallelization
719 - for arch in ppc; do
720 - for flavor in vanilla; do
721 - do_stages ${arch} ${flavor}
722 - [[ $? == 1 ]] && echo "FAILURE at ${arch} ${flavor} " | tee zzz.log
723 - done
724 - done
725 -}
726 -
727 -main $1 &
728
729 diff --git a/tools-musl/run-stage4.sh b/tools-musl/run-stage4.sh
730 deleted file mode 100755
731 index 2a5263bb..00000000
732 --- a/tools-musl/run-stage4.sh
733 +++ /dev/null
734 @@ -1,23 +0,0 @@
735 -#!/bin/bash
736 -
737 -set -eu
738 -
739 -source /etc/catalyst/catalyst.conf
740 -
741 -MUSL_DIR="$( cd "$( dirname ${BASH_SOURCE[0]} )" && pwd )"
742 -MY_DATE="$(date +%Y%m%d)"
743 -
744 -# munge specfile for this run
745 -cp "${MUSL_DIR}"/stage4-hardened-amd64.spec "${MUSL_DIR}"/stage4-hardened-amd64-configured.spec
746 -sed -i "s|@REPO_DIR@|${MUSL_DIR}|g" "${MUSL_DIR}"/stage4-hardened-amd64-configured.spec
747 -sed -i "s|MY_DATE|${MY_DATE}|g" "${MUSL_DIR}"/stage4-hardened-amd64-configured.spec
748 -
749 -# catalyst stuff
750 -catalyst -f "${MUSL_DIR}"/stage4-hardened-amd64-configured.spec | tee -a "${MUSL_DIR}"/zzz.log
751 -
752 -# update link, rm -f returns 0 if file isn't there yet
753 -rm -f "${storedir}/builds/musl/hardened/amd64/stage4-amd64-musl-hardened.tar.xz"
754 -ln -s "${storedir}/builds/musl/hardened/amd64/stage4-amd64-musl-hardened-${MY_DATE}.tar.xz" "${storedir}/builds/musl/hardened/amd64/stage4-amd64-musl-hardened.tar.xz"
755 -
756 -# remove old specfile
757 -rm "${MUSL_DIR}"/stage4-hardened-amd64-configured.spec
758
759 diff --git a/tools-musl/run.sh b/tools-musl/run.sh
760 deleted file mode 100755
761 index f5e56f5a..00000000
762 --- a/tools-musl/run.sh
763 +++ /dev/null
764 @@ -1,70 +0,0 @@
765 -#!/bin/bash
766 -
767 -source common.sh
768 -
769 -prepare_confs() {
770 - local arch=$1
771 - local flavor=$2
772 -
773 - for s in 1 2 3; do
774 -
775 - local cstage=stage${s}
776 - local p=$(( s - 1 ))
777 - [[ $p == 0 ]] && p=3
778 - local pstage=stage${p}
779 -
780 - local parch="${arch}"
781 - [[ "${arch}" == "i686" ]] && parch="x86"
782 -
783 - local tarch="${arch}"
784 - [[ "${arch}" == "amd64" ]] && tarch="x86_64"
785 -
786 - local profile=${flavor}
787 - [[ "${flavor}" == "vanilla" ]] && profile="" || profile="/hardened"
788 -
789 - cat stage.conf.template | \
790 - sed -e "s:\(^version_stamp.*$\):\1-${mydate}:" \
791 - -e "s:CSTAGE:${cstage}:g" \
792 - -e "s:PSTAGE:${pstage}:g" \
793 - -e "s:SARCH:${arch}:g" \
794 - -e "s:PARCH:${parch}:g" \
795 - -e "s:TARCH:${tarch}:g" \
796 - -e "s:FLAVOR:${flavor}:g" \
797 - -e "s:PROFILE:${profile}:g" \
798 - -e "s:MYCATALYST:$(pwd):g" \
799 - > stage${s}-${arch}-musl-${flavor}.conf
800 -
801 - portage_confdir=$(grep portage_confdir stage${s}-${arch}-musl-${flavor}.conf \
802 - | sed -e 's/^.*:[ \t]*//')
803 - [[ ! -e ${portage_confdir} ]] && sed -i -e '/^portage_confdir/d' \
804 - stage${s}-${arch}-musl-${flavor}.conf
805 - done
806 -
807 - sed -i "/^chost/d" stage3-${arch}-musl-${flavor}.conf
808 -}
809 -
810 -
811 -main() {
812 - >zzz.log
813 -
814 - undo_grsec
815 -
816 - catalyst -c $(pwd)/catalyst.conf.local -s current | tee -a zzz.log >snapshot.log 2>snapshot.err
817 -
818 - for arch in amd64 i686; do
819 - for flavor in hardened vanilla; do
820 - prepare_confs ${arch} ${flavor}
821 - done
822 - done
823 -
824 - # The parallelization `( do_stages ... ) &` doesn't work here
825 - # if catalyst is using snapcache, bug #519656
826 - for arch in amd64 i686; do
827 - for flavor in hardened vanilla; do
828 - do_stages ${arch} ${flavor}
829 - [[ $? == 1 ]] && echo "FAILURE at ${arch} ${flavor} " | tee zzz.log
830 - done
831 - done
832 -}
833 -
834 -main $1 &
835
836 diff --git a/tools-musl/stage-all.conf.template b/tools-musl/stage-all.conf.template
837 deleted file mode 100644
838 index a93d8659..00000000
839 --- a/tools-musl/stage-all.conf.template
840 +++ /dev/null
841 @@ -1,12 +0,0 @@
842 -subarch: SARCH
843 -target: CSTAGE
844 -version_stamp: musl-FLAVOR
845 -rel_type: musl/FLAVOR/SARCH
846 -profile: PROFILE/linux/musl/PARCH
847 -snapshot: current
848 -source_subpath: musl/FLAVOR/SARCH/PSTAGE-SARCH-musl-FLAVOR
849 -chost: TARCH-gentoo-linux-musl
850 -cflags: -O2 -pipe
851 -cxxflags: -O2 -pipe
852 -portage_confdir: MYCATALYST/portage.SARCH.FLAVOR
853 -portage_overlay: /var/lib/layman/musl
854
855 diff --git a/tools-musl/stage.conf.template b/tools-musl/stage.conf.template
856 deleted file mode 100644
857 index 38ac1adf..00000000
858 --- a/tools-musl/stage.conf.template
859 +++ /dev/null
860 @@ -1,12 +0,0 @@
861 -subarch: SARCH
862 -target: CSTAGE
863 -version_stamp: musl-FLAVOR
864 -rel_type: musl/FLAVOR/SARCH
865 -profile: default/linux/PARCH/17.0/muslPROFILE
866 -snapshot: current
867 -source_subpath: musl/FLAVOR/SARCH/PSTAGE-SARCH-musl-FLAVOR
868 -chost: TARCH-gentoo-linux-musl
869 -cflags: -O2 -pipe
870 -cxxflags: -O2 -pipe
871 -portage_confdir: MYCATALYST/portage.SARCH.FLAVOR
872 -portage_overlay: /var/lib/layman/musl
873
874 diff --git a/tools-musl/stage4-fsscript.sh b/tools-musl/stage4-fsscript.sh
875 deleted file mode 100755
876 index 1a134ff9..00000000
877 --- a/tools-musl/stage4-fsscript.sh
878 +++ /dev/null
879 @@ -1,93 +0,0 @@
880 -#!/bin/bash
881 -
882 -# Set timezone
883 -echo 'UTC' > /etc/timezone
884 -
885 -# Some rootfs stuff
886 -grep -v rootfs /proc/mounts > /etc/mtab
887 -
888 -# This is set in rackspaces prep, might help us
889 -echo 'net.ipv4.conf.eth0.arp_notify = 1' >> /etc/sysctl.conf
890 -echo 'vm.swappiness = 0' >> /etc/sysctl.conf
891 -
892 -# Let's configure our grub
893 -# Access on both regular tty and serial console
894 -mkdir /boot/grub
895 -cat >>/etc/default/grub <<EOF
896 -GRUB_TERMINAL='serial console'
897 -GRUB_CMDLINE_LINUX="console=tty0 console=ttyS0,115200n8"
898 -GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"
899 -EOF
900 -grub-mkconfig -o /boot/grub/grub.cfg
901 -sed -r -i 's/loop[0-9]+p1/LABEL\=cloudimg-rootfs/g' /boot/grub/grub.cfg
902 -sed -i 's/root=.*\ ro/root=LABEL\=cloudimg-rootfs\ ro/' /boot/grub/grub.cfg
903 -
904 -# And the fstab
905 -echo 'LABEL=cloudimg-rootfs / ext4 defaults 0 0' > /etc/fstab
906 -
907 -# allow the console log
908 -sed -i 's/#s0/s0/g' /etc/inittab
909 -
910 -# let ipv6 use normal slaac
911 -sed -i 's/slaac/#slaac/g' /etc/dhcpcd.conf
912 -# don't let dhcpcd set domain name or hostname
913 -sed -i 's/domain_name\,\ domain_search\,\ host_name/domain_search/g' /etc/dhcpcd.conf
914 -
915 -# need to do this here because it clobbers an openrc owned file
916 -cat > /etc/conf.d/hostname << "EOL"
917 -# Set to the hostname of this machine
918 -if [ -f /etc/hostname ];then
919 - hostname=$(cat /etc/hostname 2> /dev/null | cut -d"." -f1 2> /dev/null)
920 -else
921 - hostname="localhost"
922 -fi
923 -EOL
924 -chmod 0644 /etc/conf.d/hostname
925 -chown root:root /etc/conf.d/hostname
926 -
927 -# set a nice default for /etc/resolv.conf
928 -cat > /etc/resolv.conf << EOL
929 -nameserver 8.8.8.8
930 -nameserver 2001:4860:4860::8888
931 -EOL
932 -
933 -# make sure musl stuff is available
934 -echo "=app-portage/layman-2.4.1-r1 ~amd64" >> /etc/portage/package.accept_keywords/layman
935 -echo "=dev-python/ssl-fetch-0.4 ~amd64" >> /etc/portage/package.accept_keywords/layman
936 -emerge -vq --jobs=4 layman dev-vcs/git
937 -layman -L
938 -layman -a musl
939 -
940 -# shrink stuff down
941 -eselect python set python3.5
942 -emerge -C -q dev-lang/python:2.7 sys-boot/grub sys-devel/bc
943 -USE="-build" emerge -q --jobs=2 --usepkg=n --buildpkg=y @preserved-rebuild
944 -USE="-build" emerge --verbose=n --depclean
945 -
946 -# let's upgrade (security fixes and otherwise)
947 -USE="-build" emerge -uDNv --with-bdeps=y --buildpkg=y --jobs=2 @world
948 -USE="-build" emerge --verbose=n --depclean
949 -USE="-build" emerge -v --usepkg=n --buildpkg=y @preserved-rebuild
950 -etc-update --automode -5
951 -
952 -# Clean up portage
953 -emerge --verbose=n --depclean
954 -emaint all -f
955 -eselect news read all
956 -eclean-dist --destructive
957 -sed -i '/^USE=\"\${USE}\ \ build\"$/d' /etc/portage/make.conf
958 -echo 'PORTAGE_GPG_DIR="/var/lib/gentoo/gkeys/keyrings/gentoo/release"' >> /etc/portage/make.conf
959 -sed -i '/dev-util\/pkgconf/d' /var/lib/portage/world
960 -
961 -# clean up system
962 -passwd -d root
963 -passwd -l root
964 -for i in $(find /var/log -type f); do truncate -s 0 $i; done
965 -# remove foreign manpages
966 -find /usr/share/man/ -mindepth 1 -maxdepth 1 -path "/usr/share/man/man*" -prune -o -exec rm -rf {} \;
967 -
968 -# fine if this fails, aka non-hardened
969 -if [[ -x /usr/sbin/migrate-pax ]]; then
970 - echo 'migraging pax'
971 - /usr/sbin/migrate-pax -m
972 -fi
973
974 diff --git a/tools-musl/stage4-hardened-amd64.spec b/tools-musl/stage4-hardened-amd64.spec
975 deleted file mode 100644
976 index ebfe47c7..00000000
977 --- a/tools-musl/stage4-hardened-amd64.spec
978 +++ /dev/null
979 @@ -1,72 +0,0 @@
980 -subarch: amd64
981 -target: stage4
982 -version_stamp: musl-hardened-MY_DATE
983 -rel_type: musl/hardened/amd64
984 -profile: default/linux/amd64/17.0/musl/hardened
985 -snapshot: current
986 -compression_mode: pixz_x
987 -source_subpath: musl/hardened/amd64/stage3-amd64-musl-hardened
988 -portage_confdir: @REPO_DIR@/portage.amd64.hardened.stage4
989 -portage_overlay: /opt/overlays/musl
990 -
991 -stage4/use:
992 - bash-completion
993 - bindist
994 - bzip2
995 - idm
996 - ipv6
997 - mmx
998 - sse
999 - sse2
1000 - urandom
1001 -
1002 -stage4/packages:
1003 - app-admin/syslog-ng
1004 - app-portage/layman
1005 - dev-util/pkgconf
1006 - net-misc/dhcpcd
1007 - sys-apps/iproute2
1008 - sys-devel/bc
1009 - sys-power/acpid
1010 - sys-process/cronie
1011 - app-crypt/gentoo-keys
1012 -stage4/fsscript: @REPO_DIR@/stage4-fsscript.sh
1013 -stage4/rcadd:
1014 - acpid|default
1015 - cronie|default
1016 - dhcpcd|default
1017 - net.lo|default
1018 - netmount|default
1019 - sshd|default
1020 - syslog-ng|default
1021 -
1022 -boot/kernel: gentoo
1023 -boot/kernel/gentoo/sources: gentoo-sources
1024 -boot/kernel/gentoo/config: @REPO_DIR@/../releases/kconfig/amd64/cloud-amd64-gentoo.config
1025 -boot/kernel/gentoo/extraversion: openstack
1026 -boot/kernel/gentoo/gk_kernargs: --all-ramdisk-modules --no-nfs --makeopts=-j4
1027 -
1028 -stage4/empty:
1029 - /root/.ccache
1030 - /tmp
1031 - /usr/portage/distfiles
1032 - /usr/src
1033 - /var/cache
1034 - /var/empty
1035 - /var/run
1036 - /var/state
1037 - /var/tmp
1038 -
1039 -stage4/rm:
1040 - /boot/System.map-genkernel*
1041 - /etc/*-
1042 - /etc/*.old
1043 - /etc/ssh/ssh_host_*
1044 - /root/.*history
1045 - /root/.lesshst
1046 - /root/.ssh/known_hosts
1047 - /root/.viminfo
1048 - # Remove any generated stuff by genkernel
1049 - /usr/share/genkernel
1050 - # This is 3MB of crap for each copy
1051 - /usr/lib64/python*/site-packages/gentoolkit/test/eclean/testdistfiles.tar.gz