File tree Expand file tree Collapse file tree 3 files changed +49
-8
lines changed
contrib/gitian-descriptors Expand file tree Collapse file tree 3 files changed +49
-8
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ name : " boost"
3
+ suites :
4
+ - " precise"
5
+ architectures :
6
+ - " i386"
7
+ - " amd64"
8
+ packages :
9
+ - " unzip"
10
+ - " pkg-config"
11
+ - " libtool"
12
+ - " faketime"
13
+ - " bsdmainutils"
14
+ - " zip"
15
+ reference_datetime : " 2011-01-30 00:00:00"
16
+ remotes : []
17
+ files :
18
+ - " boost_1_55_0.tar.bz2"
19
+ script : |
20
+ STAGING="$HOME/install"
21
+ export LIBRARY_PATH="$STAGING/lib"
22
+ # Input Integrity Check
23
+ echo "fff00023dd79486d444c8e29922f4072e1d451fc5a4d2b6075852ead7f2b7b52 boost_1_55_0.tar.bz2" | shasum -c
24
+
25
+ mkdir -p "$STAGING"
26
+ tar xjf boost_1_55_0.tar.bz2
27
+ cd boost_1_55_0
28
+ GCCVERSION=$(g++ -E -dM $(mktemp --suffix=.h) | grep __VERSION__ | cut -d ' ' -f 3 | cut -d '"' -f 2)
29
+ # note: bjam with -d+2 reveals that -O3 is implied by default, no need to provide it in cxxflags
30
+ echo "using gcc : $GCCVERSION : g++
31
+ :
32
+ <cxxflags>\"-frandom-seed=boost1 -fPIC\"
33
+ ;" > user-config.jam
34
+
35
+ ./bootstrap.sh --without-icu
36
+
37
+ ./bjam toolset=gcc threadapi=pthread threading=multi variant=release link=static runtime-link=shared --user-config=user-config.jam --without-mpi --without-python -sNO_BZIP2=1 --layout=tagged --build-type=complete --prefix="$STAGING" $MAKEOPTS install
38
+
39
+ cd "$STAGING"
40
+ export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1
41
+ export FAKETIME=$REFERENCE_DATETIME
42
+ zip -r $OUTDIR/boost-linux${GBUILD_BITS}-1.55.0-gitian-r1.zip *
Original file line number Diff line number Diff line change @@ -6,13 +6,7 @@ architectures:
6
6
- " i386"
7
7
- " amd64"
8
8
packages :
9
- - " qt4-qmake"
10
9
- " libqt4-dev"
11
- - " libboost-system-dev"
12
- - " libboost-filesystem-dev"
13
- - " libboost-program-options-dev"
14
- - " libboost-thread-dev"
15
- - " libboost-test-dev"
16
10
- " libssl-dev"
17
11
- " git-core"
18
12
- " unzip"
@@ -29,6 +23,8 @@ remotes:
29
23
files :
30
24
- " bitcoin-deps-linux32-gitian-r1.zip"
31
25
- " bitcoin-deps-linux64-gitian-r1.zip"
26
+ - " boost-linux32-1.55.0-gitian-r1.zip"
27
+ - " boost-linux64-1.55.0-gitian-r1.zip"
32
28
script : |
33
29
STAGING="$HOME/install"
34
30
OPTFLAGS='-O2'
@@ -39,17 +35,18 @@ script: |
39
35
mkdir -p $STAGING
40
36
cd $STAGING
41
37
unzip ../build/bitcoin-deps-linux${GBUILD_BITS}-gitian-r1.zip
38
+ unzip ../build/boost-linux${GBUILD_BITS}-1.55.0-gitian-r1.zip
42
39
cd ../build
43
40
#
44
41
cd bitcoin
45
42
export TAR_OPTIONS=--mtime=`echo $REFERENCE_DATETIME | awk '{ print $1 }'`
46
43
./autogen.sh
47
- ./configure --prefix=$STAGING --bindir=$BINDIR --with-protoc-bindir=$STAGING/host/bin --disable-maintainer-mode --disable-dependency-tracking PKG_CONFIG_PATH="$STAGING/lib/pkgconfig" CPPFLAGS="-I$STAGING/include ${OPTFLAGS}" LDFLAGS="-L$STAGING/lib ${OPTFLAGS}" CXXFLAGS="-frandom-seed=bitcoin ${OPTFLAGS}"
44
+ ./configure --prefix=$STAGING --bindir=$BINDIR --with-protoc-bindir=$STAGING/host/bin --with-boost=$STAGING -- disable-maintainer-mode --disable-dependency-tracking PKG_CONFIG_PATH="$STAGING/lib/pkgconfig" CPPFLAGS="-I$STAGING/include ${OPTFLAGS}" LDFLAGS="-L$STAGING/lib ${OPTFLAGS}" CXXFLAGS="-frandom-seed=bitcoin ${OPTFLAGS}" BOOST_CHRONO_EXTRALIBS="-lrt "
48
45
make dist
49
46
mkdir -p distsrc
50
47
cd distsrc
51
48
tar --strip-components=1 -xf ../bitcoin-*.tar.*
52
- ./configure --prefix=$STAGING --bindir=$BINDIR --with-protoc-bindir=$STAGING/host/bin --disable-maintainer-mode --disable-dependency-tracking PKG_CONFIG_PATH="$STAGING/lib/pkgconfig" CPPFLAGS="-I$STAGING/include ${OPTFLAGS}" LDFLAGS="-L$STAGING/lib ${OPTFLAGS}" CXXFLAGS="-frandom-seed=bitcoin ${OPTFLAGS}"
49
+ ./configure --prefix=$STAGING --bindir=$BINDIR --with-protoc-bindir=$STAGING/host/bin --with-boost=$STAGING -- disable-maintainer-mode --disable-dependency-tracking PKG_CONFIG_PATH="$STAGING/lib/pkgconfig" CPPFLAGS="-I$STAGING/include ${OPTFLAGS}" LDFLAGS="-L$STAGING/lib ${OPTFLAGS}" CXXFLAGS="-frandom-seed=bitcoin ${OPTFLAGS}" BOOST_CHRONO_EXTRALIBS="-lrt "
53
50
make $MAKEOPTS
54
51
make $MAKEOPTS install-strip
55
52
mkdir -p $OUTDIR/src
Original file line number Diff line number Diff line change @@ -53,6 +53,8 @@ Release Process
53
53
cd ..
54
54
./bin/gbuild ../bitcoin/contrib/gitian-descriptors/deps-linux.yml
55
55
mv build/out/bitcoin-deps-*.zip inputs/
56
+ ./bin/gbuild ../bitcoin/contrib/gitian-descriptors/boost-linux.yml
57
+ mv build/out/boost-linux-*.zip inputs/
56
58
./bin/gbuild ../bitcoin/contrib/gitian-descriptors/boost-win32.yml
57
59
mv build/out/boost-win32-*.zip inputs/
58
60
./bin/gbuild ../bitcoin/contrib/gitian-descriptors/deps-win32.yml
You can’t perform that action at this time.
0 commit comments