develooper Front page | perl.perl5.build | Postings from March 2004

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

Thread Previous
From:
H.Merijn Brand
Date:
March 17, 2004 10:25
Subject:
Re: [PATCH] Annotate Oldconfig.U GNU/uname -a case
Message ID:
20040317192341.62A7.H.M.BRAND@hccnet.nl
On Wed 17 Mar 2004 16:39, Andrew Dougherty <doughera@lafayette.edu> 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.
> 
> Sorry if this doesn't quite apply cleanly; I don't have a recent check-out
> 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).
> 
> --- 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=freebsd
>  			osvers="$3" ;;
>  		genix) osname=genix ;;
> +?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=gnu
>  		    osvers="$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" <bod@debian.org>
        Date: Sun, 15 Feb 2004 23:27:17 +1100
        Message-ID: <20040215122717.GA26812@londo.c47.org>

Affected files ...

... //depot/metaconfig/U/modified/Oldconfig.U#25 edit

Differences ...

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

@@ -316,7 +316,7 @@
                domainos) osname=apollo
                        osvers="$3"
                        ;;
-               dgux) osname=dgux
+               dgux)   osname=dgux
                        osvers="$3"
                        ;;
 ?X:            uname -a returns
@@ -326,27 +326,29 @@
                        ;;
                freebsd) osname=freebsd
                        osvers="$3" ;;
-               genix) osname=genix ;;
+               genix)  osname=genix ;;
+               gnu)    osname=gnu
+                       osvers="$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=hpux
+               hp*)    osname=hpux
                        osvers=`echo "$3" | $sed 's,.*\.\([0-9]*\.[0-9]*\),\1,'`
                        ;;
-               irix*) osname=irix
+               irix*)  osname=irix
                        case "$3" in
                        4*) osvers=4 ;;
                        5*) osvers=5 ;;
                        *)      osvers="$3" ;;
                        esac
                        ;;
-               linux) osname=linux
+               linux)  osname=linux
                        case "$3" in
                        *)      osvers="$3" ;;
                        esac
                        ;;
-               MiNT) osname=mint
+               MiNT)   osname=mint
                        ;;
                netbsd*) osname=netbsd
                        osvers="$3"
-->8---

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

-- 
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/daily-build@perl.org/   perl-qa@perl.org
send smoke reports to: smokers-reports@perl.org, QA: http://qa.perl.org


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About