Changeset View
Changeset View
Standalone View
Standalone View
contrib/gitian-descriptors/gitian-linux.yml
--- | --- | ||||
name: "bitcoin-linux-0.15" | name: "bitcoin-abc-0.15-linux" | ||||
enable_cache: true | enable_cache: true | ||||
suites: | suites: | ||||
- "trusty" | - "trusty" | ||||
architectures: | architectures: | ||||
- "amd64" | - "amd64" | ||||
packages: | packages: | ||||
- "curl" | - "curl" | ||||
- "g++-aarch64-linux-gnu" | - "g++-aarch64-linux-gnu" | ||||
Show All 12 Lines | |||||
- "autoconf" | - "autoconf" | ||||
- "libtool" | - "libtool" | ||||
- "automake" | - "automake" | ||||
- "faketime" | - "faketime" | ||||
- "bsdmainutils" | - "bsdmainutils" | ||||
- "ca-certificates" | - "ca-certificates" | ||||
- "python" | - "python" | ||||
remotes: | remotes: | ||||
- "url": "https://github.com/bitcoin/bitcoin.git" | - "url": "https://github.com/Bitcoin-ABC/bitcoin-abc.git" | ||||
"dir": "bitcoin" | "dir": "bitcoin" | ||||
files: [] | files: [] | ||||
script: | | script: | | ||||
WRAP_DIR=$HOME/wrapped | WRAP_DIR=$HOME/wrapped | ||||
HOSTS="i686-pc-linux-gnu x86_64-linux-gnu arm-linux-gnueabihf aarch64-linux-gnu" | HOSTS="i686-pc-linux-gnu x86_64-linux-gnu arm-linux-gnueabihf aarch64-linux-gnu" | ||||
CONFIGFLAGS="--enable-glibc-back-compat --enable-reduce-exports --disable-bench --disable-gui-tests" | CONFIGFLAGS="--enable-glibc-back-compat --enable-reduce-exports --disable-bench --disable-gui-tests" | ||||
FAKETIME_HOST_PROGS="" | FAKETIME_HOST_PROGS="" | ||||
▲ Show 20 Lines • Show All 90 Lines • ▼ Show 20 Lines | script: | | ||||
create_global_faketime_wrappers "${REFERENCE_DATETIME}" | create_global_faketime_wrappers "${REFERENCE_DATETIME}" | ||||
create_per-host_faketime_wrappers "${REFERENCE_DATETIME}" | create_per-host_faketime_wrappers "${REFERENCE_DATETIME}" | ||||
export PATH=${WRAP_DIR}:${PATH} | export PATH=${WRAP_DIR}:${PATH} | ||||
# Create the release tarball using (arbitrarily) the first host | # Create the release tarball using (arbitrarily) the first host | ||||
./autogen.sh | ./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=/ | ||||
make dist | make dist | ||||
SOURCEDIST=`echo bitcoin-*.tar.gz` | SOURCEDIST=`echo bitcoin-abc-*.tar.gz` | ||||
DISTNAME=`echo ${SOURCEDIST} | sed 's/.tar.*//'` | DISTNAME=`echo ${SOURCEDIST} | sed 's/.tar.*//'` | ||||
# Correct tar file order | # Correct tar file order | ||||
mkdir -p temp | mkdir -p temp | ||||
pushd temp | pushd temp | ||||
tar xf ../$SOURCEDIST | tar xf ../$SOURCEDIST | ||||
find bitcoin-* | sort | tar --no-recursion --mode='u+rw,go+r-w,a+X' --owner=0 --group=0 -c -T - | gzip -9n > ../$SOURCEDIST | find bitcoin-abc-* | sort | tar --no-recursion --mode='u+rw,go+r-w,a+X' --owner=0 --group=0 -c -T - | gzip -9n > ../$SOURCEDIST | ||||
popd | popd | ||||
ORIGPATH="$PATH" | ORIGPATH="$PATH" | ||||
# Extract the release tarball into a dir for each host and build | # Extract the release tarball into a dir for each host and build | ||||
for i in ${HOSTS}; do | for i in ${HOSTS}; do | ||||
export PATH=${BASEPREFIX}/${i}/native/bin:${ORIGPATH} | export PATH=${BASEPREFIX}/${i}/native/bin:${ORIGPATH} | ||||
mkdir -p distsrc-${i} | mkdir -p distsrc-${i} | ||||
cd distsrc-${i} | cd distsrc-${i} | ||||
Show All 32 Lines |