Skip to content

Commit

Permalink
fixes for gitian builds
Browse files Browse the repository at this point in the history
  • Loading branch information
protonn committed Feb 13, 2018
1 parent 43b5e36 commit ef0edf8
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 16 deletions.
12 changes: 6 additions & 6 deletions contrib/gitian-descriptors/gitian-linux.yml
Expand Up @@ -34,7 +34,7 @@ files: []
script: |
WRAP_DIR=$HOME/wrapped
HOSTS="i686-pc-linux-gnu x86_64-linux-gnu arm-linux-gnueabihf aarch64-linux-gnu"
HOSTS="x86_64-linux-gnu arm-linux-gnueabihf aarch64-linux-gnu"
CONFIGFLAGS="--enable-glibc-back-compat --enable-reduce-exports --disable-bench --disable-gui-tests --disable-tests"
FAKETIME_HOST_PROGS=""
FAKETIME_PROGS="date ar ranlib nm"
Expand Down Expand Up @@ -91,9 +91,9 @@ script: |
# but we can't write there. Instead, create a link here and force it to be included in the
# search paths by wrapping gcc/g++.
mkdir -p $EXTRA_INCLUDES_BASE/i686-pc-linux-gnu
rm -f $WRAP_DIR/extra_includes/i686-pc-linux-gnu/asm
ln -s /usr/include/x86_64-linux-gnu/asm $EXTRA_INCLUDES_BASE/i686-pc-linux-gnu/asm
# mkdir -p $EXTRA_INCLUDES_BASE/i686-pc-linux-gnu
# rm -f $WRAP_DIR/extra_includes/i686-pc-linux-gnu/asm
# ln -s /usr/include/x86_64-linux-gnu/asm $EXTRA_INCLUDES_BASE/i686-pc-linux-gnu/asm
for prog in gcc g++; do
rm -f ${WRAP_DIR}/${prog}
Expand Down Expand Up @@ -133,7 +133,7 @@ script: |
# Create the release tarball using (arbitrarily) the first host
./autogen.sh
CONFIG_SITE=${BASEPREFIX}/`echo "${HOSTS}" | awk '{print $1;}'`/share/config.site ./configure --prefix=/
CONFIG_SITE=${BASEPREFIX}/`echo "${HOSTS}" | awk '{print $1;}'`/share/config.site ./configure --prefix=/ --disable-tests
make dist
SOURCEDIST=`echo argentum-*.tar.gz`
DISTNAME=`echo ${SOURCEDIST} | sed 's/.tar.*//'`
Expand All @@ -154,7 +154,7 @@ script: |
mkdir -p ${INSTALLPATH}
tar --strip-components=1 -xf ../$SOURCEDIST
CONFIG_SITE=${BASEPREFIX}/${i}/share/config.site ./configure --prefix=/ --disable-ccache --disable-maintainer-mode --disable-dependency-tracking ${CONFIGFLAGS} CFLAGS="${HOST_CFLAGS}" CXXFLAGS="${HOST_CXXFLAGS}" LDFLAGS="${HOST_LDFLAGS}"
CONFIG_SITE=${BASEPREFIX}/${i}/share/config.site ./configure --prefix=/ --disable-ccache--disable-tests --disable-maintainer-mode --disable-dependency-tracking ${CONFIGFLAGS} CFLAGS="${HOST_CFLAGS}" CXXFLAGS="${HOST_CXXFLAGS}" LDFLAGS="${HOST_LDFLAGS}"
make ${MAKEOPTS}
#make ${MAKEOPTS} -C src check-security
Expand Down
4 changes: 2 additions & 2 deletions contrib/gitian-descriptors/gitian-osx.yml
Expand Up @@ -102,7 +102,7 @@ script: |
# Create the release tarball using (arbitrarily) the first host
./autogen.sh
CONFIG_SITE=${BASEPREFIX}/`echo "${HOSTS}" | awk '{print $1;}'`/share/config.site ./configure --prefix=/
CONFIG_SITE=${BASEPREFIX}/`echo "${HOSTS}" | awk '{print $1;}'`/share/config.site ./configure --prefix=/ --disable-tests
make dist
SOURCEDIST=`echo argentum-*.tar.gz`
DISTNAME=`echo ${SOURCEDIST} | sed 's/.tar.*//'`
Expand All @@ -124,7 +124,7 @@ script: |
mkdir -p ${INSTALLPATH}
tar --strip-components=1 -xf ../$SOURCEDIST
CONFIG_SITE=${BASEPREFIX}/${i}/share/config.site ./configure --prefix=/ --disable-ccache --disable-maintainer-mode --disable-dependency-tracking ${CONFIGFLAGS}
CONFIG_SITE=${BASEPREFIX}/${i}/share/config.site ./configure --prefix=/ --disable-ccache --disable-tests --disable-maintainer-mode --disable-dependency-tracking ${CONFIGFLAGS}
make ${MAKEOPTS}
make install-strip DESTDIR=${INSTALLPATH}
Expand Down
8 changes: 3 additions & 5 deletions contrib/gitian-descriptors/gitian-win.yml
Expand Up @@ -27,7 +27,7 @@ remotes:
files: []
script: |
WRAP_DIR=$HOME/wrapped
HOSTS="i686-w64-mingw32 x86_64-w64-mingw32"
HOSTS="x86_64-w64-mingw32"
CONFIGFLAGS="--enable-reduce-exports --disable-bench --disable-tests --disable-gui-tests"
FAKETIME_HOST_PROGS="g++ ar ranlib nm windres strip objcopy"
FAKETIME_PROGS="date makensis zip"
Expand Down Expand Up @@ -117,7 +117,7 @@ script: |
# Create the release tarball using (arbitrarily) the first host
./autogen.sh
CONFIG_SITE=${BASEPREFIX}/`echo "${HOSTS}" | awk '{print $1;}'`/share/config.site ./configure --prefix=/
CONFIG_SITE=${BASEPREFIX}/`echo "${HOSTS}" | awk '{print $1;}'`/share/config.site ./configure --prefix=/ --disable-tests
make dist
SOURCEDIST=`echo argentum-*.tar.gz`
DISTNAME=`echo ${SOURCEDIST} | sed 's/.tar.*//'`
Expand All @@ -141,7 +141,7 @@ script: |
mkdir -p ${INSTALLPATH}
tar --strip-components=1 -xf ../$SOURCEDIST
CONFIG_SITE=${BASEPREFIX}/${i}/share/config.site ./configure --prefix=/ --disable-ccache --disable-maintainer-mode --disable-dependency-tracking ${CONFIGFLAGS} CFLAGS="${HOST_CFLAGS}" CXXFLAGS="${HOST_CXXFLAGS}"
CONFIG_SITE=${BASEPREFIX}/${i}/share/config.site ./configure --prefix=/ --disable-tests --disable-ccache --disable-maintainer-mode --disable-dependency-tracking ${CONFIGFLAGS} CFLAGS="${HOST_CFLAGS}" CXXFLAGS="${HOST_CXXFLAGS}"
make ${MAKEOPTS}
#make ${MAKEOPTS} -C src check-security
make deploy
Expand All @@ -163,6 +163,4 @@ script: |
rename 's/-setup\.exe$/-setup-unsigned.exe/' *-setup.exe
find . -name "*-setup-unsigned.exe" | sort | tar --no-recursion --mode='u+rw,go+r-w,a+X' --owner=0 --group=0 -c -T - | gzip -9n > ${OUTDIR}/${DISTNAME}-win-unsigned.tar.gz
mv ${OUTDIR}/${DISTNAME}-x86_64-*-debug.zip ${OUTDIR}/${DISTNAME}-win64-debug.zip
mv ${OUTDIR}/${DISTNAME}-i686-*-debug.zip ${OUTDIR}/${DISTNAME}-win32-debug.zip
mv ${OUTDIR}/${DISTNAME}-x86_64-*.zip ${OUTDIR}/${DISTNAME}-win64.zip
mv ${OUTDIR}/${DISTNAME}-i686-*.zip ${OUTDIR}/${DISTNAME}-win32.zip
8 changes: 6 additions & 2 deletions src/Makefile.am
Expand Up @@ -160,6 +160,8 @@ BITCOIN_CORE_H = \
wallet/wallet.h \
wallet/walletdb.h \
warnings.h \
crypto/argon2/ref.c \
crypto/argon2/opt.c \
zmq/zmqabstractnotifier.h \
zmq/zmqconfig.h\
zmq/zmqnotificationinterface.h \
Expand Down Expand Up @@ -296,14 +298,16 @@ crypto_libbitcoin_crypto_a_SOURCES = \
crypto/argon2/blake2.h \
crypto/argon2/blake2b.c \
crypto/argon2/blake2-impl.h \
crypto/argon2/blamka-round-opt.h \
crypto/argon2/blamka-round-ref.h \
crypto/argon2/core.c \
crypto/argon2/core.h \
crypto/argon2/encoding.c \
crypto/argon2/encoding.h \
crypto/argon2/thread.c \
crypto/argon2/thread.h \
crypto/argon2/blamka-round-ref.h \
crypto/argon2/blamka-round-opt.h \
crypto/argon2/opt.h \
crypto/argon2/ref.h \
crypto/lyra2/lyra2.c \
crypto/lyra2/lyra2.h \
crypto/lyra2/lyra2RE.c \
Expand Down
1 change: 0 additions & 1 deletion src/Makefile.test.include
Expand Up @@ -158,7 +158,6 @@ BITCOIN_TESTS =\
crypto/simd.c \
crypto/skein.c \
crypto/hashgroestl.h \
crypto/hashx11.h \
crypto/hashskein.h \
crypto/sph_bmw.h \
crypto/sph_cubehash.h \
Expand Down

0 comments on commit ef0edf8

Please sign in to comment.