Skip to content

Commit

Permalink
rebuild-stage1: use pkg order from reproducible build test
Browse files Browse the repository at this point in the history
  • Loading branch information
rofl0r committed Jun 14, 2018
1 parent 2a119f0 commit 6eb2120
Showing 1 changed file with 39 additions and 3 deletions.
42 changes: 39 additions & 3 deletions utils/rebuild-stage1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,42 @@
# use: rebuild-stage1.sh [no args]
# Rebuilds the stage0/1 binaries with the stage 1 compiler.

butch rebuild jobflow sabotage-core patch busybox binutils make \
kbd m4 gmp mpfr mpc libz libelf gcc640 musl 9base pkgconf \
libblkid e2fsprogs man join libressl ca-certificates
# The resulting binaries/package directories should be
# identical to binaries produced on different systems
# (can be verified with `butch checksum`)

base_pkg='
libz
gmp
mpfr
mpc
libelf
gcc640
musl
jobflow
patch
busybox
binutils
make
sabotage-core
join
'

ext_pkg='
kbd
m4
9base
pkgconf
libblkid
e2fsprogs
man
libressl
ca-certificates
'

pkg="$base_pkg"
test "$1" = --base || pkg="$base_pkg$ext_pkg"

pkg=$(printf "%s\n" "$pkg" | sed '/^$/d' | tr '\n' ' ')

butch rebuild $pkg

0 comments on commit 6eb2120

Please sign in to comment.