From 76dec8507e2e767db07f967644ed8958f85cd5a2 Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" Date: Sat, 8 Oct 2016 14:41:12 +0200 Subject: makechrootpkg: Reset environment for builduser The gnustep-base package ships a profile.d script that adds "$HOME/GNUstep/Tools" to the PATH, which breaks when the user changes and causes meson to exit with a "permission denied" error. --- makechrootpkg.in | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'makechrootpkg.in') diff --git a/makechrootpkg.in b/makechrootpkg.in index cd9efce..284d444 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -199,9 +199,7 @@ EOF # so no global variables _chrootbuild() { . /etc/profile - export HOME=/build - cd /startdir - sudo -u builduser makepkg "$@" + sudo -iu builduser bash -c 'cd /startdir; makepkg "$@"' -bash "$@" } _chrootnamcap() { -- cgit v1.2.3-70-g09d2