aboutsummaryrefslogtreecommitdiff
path: root/contrib/gitian-descriptors/boost-win.yml
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-02-06 18:47:19 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2014-02-10 17:07:35 +0100
commit6b55e6b97d333a5252f9516a20414f7204e3363a (patch)
tree973ba961c1af0ad3508f53d2ff966b05a2c8d3c8 /contrib/gitian-descriptors/boost-win.yml
parentc43d1e5549f548efd221043bbc8069700ee22183 (diff)
gitian: Post-process .a libraries for win to be deterministic
Diffstat (limited to 'contrib/gitian-descriptors/boost-win.yml')
-rw-r--r--contrib/gitian-descriptors/boost-win.yml11
1 files changed, 10 insertions, 1 deletions
diff --git a/contrib/gitian-descriptors/boost-win.yml b/contrib/gitian-descriptors/boost-win.yml
index 420a7ce760..db5d6bab1d 100644
--- a/contrib/gitian-descriptors/boost-win.yml
+++ b/contrib/gitian-descriptors/boost-win.yml
@@ -20,6 +20,7 @@ script: |
export FAKETIME=$REFERENCE_DATETIME
export TZ=UTC
INDIR=$HOME/build
+ TEMPDIR=$HOME/tmp
# Input Integrity Check
echo "fff00023dd79486d444c8e29922f4072e1d451fc5a4d2b6075852ead7f2b7b52 boost_1_55_0.tar.bz2" | shasum -c
echo "d2b7f6a1d7051faef3c9cf41a92fa3671d905ef1e1da920d07651a43299f6268 boost-mingw-gas-cross-compile-2013-03-03.patch" | shasum -c
@@ -70,8 +71,16 @@ script: |
# http://statmt.org/~s0565741/software/boost_1_52_0/libs/context/doc/html/context/requirements.html
# "For cross-compiling the lib you must specify certain additional properties at bjam command line: target-os, abi, binary-format, architecture and address-model."
./bjam toolset=gcc binary-format=pe target-os=windows threadapi=win32 address-model=$BITS threading=multi variant=release link=static runtime-link=static --user-config=user-config.jam --without-mpi --without-python -sNO_BZIP2=1 -sNO_ZLIB=1 --layout=tagged --build-type=complete --prefix="$INSTALLPREFIX" $MAKEOPTS install
+ # post-process all generated libraries to be deterministic
+ # extract them to a temporary directory then re-build them deterministically
+ for LIB in $(find $INSTALLPREFIX -name \*.a); do
+ rm -rf $TEMPDIR && mkdir $TEMPDIR && cd $TEMPDIR
+ $HOST-ar xv $LIB | cut -b5- > /tmp/list.txt
+ rm $LIB
+ $HOST-ar crsD $LIB $(cat /tmp/list.txt)
+ done
#
cd "$INSTALLPREFIX"
- find | sort | zip -@ $OUTDIR/boost-win$BITS-1.55.0-gitian-r6.zip
+ find | sort | zip -X@ $OUTDIR/boost-win$BITS-1.55.0-gitian-r6.zip
done # for BITS in