diff options
author | Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> | 2016-10-08 14:41:12 +0200 |
---|---|---|
committer | Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> | 2016-10-08 14:44:31 +0200 |
commit | 76dec8507e2e767db07f967644ed8958f85cd5a2 (patch) | |
tree | ac6ee9745560d9bdd10f2b4030385f7a1217c07b | |
parent | 9727b684e60c56775ef071be3707059b1d1518e1 (diff) | |
download | devtools-76dec8507e2e767db07f967644ed8958f85cd5a2.tar.xz |
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.
-rw-r--r-- | makechrootpkg.in | 4 |
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() { |