mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
Merge #17409: build: Avoid hardcoded libfaketime dir in gitian
333362991c5219e6d9ede5fa54328bcbb0277cf2 doc: Explain $LIB in LD_PRELOAD in gitian descriptors (MarcoFalke) fab9850ef4a76e4f09278909a2865e5175661653 scripted-diff: Avoid hardcoded libfaketime dir in gitian (MarcoFalke) Pull request description: Without this gitian prints warnings for me: ``` ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored. ``` ``` $ ls /usr/lib/aarch64-linux-gnu/faketime/libfaketime.so.1 /usr/lib/aarch64-linux-gnu/faketime/libfaketime.so.1 ``` ACKs for top commit: laanwj: ACK 333362991c5219e6d9ede5fa54328bcbb0277cf2 Tree-SHA512: 3e7c4471b69c2ae38c29d0cc0db8b9eae0912085299d7f5ac67eeb4b6a2fdc7eb23d806eeeae0b0c2da22d6d1ba82513cab23652876b97aada9928b2c7d38e7e
This commit is contained in:
parent
56057a27e5
commit
b7f68eabe6
@ -5,7 +5,7 @@ distro: "ubuntu"
|
|||||||
suites:
|
suites:
|
||||||
- "bionic"
|
- "bionic"
|
||||||
architectures:
|
architectures:
|
||||||
- "amd64"
|
- "linux64"
|
||||||
packages:
|
packages:
|
||||||
- "curl"
|
- "curl"
|
||||||
- "g++-aarch64-linux-gnu"
|
- "g++-aarch64-linux-gnu"
|
||||||
@ -81,12 +81,13 @@ script: |
|
|||||||
# We include the GCC version in all wrappers so that ccache can detect compiler upgrades when hashing the wrappers
|
# We include the GCC version in all wrappers so that ccache can detect compiler upgrades when hashing the wrappers
|
||||||
GCCVERSION=`gcc --version | head -1`
|
GCCVERSION=`gcc --version | head -1`
|
||||||
|
|
||||||
|
# Use $LIB in LD_PRELOAD to avoid hardcoding the dir (See `man ld.so`)
|
||||||
function create_global_faketime_wrappers {
|
function create_global_faketime_wrappers {
|
||||||
for prog in ${FAKETIME_PROGS}; do
|
for prog in ${FAKETIME_PROGS}; do
|
||||||
echo '#!/usr/bin/env bash' > ${WRAP_DIR}/${prog}
|
echo '#!/usr/bin/env bash' > ${WRAP_DIR}/${prog}
|
||||||
echo "# GCCVERSION=${GCCVERSION}" >> ${WRAP_DIR}/${prog}
|
echo "# GCCVERSION=${GCCVERSION}" >> ${WRAP_DIR}/${prog}
|
||||||
echo "REAL=\`which -a ${prog} | grep -v ${WRAP_DIR}/${prog} | head -1\`" >> ${WRAP_DIR}/${prog}
|
echo "REAL=\`which -a ${prog} | grep -v ${WRAP_DIR}/${prog} | head -1\`" >> ${WRAP_DIR}/${prog}
|
||||||
echo 'export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1' >> ${WRAP_DIR}/${prog}
|
echo "export LD_PRELOAD='/usr/\$LIB/faketime/libfaketime.so.1'" >> ${WRAP_DIR}/${prog}
|
||||||
echo "export FAKETIME=\"$1\"" >> ${WRAP_DIR}/${prog}
|
echo "export FAKETIME=\"$1\"" >> ${WRAP_DIR}/${prog}
|
||||||
echo "\$REAL \$@" >> $WRAP_DIR/${prog}
|
echo "\$REAL \$@" >> $WRAP_DIR/${prog}
|
||||||
chmod +x ${WRAP_DIR}/${prog}
|
chmod +x ${WRAP_DIR}/${prog}
|
||||||
@ -102,7 +103,7 @@ script: |
|
|||||||
echo '#!/usr/bin/env bash' > ${WRAP_DIR}/${i}-${prog}
|
echo '#!/usr/bin/env bash' > ${WRAP_DIR}/${i}-${prog}
|
||||||
echo "# GCCVERSION=${GCCVERSION}" >> ${WRAP_DIR}/${i}-${prog}
|
echo "# GCCVERSION=${GCCVERSION}" >> ${WRAP_DIR}/${i}-${prog}
|
||||||
echo "REAL=\`which -a ${i}-${prog}-8 | grep -v ${WRAP_DIR}/${i}-${prog} | head -1\`" >> ${WRAP_DIR}/${i}-${prog}
|
echo "REAL=\`which -a ${i}-${prog}-8 | grep -v ${WRAP_DIR}/${i}-${prog} | head -1\`" >> ${WRAP_DIR}/${i}-${prog}
|
||||||
echo 'export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1' >> ${WRAP_DIR}/${i}-${prog}
|
echo "export LD_PRELOAD='/usr/\$LIB/faketime/libfaketime.so.1'" >> ${WRAP_DIR}/${i}-${prog}
|
||||||
echo "export FAKETIME=\"$1\"" >> ${WRAP_DIR}/${i}-${prog}
|
echo "export FAKETIME=\"$1\"" >> ${WRAP_DIR}/${i}-${prog}
|
||||||
echo "\$REAL \$@" >> $WRAP_DIR/${i}-${prog}
|
echo "\$REAL \$@" >> $WRAP_DIR/${i}-${prog}
|
||||||
chmod +x ${WRAP_DIR}/${i}-${prog}
|
chmod +x ${WRAP_DIR}/${i}-${prog}
|
||||||
|
@ -4,7 +4,7 @@ distro: "ubuntu"
|
|||||||
suites:
|
suites:
|
||||||
- "bionic"
|
- "bionic"
|
||||||
architectures:
|
architectures:
|
||||||
- "amd64"
|
- "linux64"
|
||||||
packages:
|
packages:
|
||||||
- "faketime"
|
- "faketime"
|
||||||
- "xorriso"
|
- "xorriso"
|
||||||
@ -25,7 +25,7 @@ script: |
|
|||||||
for prog in ${FAKETIME_PROGS}; do
|
for prog in ${FAKETIME_PROGS}; do
|
||||||
echo '#!/usr/bin/env bash' > ${WRAP_DIR}/${prog}
|
echo '#!/usr/bin/env bash' > ${WRAP_DIR}/${prog}
|
||||||
echo "REAL=\`which -a ${prog} | grep -v ${WRAP_DIR}/${prog} | head -1\`" >> ${WRAP_DIR}/${prog}
|
echo "REAL=\`which -a ${prog} | grep -v ${WRAP_DIR}/${prog} | head -1\`" >> ${WRAP_DIR}/${prog}
|
||||||
echo 'export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1' >> ${WRAP_DIR}/${prog}
|
echo "export LD_PRELOAD='/usr/\$LIB/faketime/libfaketime.so.1'" >> ${WRAP_DIR}/${prog}
|
||||||
echo "export FAKETIME=\"${REFERENCE_DATETIME}\"" >> ${WRAP_DIR}/${prog}
|
echo "export FAKETIME=\"${REFERENCE_DATETIME}\"" >> ${WRAP_DIR}/${prog}
|
||||||
echo "\$REAL \$@" >> $WRAP_DIR/${prog}
|
echo "\$REAL \$@" >> $WRAP_DIR/${prog}
|
||||||
chmod +x ${WRAP_DIR}/${prog}
|
chmod +x ${WRAP_DIR}/${prog}
|
||||||
|
@ -5,7 +5,7 @@ distro: "ubuntu"
|
|||||||
suites:
|
suites:
|
||||||
- "bionic"
|
- "bionic"
|
||||||
architectures:
|
architectures:
|
||||||
- "amd64"
|
- "linux64"
|
||||||
packages:
|
packages:
|
||||||
- "ca-certificates"
|
- "ca-certificates"
|
||||||
- "curl"
|
- "curl"
|
||||||
@ -72,11 +72,12 @@ script: |
|
|||||||
|
|
||||||
export ZERO_AR_DATE=1
|
export ZERO_AR_DATE=1
|
||||||
|
|
||||||
|
# Use $LIB in LD_PRELOAD to avoid hardcoding the dir (See `man ld.so`)
|
||||||
function create_global_faketime_wrappers {
|
function create_global_faketime_wrappers {
|
||||||
for prog in ${FAKETIME_PROGS}; do
|
for prog in ${FAKETIME_PROGS}; do
|
||||||
echo '#!/usr/bin/env bash' > ${WRAP_DIR}/${prog}
|
echo '#!/usr/bin/env bash' > ${WRAP_DIR}/${prog}
|
||||||
echo "REAL=\`which -a ${prog} | grep -v ${WRAP_DIR}/${prog} | head -1\`" >> ${WRAP_DIR}/${prog}
|
echo "REAL=\`which -a ${prog} | grep -v ${WRAP_DIR}/${prog} | head -1\`" >> ${WRAP_DIR}/${prog}
|
||||||
echo 'export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1' >> ${WRAP_DIR}/${prog}
|
echo "export LD_PRELOAD='/usr/\$LIB/faketime/libfaketime.so.1'" >> ${WRAP_DIR}/${prog}
|
||||||
echo "export FAKETIME=\"$1\"" >> ${WRAP_DIR}/${prog}
|
echo "export FAKETIME=\"$1\"" >> ${WRAP_DIR}/${prog}
|
||||||
echo "\$REAL \$@" >> $WRAP_DIR/${prog}
|
echo "\$REAL \$@" >> $WRAP_DIR/${prog}
|
||||||
chmod +x ${WRAP_DIR}/${prog}
|
chmod +x ${WRAP_DIR}/${prog}
|
||||||
@ -89,7 +90,7 @@ script: |
|
|||||||
for prog in ${FAKETIME_HOST_PROGS}; do
|
for prog in ${FAKETIME_HOST_PROGS}; do
|
||||||
echo '#!/usr/bin/env bash' > ${WRAP_DIR}/${i}-${prog}
|
echo '#!/usr/bin/env bash' > ${WRAP_DIR}/${i}-${prog}
|
||||||
echo "REAL=\`which -a ${i}-${prog} | grep -v ${WRAP_DIR}/${i}-${prog} | head -1\`" >> ${WRAP_DIR}/${i}-${prog}
|
echo "REAL=\`which -a ${i}-${prog} | grep -v ${WRAP_DIR}/${i}-${prog} | head -1\`" >> ${WRAP_DIR}/${i}-${prog}
|
||||||
echo 'export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1' >> ${WRAP_DIR}/${i}-${prog}
|
echo "export LD_PRELOAD='/usr/\$LIB/faketime/libfaketime.so.1'" >> ${WRAP_DIR}/${i}-${prog}
|
||||||
echo "export FAKETIME=\"$1\"" >> ${WRAP_DIR}/${i}-${prog}
|
echo "export FAKETIME=\"$1\"" >> ${WRAP_DIR}/${i}-${prog}
|
||||||
echo "\$REAL \$@" >> $WRAP_DIR/${i}-${prog}
|
echo "\$REAL \$@" >> $WRAP_DIR/${i}-${prog}
|
||||||
chmod +x ${WRAP_DIR}/${i}-${prog}
|
chmod +x ${WRAP_DIR}/${i}-${prog}
|
||||||
|
@ -4,7 +4,7 @@ distro: "ubuntu"
|
|||||||
suites:
|
suites:
|
||||||
- "bionic"
|
- "bionic"
|
||||||
architectures:
|
architectures:
|
||||||
- "amd64"
|
- "linux64"
|
||||||
packages:
|
packages:
|
||||||
- "libssl-dev" # do not merge bitcoin#13782, see https://github.com/dashpay/dash/pull/3894
|
- "libssl-dev" # do not merge bitcoin#13782, see https://github.com/dashpay/dash/pull/3894
|
||||||
- "autoconf"
|
- "autoconf"
|
||||||
|
@ -5,7 +5,7 @@ distro: "ubuntu"
|
|||||||
suites:
|
suites:
|
||||||
- "bionic"
|
- "bionic"
|
||||||
architectures:
|
architectures:
|
||||||
- "amd64"
|
- "linux64"
|
||||||
packages:
|
packages:
|
||||||
- "curl"
|
- "curl"
|
||||||
- "g++"
|
- "g++"
|
||||||
@ -69,12 +69,13 @@ script: |
|
|||||||
# We include the GCC version in all wrappers so that ccache can detect compiler upgrades when hashing the wrappers
|
# We include the GCC version in all wrappers so that ccache can detect compiler upgrades when hashing the wrappers
|
||||||
GCCVERSION=`gcc --version | head -1`
|
GCCVERSION=`gcc --version | head -1`
|
||||||
|
|
||||||
|
# Use $LIB in LD_PRELOAD to avoid hardcoding the dir (See `man ld.so`)
|
||||||
function create_global_faketime_wrappers {
|
function create_global_faketime_wrappers {
|
||||||
for prog in ${FAKETIME_PROGS}; do
|
for prog in ${FAKETIME_PROGS}; do
|
||||||
echo '#!/usr/bin/env bash' > ${WRAP_DIR}/${prog}
|
echo '#!/usr/bin/env bash' > ${WRAP_DIR}/${prog}
|
||||||
echo "# GCCVERSION=${GCCVERSION}" >> ${WRAP_DIR}/${prog}
|
echo "# GCCVERSION=${GCCVERSION}" >> ${WRAP_DIR}/${prog}
|
||||||
echo "REAL=\`which -a ${prog} | grep -v ${WRAP_DIR}/${prog} | head -1\`" >> ${WRAP_DIR}/${prog}
|
echo "REAL=\`which -a ${prog} | grep -v ${WRAP_DIR}/${prog} | head -1\`" >> ${WRAP_DIR}/${prog}
|
||||||
echo 'export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1' >> ${WRAP_DIR}/${prog}
|
echo "export LD_PRELOAD='/usr/\$LIB/faketime/libfaketime.so.1'" >> ${WRAP_DIR}/${prog}
|
||||||
echo "export FAKETIME=\"$1\"" >> ${WRAP_DIR}/${prog}
|
echo "export FAKETIME=\"$1\"" >> ${WRAP_DIR}/${prog}
|
||||||
echo "\$REAL \$@" >> $WRAP_DIR/${prog}
|
echo "\$REAL \$@" >> $WRAP_DIR/${prog}
|
||||||
chmod +x ${WRAP_DIR}/${prog}
|
chmod +x ${WRAP_DIR}/${prog}
|
||||||
@ -88,7 +89,7 @@ script: |
|
|||||||
echo '#!/usr/bin/env bash' > ${WRAP_DIR}/${i}-${prog}
|
echo '#!/usr/bin/env bash' > ${WRAP_DIR}/${i}-${prog}
|
||||||
echo "# GCCVERSION=${GCCVERSION}" >> ${WRAP_DIR}/${i}-${prog}
|
echo "# GCCVERSION=${GCCVERSION}" >> ${WRAP_DIR}/${i}-${prog}
|
||||||
echo "REAL=\`which -a ${i}-${prog} | grep -v ${WRAP_DIR}/${i}-${prog} | head -1\`" >> ${WRAP_DIR}/${i}-${prog}
|
echo "REAL=\`which -a ${i}-${prog} | grep -v ${WRAP_DIR}/${i}-${prog} | head -1\`" >> ${WRAP_DIR}/${i}-${prog}
|
||||||
echo 'export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1' >> ${WRAP_DIR}/${i}-${prog}
|
echo "export LD_PRELOAD='/usr/\$LIB/faketime/libfaketime.so.1'" >> ${WRAP_DIR}/${i}-${prog}
|
||||||
echo "export FAKETIME=\"$1\"" >> ${WRAP_DIR}/${i}-${prog}
|
echo "export FAKETIME=\"$1\"" >> ${WRAP_DIR}/${i}-${prog}
|
||||||
echo "\$REAL \$@" >> $WRAP_DIR/${i}-${prog}
|
echo "\$REAL \$@" >> $WRAP_DIR/${i}-${prog}
|
||||||
chmod +x ${WRAP_DIR}/${i}-${prog}
|
chmod +x ${WRAP_DIR}/${i}-${prog}
|
||||||
@ -107,7 +108,7 @@ script: |
|
|||||||
echo "REAL=\`which -a ${i}-${prog}-posix | grep -v ${WRAP_DIR}/${i}-${prog} | head -1\`" >> ${WRAP_DIR}/${i}-${prog}
|
echo "REAL=\`which -a ${i}-${prog}-posix | grep -v ${WRAP_DIR}/${i}-${prog} | head -1\`" >> ${WRAP_DIR}/${i}-${prog}
|
||||||
echo '# Add the gcc version to the wrapper so that ccache takes this into account (we use CCACHE_COMPILERCHECK=content)' >> ${WRAP_DIR}/${i}-${prog}
|
echo '# Add the gcc version to the wrapper so that ccache takes this into account (we use CCACHE_COMPILERCHECK=content)' >> ${WRAP_DIR}/${i}-${prog}
|
||||||
echo "# `${prog} --version | head -1`" >> ${WRAP_DIR}/${i}-${prog}
|
echo "# `${prog} --version | head -1`" >> ${WRAP_DIR}/${i}-${prog}
|
||||||
echo 'export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1' >> ${WRAP_DIR}/${i}-${prog}
|
echo "export LD_PRELOAD='/usr/\$LIB/faketime/libfaketime.so.1'" >> ${WRAP_DIR}/${i}-${prog}
|
||||||
echo "export FAKETIME=\"$1\"" >> ${WRAP_DIR}/${i}-${prog}
|
echo "export FAKETIME=\"$1\"" >> ${WRAP_DIR}/${i}-${prog}
|
||||||
echo "export COMPILER_PATH=${WRAP_DIR}/${i}" >> ${WRAP_DIR}/${i}-${prog}
|
echo "export COMPILER_PATH=${WRAP_DIR}/${i}" >> ${WRAP_DIR}/${i}-${prog}
|
||||||
echo "\$REAL \$@" >> $WRAP_DIR/${i}-${prog}
|
echo "\$REAL \$@" >> $WRAP_DIR/${i}-${prog}
|
||||||
|
Loading…
Reference in New Issue
Block a user