20 reference_datetime: "2013-06-01 00:00:00"
22 - "url": "https://github.com/bitcoin/bitcoin.git"
25 - "qt-win32-5.2.0-gitian-r2.zip"
26 - "qt-win64-5.2.0-gitian-r2.zip"
27 - "boost-win32-1.55.0-gitian-r6.zip"
28 - "boost-win64-1.55.0-gitian-r6.zip"
29 - "bitcoin-deps-win32-gitian-r10.zip"
30 - "bitcoin-deps-win64-gitian-r10.zip"
31 - "protobuf-win32-2.5.0-gitian-r4.zip"
32 - "protobuf-win64-2.5.0-gitian-r4.zip"
39 # Qt: workaround for determinism in resource ordering
40 # Qt5's rcc uses a QHash to store the files for the resource.
41 # A security fix in QHash makes the ordering of keys to be different on every run
42 # (https://qt.gitorious.org/qt/qtbase/commit/c01eaa438200edc9a3bbcd8ae1e8ded058bea268).
43 # This is good in general but qrc shouldn't be doing a traversal over a randomized container.
44 # The thorough solution would be to use QMap instead of QHash, but this requires patching Qt.
45 # For now luckily there is a test mode that forces a fixed seed.
47 for BITS in 32 64; do # for architectures
49 STAGING=$HOME/staging${BITS}
50 BUILDDIR=$HOME/build${BITS}
52 if [ "$BITS" == "32" ]; then
55 HOST=x86_64-w64-mingw32
57 mkdir -p $STAGING $BUILDDIR $BINDIR
60 unzip $INDIR/qt-win${BITS}-5.2.0-gitian-r2.zip
61 unzip $INDIR/boost-win${BITS}-1.55.0-gitian-r6.zip
62 unzip $INDIR/bitcoin-deps-win${BITS}-gitian-r10.zip
63 unzip $INDIR/protobuf-win${BITS}-2.5.0-gitian-r4.zip
64 if [ "$NEEDDIST" == "1" ]; then
65 # Make source code archive which is architecture independent so it only needs to be done once
68 export PATH=$STAGING/host/bin:$PATH
69 export TAR_OPTIONS=--mtime=`echo $REFERENCE_DATETIME | awk '{ print $1 }'`
71 ./configure --bindir=$OUTDIR --prefix=$STAGING --host=$HOST --with-qt-plugindir=$STAGING/plugins --with-qt-incdir=$STAGING/include --with-qt-bindir=$STAGING/host/bin --with-boost=$STAGING --disable-maintainer-mode --with-protoc-bindir=$STAGING/host/bin --disable-dependency-tracking CPPFLAGS="-I$STAGING/include ${OPTFLAGS}" LDFLAGS="-L$STAGING/lib ${OPTFLAGS}" CXXFLAGS="-frandom-seed=bitcoin ${OPTFLAGS}"
74 cp -f bitcoin-*.tar.* $OUTDIR/src
77 # Build platform-dependent executables from source archive
81 tar --strip-components=1 -xf $HOME/build/bitcoin/bitcoin-*.tar.*
82 ./configure --bindir=$BINDIR --prefix=$STAGING --host=$HOST --with-qt-plugindir=$STAGING/plugins --with-qt-incdir=$STAGING/include --with-qt-bindir=$STAGING/host/bin --with-boost=$STAGING --disable-maintainer-mode --with-protoc-bindir=$STAGING/host/bin --disable-dependency-tracking CPPFLAGS="-I$STAGING/include ${OPTFLAGS}" LDFLAGS="-L$STAGING/lib ${OPTFLAGS}" CXXFLAGS="-frandom-seed=bitcoin ${OPTFLAGS}"
83 export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1
84 export FAKETIME=$REFERENCE_DATETIME
88 cp -f bitcoin-*setup*.exe $BINDIR/