Skip to content

Commit f306384

Browse files
committed
Merge #19622: build: Drop ancient hack in gitian-linux descriptor
33a84e8 build: Update and sort package list in gitian-linux.yml (Hennadii Stepanov) 9505168 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 (8db2334) 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 33a84e8 laanwj: Code review ACK 33a84e8 Tree-SHA512: 90036c555a500649ccc3d108bf11f09a9cfd2c92c0b598f7e0c0df63a713ae7abaf78f350b68c025470619c967223f45f6a235ad37a6ce1d1a0341ed34963ba0
2 parents be11f94 + 33a84e8 commit f306384

File tree

1 file changed

+18
-54
lines changed

1 file changed

+18
-54
lines changed

contrib/gitian-descriptors/gitian-linux.yml

Lines changed: 18 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,29 @@ suites:
77
architectures:
88
- "amd64"
99
packages:
10-
- "curl"
11-
- "g++-aarch64-linux-gnu"
12-
- "g++-8-aarch64-linux-gnu"
13-
- "gcc-8-aarch64-linux-gnu"
14-
- "binutils-aarch64-linux-gnu"
15-
- "g++-arm-linux-gnueabihf"
16-
- "g++-8-arm-linux-gnueabihf"
17-
- "gcc-8-arm-linux-gnueabihf"
18-
- "binutils-arm-linux-gnueabihf"
19-
- "g++-riscv64-linux-gnu"
20-
- "g++-8-riscv64-linux-gnu"
21-
- "gcc-8-riscv64-linux-gnu"
22-
- "binutils-riscv64-linux-gnu"
23-
- "g++-8-multilib"
24-
- "gcc-8-multilib"
25-
- "binutils-gold"
26-
- "git"
27-
- "pkg-config"
10+
# Common dependencies.
2811
- "autoconf"
29-
- "libtool"
3012
- "automake"
31-
- "faketime"
13+
- "binutils"
3214
- "bsdmainutils"
3315
- "ca-certificates"
16+
- "curl"
17+
- "faketime"
18+
- "git"
19+
- "libtool"
20+
- "patch"
21+
- "pkg-config"
3422
- "python3"
23+
# Cross compilation HOSTS:
24+
# - arm-linux-gnueabihf
25+
- "binutils-arm-linux-gnueabihf"
26+
- "g++-8-arm-linux-gnueabihf"
27+
# - aarch64-linux-gnu
28+
- "binutils-aarch64-linux-gnu"
29+
- "g++-8-aarch64-linux-gnu"
30+
# - riscv64-linux-gnu
31+
- "binutils-riscv64-linux-gnu"
32+
- "g++-8-riscv64-linux-gnu"
3533
remotes:
3634
- "url": "https://github.com/bitcoin/bitcoin.git"
3735
"dir": "bitcoin"
@@ -93,45 +91,11 @@ script: |
9391
create_per-host_faketime_wrappers "2000-01-01 12:00:00"
9492
export PATH=${WRAP_DIR}:${PATH}
9593
96-
EXTRA_INCLUDES_BASE=$WRAP_DIR/extra_includes
97-
mkdir -p $EXTRA_INCLUDES_BASE
98-
99-
# x86 needs /usr/include/i386-linux-gnu/asm pointed to /usr/include/x86_64-linux-gnu/asm,
100-
# but we can't write there. Instead, create a link here and force it to be included in the
101-
# search paths by wrapping gcc/g++.
102-
103-
mkdir -p $EXTRA_INCLUDES_BASE/i686-pc-linux-gnu
104-
rm -f $WRAP_DIR/extra_includes/i686-pc-linux-gnu/asm
105-
ln -s /usr/include/x86_64-linux-gnu/asm $EXTRA_INCLUDES_BASE/i686-pc-linux-gnu/asm
106-
107-
for prog in gcc g++; do
108-
rm -f ${WRAP_DIR}/${prog}
109-
cat << EOF > ${WRAP_DIR}/${prog}
110-
#!/usr/bin/env bash
111-
REAL="$(which -a ${prog}-8 | grep -v ${WRAP_DIR}/${prog} | head -1)"
112-
for var in "\$@"
113-
do
114-
if [ "\$var" = "-m32" ]; then
115-
export C_INCLUDE_PATH="$EXTRA_INCLUDES_BASE/i686-pc-linux-gnu"
116-
export CPLUS_INCLUDE_PATH="$EXTRA_INCLUDES_BASE/i686-pc-linux-gnu"
117-
break
118-
fi
119-
done
120-
\$REAL \$@
121-
EOF
122-
chmod +x ${WRAP_DIR}/${prog}
123-
done
124-
12594
cd bitcoin
12695
BASEPREFIX="${PWD}/depends"
12796
# Build dependencies for each host
12897
for i in $HOSTS; do
129-
EXTRA_INCLUDES="$EXTRA_INCLUDES_BASE/$i"
130-
if [ -d "$EXTRA_INCLUDES" ]; then
131-
export HOST_ID_SALT="$EXTRA_INCLUDES"
132-
fi
13398
make ${MAKEOPTS} -C ${BASEPREFIX} HOST="${i}"
134-
unset HOST_ID_SALT
13599
done
136100
137101
# Faketime for binaries

0 commit comments

Comments
 (0)