Bill Allombert on Mon, 29 Sep 2003 18:32:09 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: patch for building with openbsd


On Mon, Sep 29, 2003 at 04:44:20PM +1000, Rodger Allen wrote:
> Hello
> 
> I've been playing with getting pari to compile on OpenBSD and have made
> some patches to the current CVS tree (29 Sept 2003) for this purpose.
> The attached is just a "cvs diff -c" against the tree.

Thanks, at first glance it look fine.

> I have tested this against the pari kernel, and linked against gmp.  This
> was built against OpenBSD-3.3 on an i386.  I do not have access to other
> hardware at the moment, so I cannot say how it would go against anything
> but this architecture.

For that purpose it would be nice if you improved arch-osname to get
the architecture name right on OpenBSD (and FreeBSD if possible).

Adding arch=`uname -m` is usually sufficient providing the name match
what is understood by PARI/GP.

> *** pari/config/arch-osname	2003/04/10 19:46:10	1.9
> --- pari/config/arch-osname	2003/09/29 06:12:21
> ***************
> *** 11,17 ****
>     fx2800)   arch=fx2800; osname=concentrix;;
>     hp*)      osname=hpux; arch=`uname -m`
>               if test "x$arch" = "x" ; then arch=hppa; fi ;;
> !   freebsd|os2)  arch=ix86;;
>     ultrix)   arch=mips;;
>     nextstep) arch=`file /bin/sh | sed 's/.*(for architecture \(.*\))/\1/'`;;
>     darwin*)  arch=`uname -p`
> --- 11,17 ----
>     fx2800)   arch=fx2800; osname=concentrix;;
>     hp*)      osname=hpux; arch=`uname -m`
>               if test "x$arch" = "x" ; then arch=hppa; fi ;;
> !   freebsd|os2|openbsd)  arch=ix86;;
>     ultrix)   arch=mips;;
>     nextstep) arch=`file /bin/sh | sed 's/.*(for architecture \(.*\))/\1/'`;;
>     darwin*)  arch=`uname -p`

Cheers,
Bill.