Skip to content

Commit

Permalink
build: make sure /bin, /usr/bin are in $PATH
Browse files Browse the repository at this point in the history
eg. on archlinux /bin is a symlink to /usr/bin, and /bin is not
in $PATH.  building rpm packages for openSUSE fails because the
chroot environment has /bin/rpm invoked as `chroot $BUILD_ROOT rpm`.
  • Loading branch information
Roman Neuhauser committed Apr 2, 2014
1 parent 21f89e5 commit e3e8ac8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ trap fail_exit EXIT

shopt -s nullglob

export PATH=$BUILD_DIR:/sbin:/usr/sbin:$PATH
export PATH=$BUILD_DIR:/sbin:/usr/sbin:/bin:/usr/bin:$PATH

if vm_detect_2nd_stage ; then
set "/.build-srcdir/$RECIPEFILE"
Expand Down

0 comments on commit e3e8ac8

Please sign in to comment.