|
|
|
@ -140,18 +140,12 @@ script: |
|
|
|
|
|
create_per-host_faketime_wrappers "${REFERENCE_DATETIME}"
|
|
|
|
|
export PATH=${WRAP_DIR}:${PATH}
|
|
|
|
|
|
|
|
|
|
# Create the release tarball using (arbitrarily) the first host
|
|
|
|
|
./autogen.sh
|
|
|
|
|
CONFIG_SITE=${BASEPREFIX}/$(echo "${HOSTS}" | awk '{print $1;}')/share/config.site ./configure --prefix=/
|
|
|
|
|
make dist
|
|
|
|
|
SOURCEDIST=$(echo bitcoin-*.tar.gz)
|
|
|
|
|
DISTNAME=${SOURCEDIST/%.tar.gz}
|
|
|
|
|
|
|
|
|
|
# Workaround for tarball not building with the bare tag version (prep)
|
|
|
|
|
make -C src obj/build.h
|
|
|
|
|
# Create the git archive, and define DISTNAME and GIT_ARCHIVE variables.
|
|
|
|
|
# shellcheck source=contrib/gitian-descriptors/make_git_archive
|
|
|
|
|
source contrib/gitian-descriptors/make_git_archive
|
|
|
|
|
|
|
|
|
|
ORIGPATH="$PATH"
|
|
|
|
|
# Extract the release tarball into a dir for each host and build
|
|
|
|
|
# Extract the git archive into a dir for each host and build
|
|
|
|
|
for i in ${HOSTS}; do
|
|
|
|
|
export PATH=${BASEPREFIX}/${i}/native/bin:${ORIGPATH}
|
|
|
|
|
if [ "${i}" = "riscv64-linux-gnu" ]; then
|
|
|
|
@ -165,13 +159,9 @@ script: |
|
|
|
|
|
cd distsrc-${i}
|
|
|
|
|
INSTALLPATH="${PWD}/installed/${DISTNAME}"
|
|
|
|
|
mkdir -p ${INSTALLPATH}
|
|
|
|
|
tar --strip-components=1 -xf ../$SOURCEDIST
|
|
|
|
|
|
|
|
|
|
# Workaround for tarball not building with the bare tag version
|
|
|
|
|
echo '#!/bin/true' >share/genbuild.sh
|
|
|
|
|
mkdir src/obj
|
|
|
|
|
cp ../src/obj/build.h src/obj/
|
|
|
|
|
tar -xf $GIT_ARCHIVE
|
|
|
|
|
|
|
|
|
|
./autogen.sh
|
|
|
|
|
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}"
|
|
|
|
|
make ${MAKEOPTS}
|
|
|
|
|
make ${MAKEOPTS} -C src check-security
|
|
|
|
@ -183,12 +173,9 @@ script: |
|
|
|
|
|
rm -rf ${DISTNAME}/lib/pkgconfig
|
|
|
|
|
find ${DISTNAME}/bin -type f -executable -print0 | xargs -0 -n1 -I{} ../contrib/devtools/split-debug.sh {} {} {}.dbg
|
|
|
|
|
find ${DISTNAME}/lib -type f -print0 | xargs -0 -n1 -I{} ../contrib/devtools/split-debug.sh {} {} {}.dbg
|
|
|
|
|
cp ../../README.md ${DISTNAME}/
|
|
|
|
|
cp ../README.md ${DISTNAME}/
|
|
|
|
|
find ${DISTNAME} -not -name "*.dbg" | sort | tar --mtime="$REFERENCE_DATETIME" --no-recursion --mode='u+rw,go+r-w,a+X' --owner=0 --group=0 -c -T - | gzip -9n > ${OUTDIR}/${DISTNAME}-${i}.tar.gz
|
|
|
|
|
find ${DISTNAME} -name "*.dbg" | sort | tar --mtime="$REFERENCE_DATETIME" --no-recursion --mode='u+rw,go+r-w,a+X' --owner=0 --group=0 -c -T - | gzip -9n > ${OUTDIR}/${DISTNAME}-${i}-debug.tar.gz
|
|
|
|
|
cd ../../
|
|
|
|
|
rm -rf distsrc-${i}
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
mkdir -p ${OUTDIR}/src
|
|
|
|
|
git archive --output=${OUTDIR}/src/${DISTNAME}.tar.gz HEAD
|
|
|
|
|