xbps-src: append /usr/local/bin to PATH in all chroot ops.
This commit is contained in:
parent
42d3f71c16
commit
0115bd2507
1 changed files with 3 additions and 1 deletions
|
@ -305,7 +305,8 @@ xbps_chroot_handler()
|
||||||
|
|
||||||
# Update ld.so(8) cache
|
# Update ld.so(8) cache
|
||||||
msg_normal "Updating ld.so(8) cache...\n"
|
msg_normal "Updating ld.so(8) cache...\n"
|
||||||
${chroot_cmd} $XBPS_MASTERDIR sh -c "ldconfig" || return $?
|
env PATH=$PATH:/usr/local/bin \
|
||||||
|
${chroot_cmd} $XBPS_MASTERDIR sh -c "ldconfig" || return $?
|
||||||
|
|
||||||
if [ "$action" = "chroot" ]; then
|
if [ "$action" = "chroot" ]; then
|
||||||
env IN_CHROOT=1 LANG=C PATH=$PATH:/usr/local/bin \
|
env IN_CHROOT=1 LANG=C PATH=$PATH:/usr/local/bin \
|
||||||
|
@ -317,6 +318,7 @@ xbps_chroot_handler()
|
||||||
|
|
||||||
action="$arg $action"
|
action="$arg $action"
|
||||||
env in_chroot=1 IN_CHROOT=1 LANG=C _ORIGINPKG="$pkg" \
|
env in_chroot=1 IN_CHROOT=1 LANG=C _ORIGINPKG="$pkg" \
|
||||||
|
PATH=$PATH:/usr/local/bin \
|
||||||
${chroot_cmd} $XBPS_MASTERDIR sh -c \
|
${chroot_cmd} $XBPS_MASTERDIR sh -c \
|
||||||
"cd /xbps/srcpkgs/$pkg && xbps-src $action" || rv=$?
|
"cd /xbps/srcpkgs/$pkg && xbps-src $action" || rv=$?
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue