[arch-releng] [PATCH 4/4] Secure ARCH parsing in Makefile
Abhishek Dasgupta
abhidg at gmail.com
Tue Jun 30 08:29:04 EDT 2009
2009/6/30 Gerhard Brauer <gerbra at archlinux.de>:
> We only want the right-side value from CARCH=, avoid problems when CARCH
> is referenced also in a commet or so....
>
> Signed-off-by: Gerhard Brauer <gerbra at archlinux.de>
> ---
> configs/install-iso/Makefile | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/configs/install-iso/Makefile b/configs/install-iso/Makefile
> index c18abae..9badb24 100644
> --- a/configs/install-iso/Makefile
> +++ b/configs/install-iso/Makefile
> @@ -3,7 +3,7 @@ kver=2.6.30-ARCH
>
> WORKDIR=work
>
> -ARCH?=$(shell grep CARCH /etc/makepkg.conf | cut -d'"' -f2)
> +ARCH?=$(shell grep '^CARCH=' /etc/makepkg.conf | cut -d'"' -f2)
> BOOTLOADER?=grub-gfx
>
> PWD:=`pwd`
> --
> 1.6.3.3
>
Sourcing makepkg.conf would directly give access to CARCH.
--
Abhishek
More information about the arch-releng
mailing list