Re: [PATCH] Annotate Oldconfig.U GNU/uname -a case

[email protected] ("H.Merijn Brand") Wed, 17 Mar 2004 19:24:44 +0100
Newsgroups perl.perl5.build
Message-ID <[email protected]>
On Wed 17 Mar 2004 16:39, Andrew Dougherty <[email protected]> wrote:
> I realized I still had this sitting in my "to-do" list.  This just adds
> some comments to the Oldconfig.U unit about why we need to put in a
> special case for the Hurd, and why it doesn't just fall back correctly on
> the BSD-like behavior that I had expected.
>=20
> Sorry if this doesn't quite apply cleanly; I don't have a recent check-ou=
t
> of the metaconfig units, and the machine on which I used to do metaconfig
> work is in broken pieces on my lab table; I haven't quite gotten all the
> pieces back together on my replacement system (an old SPARC Ultra).
>=20
> --- U/modified/Oldconfig.U.old	2004-03-17 10:28:10.000000000 -0500
> +++ U/modified/Oldconfig.U	2004-03-17 10:27:25.000000000 -0500
> @@ -327,6 +327,12 @@
>  		freebsd) osname=3Dfreebsd
>  			osvers=3D"$3" ;;
>  		genix) osname=3Dgenix ;;
> +?X:
> +?X:		GNU/Hurd uname -a gives something like:
> +?X:		GNU foo 0.3 GNU-Mach 1.4/Hurd-0.3 i386-AT386 GNU
> +?X:		GNU gnu 0.3 GNUmach-1.2/Hurd-0.3 i386-AT386 GNU
> +?X:		Note the hostname on the second one, which will fool Configure
> +?X:		into using the SysV case!
>  		gnu) osname=3Dgnu
>  		    osvers=3D"$3" ;;
>  ?X: HP-UX uname -a gives something like

I already had applied this:

-->8---
Change 22311 by merijn@merijn-l1 on 2004/02/16 11:37:20

        Hurd should understand gnu
        From: "Brendan O'Dea" <[email protected]>
        Date: Sun, 15 Feb 2004 23:27:17 +1100
        Message-ID: <[email protected]>

Affected files ...

=2E.. //depot/metaconfig/U/modified/Oldconfig.U#25 edit

Differences ...

=3D=3D=3D=3D //depot/metaconfig/U/modified/Oldconfig.U#25 (text) =3D=3D=3D=
=3D

@@ -316,7 +316,7 @@
                domainos) osname=3Dapollo
                        osvers=3D"$3"
                        ;;
-               dgux) osname=3Ddgux
+               dgux)   osname=3Ddgux
                        osvers=3D"$3"
                        ;;
 ?X:            uname -a returns
@@ -326,27 +326,29 @@
                        ;;
                freebsd) osname=3Dfreebsd
                        osvers=3D"$3" ;;
-               genix) osname=3Dgenix ;;
+               genix)  osname=3Dgenix ;;
+               gnu)    osname=3Dgnu
+                       osvers=3D"$3" ;;
 ?X: HP-UX uname -a gives something like
 ?X: HP-UX foobar B.10.20 A 9000/735 2016483812 two-user license
 ?X: Preserve the full 10.20 string instead of the previous plain '10'.
 ?X:  Thanks to Graham Barr.    --AD 6/30/1998
-               hp*) osname=3Dhpux
+               hp*)    osname=3Dhpux
                        osvers=3D`echo "$3" | $sed 's,.*\.\([0-9]*\.[0-9]*\=
),\1,'`
                        ;;
-               irix*) osname=3Dirix
+               irix*)  osname=3Dirix
                        case "$3" in
                        4*) osvers=3D4 ;;
                        5*) osvers=3D5 ;;
                        *)      osvers=3D"$3" ;;
                        esac
                        ;;
-               linux) osname=3Dlinux
+               linux)  osname=3Dlinux
                        case "$3" in
                        *)      osvers=3D"$3" ;;
                        esac
                        ;;
-               MiNT) osname=3Dmint
+               MiNT)   osname=3Dmint
                        ;;
                netbsd*) osname=3Dnetbsd
                        osvers=3D"$3"
-->8---

but I'll add the comments, which I cannot remember having seen

--=20
H.Merijn Brand        Amsterdam Perl Mongers (http://amsterdam.pm.org/)
using perl-5.6.1, 5.8.0, & 5.9.x, and 806 on  HP-UX 10.20 & 11.00, 11i,
   AIX 4.3, SuSE 8.2, and Win2k.           http://www.cmve.net/~merijn/
http://archives.develooper.com/[email protected]/   [email protected]
send smoke reports to: [email protected], QA: http://qa.perl.org