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

Lukas Fleischer archlinux at cryptocrack.de
Sun Dec 4 11:41:09 EST 2011


On Sat, Dec 03, 2011 at 04:26:42PM +1000, Allan McRae wrote:
> 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(-)

Agreed. If we ever feel the need to set "$PATH" inside the chroot, we
can always add another environment variable for that.

Signed-off-by: Lukas Fleischer <archlinux at cryptocrack.de>

> 
> 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