Subject: Re: bootstrap on OpenBSD / New build platform.
To: Philip Reynolds <firstname.lastname@example.org>
From: Chris Pinnock <email@example.com>
Date: 03/23/2004 16:39:00
On Sat, Mar 20, 2004 at 10:57:22PM +0000, Philip Reynolds wrote:
> I'm working on porting pkgsrc to ekkoBSD an OpenBSD derivative/fork.
> bootstrap tries to get the machine architecture from ``uname -p'',
> which is incorrect. Unlike FreeBSD, on OpenBSD systems (at least the
> ones I have) uname -p reports the equivalent of hw.model which is an
> English description of the processor. e.g.
> $ uname -p
> Intel Pentium III (Coppermine) ("GenuineIntel" 686-class)
> pkg_install requires this to be set to the architecture type.
> Because of the extra quotes in this, we actually get a syntax error
> in the Makefile. That was merely a symptom of the problem however,
> the real cause being the wrong arguments to uname.
> Line 262 of bootstrap should be changed to read ``uname -m'' instead
> of ``uname -p''.
IIRC, I had a discussion with an OpenBSD developer and he suggested
`arch -s` for this sort of thing (i.e. identifying the app architecture
rather than the machine architecture). We are in freeze at the moment,
but perhaps this should be rectified.