Browse Source

Gitian fixes for 0.9.0rc1 build

- Add 'g++' package (virtualbox images don't have this by default)
- Workaround for determinism in Qt5 resources
- Pass --disable-maintainer-mode --disable-dependency-tracking to
  configure for libqrencode to avoid random errors about missing m4
  directory
- Fix typo -with-pic -> --with-pic

It is not necessary to rebuild dependencies after this commit.
Fixes #3610 and #3612.
0.10
Wladimir J. van der Laan 11 years ago
parent
commit
65615a3a78
  1. 1
      contrib/gitian-descriptors/boost-linux.yml
  2. 3
      contrib/gitian-descriptors/deps-linux.yml
  3. 2
      contrib/gitian-descriptors/deps-win.yml
  4. 1
      contrib/gitian-descriptors/gitian-linux.yml
  5. 14
      contrib/gitian-descriptors/gitian-win.yml
  6. 10
      contrib/gitian-descriptors/qt-win.yml

1
contrib/gitian-descriptors/boost-linux.yml

@ -6,6 +6,7 @@ architectures:
- "i386" - "i386"
- "amd64" - "amd64"
packages: packages:
- "g++"
- "unzip" - "unzip"
- "pkg-config" - "pkg-config"
- "libtool" - "libtool"

3
contrib/gitian-descriptors/deps-linux.yml

@ -6,6 +6,7 @@ architectures:
- "i386" - "i386"
- "amd64" - "amd64"
packages: packages:
- "g++"
- "unzip" - "unzip"
- "zip" - "zip"
- "pkg-config" - "pkg-config"
@ -50,7 +51,7 @@ script: |
tar xjfm qrencode-3.4.3.tar.bz2 tar xjfm qrencode-3.4.3.tar.bz2
cd qrencode-3.4.3 cd qrencode-3.4.3
# need --with-pic to avoid relocation error in 64 bit builds # need --with-pic to avoid relocation error in 64 bit builds
./configure --prefix=$STAGING --enable-static --disable-shared -with-pic --without-tools ./configure --prefix=$STAGING --enable-static --disable-shared --with-pic --without-tools --disable-maintainer-mode --disable-dependency-tracking
make $MAKEOPTS install make $MAKEOPTS install
cd .. cd ..
# #

2
contrib/gitian-descriptors/deps-win.yml

@ -107,7 +107,7 @@ script: |
# #
tar xjf $INDIR/qrencode-3.4.3.tar.bz2 tar xjf $INDIR/qrencode-3.4.3.tar.bz2
cd qrencode-3.4.3 cd qrencode-3.4.3
png_CFLAGS="-I$INSTALLPREFIX/include" png_LIBS="-L$INSTALLPREFIX/lib -lpng" ./configure --prefix=$INSTALLPREFIX --host=$HOST png_CFLAGS="-I$INSTALLPREFIX/include" png_LIBS="-L$INSTALLPREFIX/lib -lpng" ./configure --prefix=$INSTALLPREFIX --host=$HOST --enable-static --disable-shared --without-tools --disable-maintainer-mode --disable-dependency-tracking
make make
make install make install
cd .. cd ..

1
contrib/gitian-descriptors/gitian-linux.yml

@ -6,6 +6,7 @@ architectures:
- "i386" - "i386"
- "amd64" - "amd64"
packages: packages:
- "g++"
- "libqt4-dev" - "libqt4-dev"
- "git-core" - "git-core"
- "unzip" - "unzip"

14
contrib/gitian-descriptors/gitian-win.yml

@ -22,8 +22,8 @@ remotes:
- "url": "https://github.com/bitcoin/bitcoin.git" - "url": "https://github.com/bitcoin/bitcoin.git"
"dir": "bitcoin" "dir": "bitcoin"
files: files:
- "qt-win32-5.2.0-gitian-r1.zip" - "qt-win32-5.2.0-gitian-r2.zip"
- "qt-win64-5.2.0-gitian-r1.zip" - "qt-win64-5.2.0-gitian-r2.zip"
- "boost-win32-1.55.0-gitian-r6.zip" - "boost-win32-1.55.0-gitian-r6.zip"
- "boost-win64-1.55.0-gitian-r6.zip" - "boost-win64-1.55.0-gitian-r6.zip"
- "bitcoin-deps-win32-gitian-r10.zip" - "bitcoin-deps-win32-gitian-r10.zip"
@ -36,6 +36,14 @@ script: |
INDIR=$HOME/build INDIR=$HOME/build
OPTFLAGS='-O2' OPTFLAGS='-O2'
NEEDDIST=1 NEEDDIST=1
# Qt: workaround for determinism in resource ordering
# Qt5's rcc uses a QHash to store the files for the resource.
# A security fix in QHash makes the ordering of keys to be different on every run
# (https://qt.gitorious.org/qt/qtbase/commit/c01eaa438200edc9a3bbcd8ae1e8ded058bea268).
# This is good in general but qrc shouldn't be doing a traversal over a randomized container.
# The thorough solution would be to use QMap instead of QHash, but this requires patching Qt.
# For now luckily there is a test mode that forces a fixed seed.
export QT_RCC_TEST=1
for BITS in 32 64; do # for architectures for BITS in 32 64; do # for architectures
# #
STAGING=$HOME/staging${BITS} STAGING=$HOME/staging${BITS}
@ -49,7 +57,7 @@ script: |
mkdir -p $STAGING $BUILDDIR $BINDIR mkdir -p $STAGING $BUILDDIR $BINDIR
# #
cd $STAGING cd $STAGING
unzip $INDIR/qt-win${BITS}-5.2.0-gitian-r1.zip unzip $INDIR/qt-win${BITS}-5.2.0-gitian-r2.zip
unzip $INDIR/boost-win${BITS}-1.55.0-gitian-r6.zip unzip $INDIR/boost-win${BITS}-1.55.0-gitian-r6.zip
unzip $INDIR/bitcoin-deps-win${BITS}-gitian-r10.zip unzip $INDIR/bitcoin-deps-win${BITS}-gitian-r10.zip
unzip $INDIR/protobuf-win${BITS}-2.5.0-gitian-r4.zip unzip $INDIR/protobuf-win${BITS}-2.5.0-gitian-r4.zip

10
contrib/gitian-descriptors/qt-win.yml

@ -21,6 +21,14 @@ script: |
# Defines # Defines
export TZ=UTC export TZ=UTC
INDIR=$HOME/build INDIR=$HOME/build
# Qt: workaround for determinism in resource ordering
# Qt5's rcc uses a QHash to store the files for the resource.
# A security fix in QHash makes the ordering of keys to be different on every run
# (https://qt.gitorious.org/qt/qtbase/commit/c01eaa438200edc9a3bbcd8ae1e8ded058bea268).
# This is good in general but qrc shouldn't be doing a traversal over a randomized container.
# The thorough solution would be to use QMap instead of QHash, but this requires patching Qt.
# For now luckily there is a test mode that forces a fixed seed.
export QT_RCC_TEST=1
# Integrity Check # Integrity Check
echo "395ec72277c5786c65b8163ef5817fd03d0a1f524a6d47f53624baf8056f1081 qt-everywhere-opensource-src-5.2.0.tar.gz" | sha256sum -c echo "395ec72277c5786c65b8163ef5817fd03d0a1f524a6d47f53624baf8056f1081 qt-everywhere-opensource-src-5.2.0.tar.gz" | sha256sum -c
@ -71,7 +79,7 @@ script: |
# as zip stores file timestamps, use faketime to intercept stat calls to set dates for all files to reference date # as zip stores file timestamps, use faketime to intercept stat calls to set dates for all files to reference date
export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1 export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1
zip -r $OUTDIR/qt-win${BITS}-5.2.0-gitian-r1.zip * zip -r $OUTDIR/qt-win${BITS}-5.2.0-gitian-r2.zip *
unset LD_PRELOAD unset LD_PRELOAD
unset FAKETIME unset FAKETIME
done # for BITS in done # for BITS in

Loading…
Cancel
Save