[arch-releng] [PATCH 4/4] Secure ARCH parsing in Makefile

Gerhard Brauer gerbra at archlinux.de
Tue Jun 30 08:20:59 EDT 2009


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



More information about the arch-releng mailing list