[arch-releng] [PATCH 4/4] Secure ARCH parsing in Makefile
Gerhard Brauer
gerbra at archlinux.de
Wed Jul 1 15:50:04 EDT 2009
Am Dienstag, den 30.06.2009, 16:06 +0200 schrieb Gerhard Brauer:
> Am Dienstag, den 30.06.2009, 15:49 +0200 schrieb Henning Garus:
> >
> > I am no expert on Makefiles, but
> >
> > ARCH?=$(shell source /etc/makepkg.conf; echo "$$CARCH")
> >
> > seems to work.
>
> Yes, i think this is cleaner code than mine in the "patched patch" ;-)
> Thanks. If we apply (Aaron?) the 3. and 4. patch we should do it this
> way.
I "found" linux32 and linux64 commands ;-)
Using linux32 chroot /foobar wraps the output of uname -m to i686 on an
x86_64.
linux32 uname -m
So we have no need to apply this patch (3 and 4), we could leave the old
code:
ARCH?=`uname -m`
in the Makefile.
Gerhard
More information about the arch-releng
mailing list