summaryrefslogtreecommitdiff
path: root/makechrootpkg.in
diff options
context:
space:
mode:
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2016-10-08 14:41:12 +0200
committerJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2016-10-08 14:44:31 +0200
commit76dec8507e2e767db07f967644ed8958f85cd5a2 (patch)
treeac6ee9745560d9bdd10f2b4030385f7a1217c07b /makechrootpkg.in
parent9727b684e60c56775ef071be3707059b1d1518e1 (diff)
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.
Diffstat (limited to 'makechrootpkg.in')
-rw-r--r--makechrootpkg.in4
1 files changed, 1 insertions, 3 deletions
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() {