[PATCH modular 2/4] build.sh: use accurate values for HOST_CPU from config.guess

Gaetan Nadon memsize at videotron.ca
Sun Jan 2 12:20:04 PST 2011


On Sun, 2011-01-02 at 20:45 +0100, Julien Cristau wrote:

> On Sun, Jan  2, 2011 at 14:34:49 -0500, Gaetan Nadon wrote:
> 
> > On Sun, 2011-01-02 at 15:48 +0100, Mark Kettenis wrote:
> > 
> > > This bit is almost certainly not correct.  The canonical HOST_CPU
> > > value for 64-bit SPARC (aka SPARC V9) is sparc64.
> > > 
> > 
> > Yes, I missed this one as I saw a lot of "sparc" strings, but there was
> > only one "sparc64" in the file.
> > 
> > I'll fix it using "sparc | sparc64" as in this config.guess entry:
> > 
> >     sparc:Linux:*:* | sparc64:Linux:*:*)
> > 	echo ${UNAME_MACHINE}-unknown-linux-gnu
> > 	exit ;;
> > 
> Or you could just leave it alone?

That's always an option. I am putting some efforts in this script as it
is often the first contact new contributors have with X.Org. You may
recall some of the posts on the list dealing with first time builders.
This time around I asked myself what are the other possible values
implied by the stars? It turns out that 23 out of 29 are useless. 

Back to this example, at the least, sparc* should be used rather that
*sparc* which implies there are values with characters leading the
string. There might also be a reason why config.guess used an '|' rather
than a star.

> 
> Cheers,
> Julien
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-devel/attachments/20110102/6f213db0/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg-devel/attachments/20110102/6f213db0/attachment.pgp>


More information about the xorg-devel mailing list