Skip to content

Commit

Permalink
Setup environment variables for Arch packages
Browse files Browse the repository at this point in the history
login shells started with "su -l" behave differently on Arch
(/etc/profile not executed):
openSUSE/open-build-service#713
  • Loading branch information
e9925248 committed Jul 9, 2014
1 parent 811c84f commit 7e997b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-recipe-arch
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ recipe_resultdirs_arch() {
}

_arch_recipe_makepkg() {
chroot $BUILD_ROOT su -lc "cd $TOPDIR/SOURCES && makepkg --config ../makepkg.conf $*" $BUILD_USER
chroot $BUILD_ROOT su -lc "source /etc/profile; cd $TOPDIR/SOURCES && makepkg --config ../makepkg.conf $*" $BUILD_USER
}

0 comments on commit 7e997b6

Please sign in to comment.