don't set /usr/bin/env in FAKECHROOT_CMD_SUBST

This commit is contained in:
Johannes 'josch' Schauer 2018-10-22 11:32:59 +02:00
parent 7a25de31db
commit 3c48bce2b2
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -867,9 +867,10 @@ sub setup {
print_progress "done"; print_progress "done";
if ($options->{mode} eq 'fakechroot') { if ($options->{mode} eq 'fakechroot') {
# FIXME: if trouble arises, look into /etc/fakechroot/*.env for
# more interesting variables to set
$ENV{FAKECHROOT_CMD_SUBST} = join ':', ( $ENV{FAKECHROOT_CMD_SUBST} = join ':', (
'/bin/mount=/bin/true', '/bin/mount=/bin/true',
'/usr/bin/env=/usr/bin/env.fakechroot',
'/usr/bin/ldd=/usr/bin/ldd.fakechroot', '/usr/bin/ldd=/usr/bin/ldd.fakechroot',
'/usr/bin/mkfifo=/bin/true', '/usr/bin/mkfifo=/bin/true',
'/usr/sbin/ldconfig=/bin/true', '/usr/sbin/ldconfig=/bin/true',