Subject: Re: pkg/19789: MACHINE_ARCH is i686, but Makefiles check for i386
To: Simon J. Gerraty <>
From: Jan Schaumann <>
List: tech-pkg
Date: 01/11/2003 15:29:49
"Simon J. Gerraty" <> wrote:
> >Since MACHINE_ARCH is determined at compile-time for bmake, we can
> >choose to either change it right then, or compile in the specific
> >version and override it in  If nobody can think of a
> >reason why we'd want to keep it in the binary, I think we should change
> >it there (as attached).
> This is already done, bmake-3.1.15 has:
> machine=`uname -p 2>/dev/null || uname -m`
> case "$machine" in
> unknown)
>         machine=`uname -m`
>         ;;
> esac
> and
> Linux)
>         case "$machine" in
> 	i?86) MACHINE_ARCH=i386;;# does anyone really care about 686 vs 586?
> 	esac
>         ;;
> esac
> which is functionally equivalent to your patch but more efficient.
> What version of bmake are you looking at?

I was looking at bootstrap-pkgsrc's bmake, which is most likely what
Jeremy was using.

I'll synch bootstrap-pkgsrc with this version, then, unless anybody


Of course it runs NetBSD!