mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
Merge #19622: build: Drop ancient hack in gitian-linux descriptor
33a84e8f405ed6dd8885419cef305b4e6c7a428a build: Update and sort package list in gitian-linux.yml (Hennadii Stepanov) 95051682bedc2ef1076af5ede5bd56ca243279e3 build: Drop old hack which is unneeded now (Hennadii Stepanov) Pull request description: The hack was aimed to fix an issue in Ubuntu Trusty 14.04 (see #8188). The current hack implementation was added in #8315. On master (8db23349fe9b512e6801d59d17052c5a7a1c64df) this hack is effectively noop, and it is no longer needed. I see this PR as a step to removing `libfaketime` from gitian builds. ACKs for top commit: dongcarl: tACK 33a84e8f405e laanwj: Code review ACK 33a84e8f405ed6dd8885419cef305b4e6c7a428a Tree-SHA512: 90036c555a500649ccc3d108bf11f09a9cfd2c92c0b598f7e0c0df63a713ae7abaf78f350b68c025470619c967223f45f6a235ad37a6ce1d1a0341ed34963ba0
This commit is contained in:
parent
c0572028e3
commit
2899ea1d89
@ -7,33 +7,31 @@ suites:
|
|||||||
architectures:
|
architectures:
|
||||||
- "amd64"
|
- "amd64"
|
||||||
packages:
|
packages:
|
||||||
- "curl"
|
# Common dependencies.
|
||||||
- "g++-aarch64-linux-gnu"
|
|
||||||
- "g++-8-aarch64-linux-gnu"
|
|
||||||
- "gcc-8-aarch64-linux-gnu"
|
|
||||||
- "binutils-aarch64-linux-gnu"
|
|
||||||
- "g++-arm-linux-gnueabihf"
|
|
||||||
- "g++-8-arm-linux-gnueabihf"
|
|
||||||
- "gcc-8-arm-linux-gnueabihf"
|
|
||||||
- "binutils-arm-linux-gnueabihf"
|
|
||||||
- "g++-riscv64-linux-gnu"
|
|
||||||
- "g++-8-riscv64-linux-gnu"
|
|
||||||
- "gcc-8-riscv64-linux-gnu"
|
|
||||||
- "binutils-riscv64-linux-gnu"
|
|
||||||
- "g++-8-multilib"
|
|
||||||
- "gcc-8-multilib"
|
|
||||||
- "binutils-gold"
|
|
||||||
- "git"
|
|
||||||
- "pkg-config"
|
|
||||||
- "autoconf"
|
- "autoconf"
|
||||||
- "libtool"
|
|
||||||
- "automake"
|
- "automake"
|
||||||
- "faketime"
|
- "binutils"
|
||||||
- "bsdmainutils"
|
- "bsdmainutils"
|
||||||
- "ca-certificates"
|
- "ca-certificates"
|
||||||
|
- "curl"
|
||||||
|
- "faketime"
|
||||||
|
- "git"
|
||||||
|
- "libtool"
|
||||||
|
- "patch"
|
||||||
|
- "pkg-config"
|
||||||
- "python3"
|
- "python3"
|
||||||
- "libxkbcommon0"
|
- "libxkbcommon0"
|
||||||
- "ccache"
|
- "ccache"
|
||||||
|
# Cross compilation HOSTS:
|
||||||
|
# - arm-linux-gnueabihf
|
||||||
|
- "binutils-arm-linux-gnueabihf"
|
||||||
|
- "g++-8-arm-linux-gnueabihf"
|
||||||
|
# - aarch64-linux-gnu
|
||||||
|
- "binutils-aarch64-linux-gnu"
|
||||||
|
- "g++-8-aarch64-linux-gnu"
|
||||||
|
# - riscv64-linux-gnu
|
||||||
|
- "binutils-riscv64-linux-gnu"
|
||||||
|
- "g++-8-riscv64-linux-gnu"
|
||||||
remotes:
|
remotes:
|
||||||
- "url": "https://github.com/dashpay/dash.git"
|
- "url": "https://github.com/dashpay/dash.git"
|
||||||
"dir": "dash"
|
"dir": "dash"
|
||||||
@ -119,47 +117,11 @@ script: |
|
|||||||
create_per-host_faketime_wrappers "2000-01-01 12:00:00"
|
create_per-host_faketime_wrappers "2000-01-01 12:00:00"
|
||||||
export PATH=${WRAP_DIR}:${PATH}
|
export PATH=${WRAP_DIR}:${PATH}
|
||||||
|
|
||||||
EXTRA_INCLUDES_BASE=$WRAP_DIR/extra_includes
|
|
||||||
mkdir -p $EXTRA_INCLUDES_BASE
|
|
||||||
|
|
||||||
# x86 needs /usr/include/i386-linux-gnu/asm pointed to /usr/include/x86_64-linux-gnu/asm,
|
|
||||||
# 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
|
|
||||||
|
|
||||||
for prog in gcc g++; do
|
|
||||||
rm -f ${WRAP_DIR}/${prog}
|
|
||||||
cat << EOF > ${WRAP_DIR}/${prog}
|
|
||||||
#!/usr/bin/env bash
|
|
||||||
# GCCVERSION=${GCCVERSION}
|
|
||||||
REAL="$(which -a ${prog}-8 | grep -v ${WRAP_DIR}/${prog} | head -1)"
|
|
||||||
for var in "\$@"
|
|
||||||
do
|
|
||||||
if [ "\$var" = "-m32" ]; then
|
|
||||||
export C_INCLUDE_PATH="$EXTRA_INCLUDES_BASE/i686-pc-linux-gnu"
|
|
||||||
export CPLUS_INCLUDE_PATH="$EXTRA_INCLUDES_BASE/i686-pc-linux-gnu"
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
\$REAL \$@
|
|
||||||
EOF
|
|
||||||
chmod +x ${WRAP_DIR}/${prog}
|
|
||||||
touch -d "${REFERENCE_DATETIME}" ${WRAP_DIR}/${prog}
|
|
||||||
done
|
|
||||||
|
|
||||||
cd dash
|
cd dash
|
||||||
BASEPREFIX="${PWD}/depends"
|
BASEPREFIX="${PWD}/depends"
|
||||||
# Build dependencies for each host
|
# Build dependencies for each host
|
||||||
for i in $HOSTS; do
|
for i in $HOSTS; do
|
||||||
EXTRA_INCLUDES="$EXTRA_INCLUDES_BASE/$i"
|
|
||||||
if [ -d "$EXTRA_INCLUDES" ]; then
|
|
||||||
export HOST_ID_SALT="$EXTRA_INCLUDES"
|
|
||||||
fi
|
|
||||||
make ${MAKEOPTS} -C ${BASEPREFIX} HOST="${i}"
|
make ${MAKEOPTS} -C ${BASEPREFIX} HOST="${i}"
|
||||||
unset HOST_ID_SALT
|
|
||||||
done
|
done
|
||||||
|
|
||||||
# Faketime for binaries
|
# Faketime for binaries
|
||||||
|
Loading…
Reference in New Issue
Block a user