aboutsummaryrefslogtreecommitdiff
path: root/contrib/gitian-descriptors/deps-linux.yml
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-01-15 14:29:09 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2014-01-15 14:29:19 +0100
commit4b4b578cb32737d2face45438069db95bc316ebb (patch)
tree422cd303b326bca42da0c3ebb124a46b922a2090 /contrib/gitian-descriptors/deps-linux.yml
parent8c31f037b1530c366eb14be0fcbefc566382041f (diff)
parent04257151b14da2a7dbfce8fd6f8d5d5835169ea1 (diff)
Merge pull request #3536
0425715 gitian: add explicit dependency build for linux (Wladimir J. van der Laan) 279af1a build: use Ubuntu 12.04 for linux gitian build (Wladimir J. van der Laan)
Diffstat (limited to 'contrib/gitian-descriptors/deps-linux.yml')
-rw-r--r--contrib/gitian-descriptors/deps-linux.yml62
1 files changed, 62 insertions, 0 deletions
diff --git a/contrib/gitian-descriptors/deps-linux.yml b/contrib/gitian-descriptors/deps-linux.yml
new file mode 100644
index 0000000000..48f2be2d65
--- /dev/null
+++ b/contrib/gitian-descriptors/deps-linux.yml
@@ -0,0 +1,62 @@
+---
+name: "bitcoin"
+suites:
+- "precise"
+architectures:
+- "i386"
+- "amd64"
+packages:
+- "unzip"
+- "pkg-config"
+- "libtool"
+- "faketime"
+- "bsdmainutils"
+reference_datetime: "2013-06-01 00:00:00"
+remotes: []
+files:
+- "miniupnpc-1.8.tar.gz"
+- "qrencode-3.4.3.tar.bz2"
+- "protobuf-2.5.0.tar.bz2"
+- "db-4.8.30.NC.tar.gz"
+script: |
+ STAGING="$HOME/install"
+ OPTFLAGS='-O2'
+ export LIBRARY_PATH="$STAGING/lib"
+ # Integrity Check
+ echo "bc5f73c7b0056252c1888a80e6075787a1e1e9112b808f863a245483ff79859c miniupnpc-1.8.tar.gz" | sha256sum -c
+ echo "dfd71487513c871bad485806bfd1fdb304dedc84d2b01a8fb8e0940b50597a98 qrencode-3.4.3.tar.bz2" | sha256sum -c
+ echo "13bfc5ae543cf3aa180ac2485c0bc89495e3ae711fc6fab4f8ffe90dfb4bb677 protobuf-2.5.0.tar.bz2" | sha256sum -c
+ echo "12edc0df75bf9abd7f82f821795bcee50f42cb2e5f76a6a281b85732798364ef db-4.8.30.NC.tar.gz" | sha256sum -c
+
+ tar xzfm miniupnpc-1.8.tar.gz
+ cd miniupnpc-1.8
+ # miniupnpc is always built with -fPIC
+ INSTALLPREFIX=$STAGING make $MAKEOPTS install
+ rm -f $STAGING/lib/libminiupnpc.so* # no way to skip shared lib build
+ cd ..
+ #
+ tar xjfm qrencode-3.4.3.tar.bz2
+ cd qrencode-3.4.3
+ # need --with-pic to avoid relocation error in 64 bit builds
+ ./configure --prefix=$STAGING --enable-static --disable-shared -with-pic --without-tools
+ make $MAKEOPTS install
+ cd ..
+ #
+ tar xjfm protobuf-2.5.0.tar.bz2
+ cd protobuf-2.5.0
+ mkdir -p $STAGING/host/bin
+ # need --with-pic to avoid relocation error in 64 bit builds
+ ./configure --prefix=$STAGING --bindir=$STAGING/host/bin --enable-static --disable-shared --with-pic
+ make $MAKEOPTS install
+ cd ..
+ #
+ tar xzf db-4.8.30.NC.tar.gz
+ cd db-4.8.30.NC/build_unix
+ # need --with-pic to avoid relocation error in 64 bit builds
+ ../dist/configure --prefix=$STAGING --enable-cxx --disable-shared --with-pic
+ make $MAKEOPTS library_build
+ make install_lib install_include
+ cd ../..
+ #
+ cd $STAGING
+ tar -czf $OUTDIR/bitcoin-deps-linux${GBUILD_BITS}-gitian-r1.tar.gz include lib bin host