Skip to content

Commit d3fe00d

Browse files
committed
build: Drop old hack which is unneeded now
This hack is described in #8188. The current implementation was introduced in #8315.
1 parent 1ba1496 commit d3fe00d

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

contrib/gitian-descriptors/gitian-linux.yml

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -81,45 +81,11 @@ script: |
8181
create_per-host_faketime_wrappers "2000-01-01 12:00:00"
8282
export PATH=${WRAP_DIR}:${PATH}
8383
84-
EXTRA_INCLUDES_BASE=$WRAP_DIR/extra_includes
85-
mkdir -p $EXTRA_INCLUDES_BASE
86-
87-
# x86 needs /usr/include/i386-linux-gnu/asm pointed to /usr/include/x86_64-linux-gnu/asm,
88-
# but we can't write there. Instead, create a link here and force it to be included in the
89-
# search paths by wrapping gcc/g++.
90-
91-
mkdir -p $EXTRA_INCLUDES_BASE/i686-pc-linux-gnu
92-
rm -f $WRAP_DIR/extra_includes/i686-pc-linux-gnu/asm
93-
ln -s /usr/include/x86_64-linux-gnu/asm $EXTRA_INCLUDES_BASE/i686-pc-linux-gnu/asm
94-
95-
for prog in gcc g++; do
96-
rm -f ${WRAP_DIR}/${prog}
97-
cat << EOF > ${WRAP_DIR}/${prog}
98-
#!/usr/bin/env bash
99-
REAL="$(which -a ${prog}-8 | grep -v ${WRAP_DIR}/${prog} | head -1)"
100-
for var in "\$@"
101-
do
102-
if [ "\$var" = "-m32" ]; then
103-
export C_INCLUDE_PATH="$EXTRA_INCLUDES_BASE/i686-pc-linux-gnu"
104-
export CPLUS_INCLUDE_PATH="$EXTRA_INCLUDES_BASE/i686-pc-linux-gnu"
105-
break
106-
fi
107-
done
108-
\$REAL \$@
109-
EOF
110-
chmod +x ${WRAP_DIR}/${prog}
111-
done
112-
11384
cd bitcoin
11485
BASEPREFIX="${PWD}/depends"
11586
# Build dependencies for each host
11687
for i in $HOSTS; do
117-
EXTRA_INCLUDES="$EXTRA_INCLUDES_BASE/$i"
118-
if [ -d "$EXTRA_INCLUDES" ]; then
119-
export HOST_ID_SALT="$EXTRA_INCLUDES"
120-
fi
12188
make ${MAKEOPTS} -C ${BASEPREFIX} HOST="${i}"
122-
unset HOST_ID_SALT
12389
done
12490
12591
# Faketime for binaries

0 commit comments

Comments
 (0)