[arch-projects] [devtools] [PATCH] makearchroot: source /etc/profile before building

Allan McRae allan at archlinux.org
Sat Dec 3 01:26:42 EST 2011


This ensures the PATH used when building is the default path and
not the value set by the user calling makechrootpkg.

Signed-off-by: Allan McRae <allan at archlinux.org>
---
 makechrootpkg.in |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/makechrootpkg.in b/makechrootpkg.in
index 8a4b143..c5d57e5 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -264,6 +264,7 @@ echo 'LANG=C' > "$copydir/etc/locale.conf"
 # working copy
 cat >"$copydir/chrootbuild" <<EOF
 #!/bin/bash
+. /etc/profile
 export LANG=C
 export HOME=/build
 
-- 
1.7.7.4



More information about the arch-projects mailing list