From 74d068eb534bf14b597766b82e5138303f54b91e Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sat, 13 Jun 2015 11:21:58 +0200 Subject: reproducible coreboot and openwrt: turn the 'reproducible?' headline into a statement if that's the case --- bin/reproducible_coreboot.sh | 8 +++++++- bin/reproducible_openwrt.sh | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/bin/reproducible_coreboot.sh b/bin/reproducible_coreboot.sh index d431335d..2dc98d5f 100755 --- a/bin/reproducible_coreboot.sh +++ b/bin/reproducible_coreboot.sh @@ -228,6 +228,12 @@ done echo " " >> $ROMS_HTML GOOD_PERCENT=$(echo "scale=1 ; ($GOOD_ROMS*100/$ALL_ROMS)" | bc) BAD_PERCENT=$(echo "scale=1 ; ($BAD_ROMS*100/$ALL_ROMS)" | bc) +# are we there yet? +if [ "$GOOD_PERCENT" = "100.0" ] ; then + MAGIC_SIGN="!" +else + MAGIC_SIGN="?" +fi # # finally create the webpage @@ -250,7 +256,7 @@ cat > $PAGE <<- EOF

coreboot

- coreboot™: fast, flexible and reproducible Open Source firmware? + coreboot™: fast, flexible and reproducible Open Source firmware$MAGIC_SIGN

EOF diff --git a/bin/reproducible_openwrt.sh b/bin/reproducible_openwrt.sh index f8ac938a..b94e1f0f 100755 --- a/bin/reproducible_openwrt.sh +++ b/bin/reproducible_openwrt.sh @@ -249,6 +249,12 @@ for i in * ; do done echo " " >> $IMAGES_HTML GOOD_PERCENT=$(echo "scale=1 ; ($GOOD_IMAGES*100/$ALL_IMAGES)" | bc) +# are we there yet? +if [ "$GOOD_PERCENT" = "100.0" ] ; then + MAGIC_SIGN="!" +else + MAGIC_SIGN="?" +fi # # finally create the webpage @@ -272,7 +278,7 @@ EOF cat $(find openwrt/build_dir/ -name banner | grep etc/banner|head -1) >> $PAGE write_page "

" write_page "
" -write_page "

Reproducible OpenWRT - reproducible wireless freedom?

" +write_page "

Reproducible OpenWRT - reproducible wireless freedom$MAGIC_SIGN

" write_page "

Reproducible builds enable anyone to reproduce bit by bit identical binary packages from a given source, so that anyone can verify that a given binary derived from the source it was said to be derived. There is a lot more information about reproducible builds on the Debian wiki and on https://reproducible.debian.net. The wiki has a lot more information, eg. why this is useful, what common issues exist and which workarounds and solutions are known.
" write_page " Reproducible OpenWRT is an effort to apply this to OpenWRT. Thus each OpenWR target is build twice, with a few varitations added and then the resulting images from the two builds are compared using debbindiff. Please note that the toolchain is not varied at all as the rebuild happens on exactly the same system. More variations are expected to be seen in the wild.

" write_page "

There is a monthly run jenkins job to test the master branch of openwrt.git. Currently this job is triggered more often though, because this is still under development and brand new. The jenkins job is simply running reproducible_openwrt.sh in a Debian environemnt and this script is solely responsible for creating this page. Feel invited to join #debian-reproducible (on irc.oftc.net) to request job runs whenever sensible. Patches and other feedback are very much appreciated!

" -- cgit v1.2.3-54-g00ecf