Changeset View
Changeset View
Standalone View
Standalone View
contrib/gitian-descriptors/gitian-linux.yml
Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | script: | | ||||
} | } | ||||
# Faketime for depends so intermediate results are comparable | # Faketime for depends so intermediate results are comparable | ||||
export PATH_orig=${PATH} | export PATH_orig=${PATH} | ||||
create_global_faketime_wrappers "2000-01-01 12:00:00" | create_global_faketime_wrappers "2000-01-01 12:00:00" | ||||
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 | |||||
REAL="`which -a ${prog} | 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} | |||||
done | |||||
cd bitcoin | cd bitcoin | ||||
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 | ||||
export PATH=${PATH_orig} | export PATH=${PATH_orig} | ||||
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} | ||||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |