Package: live-build
Version: 1:20161216
Severity: normal
Tags: patch
--- Please enter the report below this line. ---
The script functions/chroot.sh in live-build cleans the environment
before entering the chroot and so also removes LD_PRELOAD from the
environment. This prevents the use of eatmydata to speed up the build
process.
This can either be fixed by giving a value for LD_PRELOAD in
config/environment.chroot or by changing chroot.sh to pass LD_PRELOAD
along. I suggest doing the latter since this is a quite common request.
Patch is attached.
--- chroot.sh.orig 2017-02-09 08:24:52.995385684 +0100
+++ chroot.sh 2017-02-09 08:25:48.623280273 +0100
@@ -26,7 +26,7 @@
fi
done
- ${_LINUX32} chroot "${CHROOT}" /usr/bin/env -i HOME="/root"
PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin"
TERM="${TERM}" DEBIAN_FRONTEND="${LB_DEBCONF_FRONTEND}"
DEBIAN_PRIORITY="${LB_DEBCONF_PRIORITY}"
DEBCONF_NONINTERACTIVE_SEEN="true" DEBCONF_NOWARNINGS="true" ${ENV}
${COMMANDS}
+ ${_LINUX32} chroot "${CHROOT}" /usr/bin/env -i
LD_PRELOAD=${LD_PRELOAD} HOME="/root"
PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin"
TERM="${TERM}" DEBIAN_FRONTEND="${LB_DEBCONF_FRONTEND}"
DEBIAN_PRIORITY="${LB_DEBCONF_PRIORITY}"
DEBCONF_NONINTERACTIVE_SEEN="true" DEBCONF_NOWARNINGS="true" ${ENV}
${COMMANDS}
return "${?}"
}
--- System information. ---
Architecture: amd64
Kernel: Linux 4.8.0-0.bpo.2-amd64
Debian Release: 8.7
500 stable-updates ftp.de.debian.org
500 stable security.debian.org
500 stable ftp.gruen.hm.mlpd.de
500 stable ftp.de.debian.org
500 jessie-local ftp.gruen.hm.mlpd.de
200 jessie-backports mozilla.debian.net
200 jessie-backports ftp.de.debian.org
--- Package information. ---
Depends (Version) | Installed
==========================-+-===========
debootstrap | 1.0.86~bpo8+1
Recommends (Version) | Installed
===============================-+-===========
apt-utils | 1.0.9.8.4
cpio | 2.11+dfsg-4.1+deb8u1
live-boot-doc | 1:20160511~bpo8+1
live-config-doc | 4.0.4-1
live-manual-html | 1:4.0.1-1
OR live-manual |
wget | 1.16-1+deb8u1
Suggests (Version) | Installed
=============================-+-===========
debian-keyring | 2015.04.10
gpgv | 1.4.18-7+deb8u3