Commit 521c4cee authored by Pierre Schmitz's avatar Pierre Schmitz
Browse files

makechrootpkg: Set the C locale system wide

makepkg sources /etc/profile before calling build(). This will change the
locale from C to en_US.UTF8.
parent 3a684f66
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -250,6 +250,9 @@ chown -R nobody "$copydir"/{build,pkgdest,srcdest}
echo 'nobody ALL = NOPASSWD: /usr/bin/pacman' > "$copydir/etc/sudoers.d/nobody-pacman"
chmod 440 "$copydir/etc/sudoers.d/nobody-pacman"

# Set this system wide as makepkg will source /etc/profile before calling build()
echo 'export LANG=C' > "$copydir/etc/locale.conf"

# This is a little gross, but this way the script is recreated every time in the
# working copy
cat >"$copydir/chrootbuild" <<EOF