develooper Front page | | Postings from March 2004

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

Thread Next
Andrew Dougherty
March 17, 2004 07:38
[PATCH] Annotate Oldconfig.U GNU/uname -a case
Message ID:
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:		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

    Andy Dougherty

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About