diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-07-18 05:37:01 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-07-18 05:37:01 +0200 |
commit | ee7170df348b3ef55b4478e55876482e4b4cb082 (patch) | |
tree | ab7dfc17c7bd9016dec150689f2f56e55c2771b5 /bin | |
parent | d38f9c7067b9b41cde8815e24925156ba9e3109c (diff) | |
download | jenkins.debian.net-ee7170df348b3ef55b4478e55876482e4b4cb082.tar.xz |
reproducible freebsd: actually try to build it
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_freebsd.sh | 48 |
1 files changed, 17 insertions, 31 deletions
diff --git a/bin/reproducible_freebsd.sh b/bin/reproducible_freebsd.sh index 106d52a0..98963a03 100755 --- a/bin/reproducible_freebsd.sh +++ b/bin/reproducible_freebsd.sh @@ -13,9 +13,6 @@ common_init "$@" set -e -# build for these architectures -MACHINES="sparc64 amd64" - cleanup_tmpdirs() { cd $RSSH "rm -r $TMPDIR" @@ -28,9 +25,8 @@ create_results_dirs() { save_freebsd_results(){ local RUN=$1 - local MACHINE=$2 - mkdir -p $TMPDIR/$RUN/${MACHINE} - cp -pr obj/releasedir/${MACHINE} $TMPDIR/$RUN/ + mkdir -p $TMPDIR/$RUN/ + cp -pr obj/releasedir/ $TMPDIR/$RUN/ find $TMPDIR/$RUN/ -name MD5 -o -name SHA512 -exec rm {} \; } @@ -56,25 +52,20 @@ echo $RSSH "cd $TMPBUILDDIR/freebsd ; git log -1" -echo "so far so good, to be continued..." -echo -exit 1 - echo "=============================================================================" echo "$(date -u) - Building freebsd ${FREEBSD_VERSION} - first build run." echo "=============================================================================" export TZ="/usr/share/zoneinfo/Etc/GMT+12" # actually build everything -for MACHINE in $MACHINES ; do - ionice -c 3 nice \ - ./build.sh -j $NUM_CPU -U -u -m ${MACHINE} release - # save results in b1 - save_freebsd_results b1 ${MACHINE} - # cleanup and explicitly delete old tooldir to force re-creation for the next $MACHINE type - ./build.sh -U -m ${MACHINE} cleandir - rm obj/tooldir.* -rf - echo "${MACHINE} done, first time." -done +$RSSH "cd $TMPBUILDDIR/freebsd ; TZ=$TZ make buildworld" +# save results in b1 +save_freebsd_results b1 +# cleanup ... + +echo "so far so good, to be continued..." +echo +exit 1 + echo "=============================================================================" echo "$(date -u) - Building freebsd ${FREEBSD_VERSION} - cleaning up between builds." @@ -94,17 +85,12 @@ export CAPTURE_ENVIRONMENT="I capture the environment" umask 0002 # use allmost all cores for second build NEW_NUM_CPU=$(echo $NUM_CPU-1|bc) -for MACHINE in $MACHINES ; do - ionice -c 3 nice \ - linux64 --uname-2.6 \ - ./build.sh -j $NEW_NUM_CPU -U -u -m ${MACHINE} release - # save results in b2 - save_freebsd_results b2 ${MACHINE} - # cleanup and explicitly delete old tooldir to force re-creation for the next $MACHINE type - ./build.sh -U -m ${MACHINE} cleandir - rm obj/tooldir.* -r - echo "${MACHINE} done, second time." -done +ionice -c 3 nice \ + linux64 --uname-2.6 \ + ./build.sh -j $NEW_NUM_CPU -U -u -m ${MACHINE} release +# save results in b2 +save_freebsd_results b2 +# cleanup... # reset environment to default values again export LANG="en_GB.UTF-8" |