public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Paul Eggert <eggert@CS.UCLA.EDU>
To: config-patches@gnu.org
Cc: rms@gnu.org, ro@techfak.uni-bielefeld.de, bje@wasabisystems.com,
	gcc@gcc.gnu.org, binutils@sources.redhat.com,
	gdb@sources.redhat.com, brane@xbc.nu
Subject: Re: flag day for Solaris portions of config.{guess,sub}
Date: Mon, 24 Nov 2003 08:17:00 -0000	[thread overview]
Message-ID: <878ym6tgw4.fsf@penguin.cs.ucla.edu> (raw)
In-Reply-To: <3FC13184.3020702@xbc.nu>

<brane@xbc.nu> writes:

> What about the thousands of non-GNU packages that use config.guess?

Most of them won't care one way or another, for the same reason that
only a tiny fraction of GNU programs care.

Obviously there are both pros and cons to changing config.guess to use
correct Sun version numbers.  The people who will be hassled by the
correction (namely, a handful of maintainers) are more likely to
complain about it, while the people who will benefit from the
correction (e.g., newbie installers) don't know what's happening and
we won't hear from them here.  (If the American Congress were to vote
on this issue, the handful of special interests would win hands down.
Sigh. :-)

ro didn't favor the proposed change, but suggested that if we change
it, we should standardize on -sunos uniformly, and use e.g., -sunos5.9
rather than -solaris9.  That's fine with me, and in fact it's a bit
cleaner.  It may cause a bit more work since it renames -solaris2.0
through -solaris2.6 too, but these OSes are obsolete as Sun no longer
issues patches for them, so it's not a big deal these days.

Here's a patch to do it that way, if you prefer.


2003-11-24  Paul Eggert  <eggert@twinsun.com>

	Standardize on -sunos* for SunOS versions, rather than using
	-sunos* for older versions and (incorrectly-numbered) -solaris* for
	newer versions.

	* config.guess (sun4H:SunOS:5.*:*, sun4*:SunOS:5.*:*,
	tadpole*:SunOS:5.*:*, i86pc:SunOS:5.*:*, prep*:SunOS:5.*:*):
	Guess -sunosN instead of -solarisM, as we are standardizing
	on -sunos for SunOS hosts.
	* config.sub (i*86sol2, sun4sol2, -solaris*): Likewise.
	(-solaris, -sunos5*): Remove cases.
	(-solaris2, -solaris2.*, -solaris[789], -solaris[789].*,
	-solaris[1-9][0-9]*, -sunos*): New cases.

	* config.guess (sun4*:SunOS:6*:*):
	Remove case: There never will be a "Solaris 3".
	* config.sub (-sunos6*): Likewise.

cvs server: Diffing .
Index: config.guess
===================================================================
RCS file: /cvsroot/config/config/config.guess,v
retrieving revision 1.287
diff -p -u -r1.287 config.guess
--- config.guess	20 Nov 2003 09:20:24 -0000	1.287
+++ config.guess	24 Nov 2003 06:24:46 -0000
@@ -338,19 +338,17 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
 	    sparc) echo sparc-icl-nx7 && exit 0 ;;
 	esac ;;
     sun4H:SunOS:5.*:*)
-	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+	echo sparc-hal-sunos${UNAME_RELEASE}
 	exit 0 ;;
+    # Previous versions of config.guess incorrectly identified Solaris 7
+    # as solaris2.7, and similarly for Solaris 8 and Solaris 9.
+    # config.guess now identifies these OSes by SunOS version, e.g.,
+    # sparc-sun-sunos5.9 instead of the incorrect sparc-sun-solaris2.9.
     sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
-	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+	echo sparc-sun-sunos${UNAME_RELEASE}
 	exit 0 ;;
     i86pc:SunOS:5.*:*)
-	echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
-	exit 0 ;;
-    sun4*:SunOS:6*:*)
-	# According to config.sub, this is the proper way to canonicalize
-	# SunOS6.  Hard to guess exactly what SunOS6 will be like, but
-	# it's likely to be more like Solaris than SunOS4.
-	echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+	echo i386-pc-sunos${UNAME_RELEASE}
 	exit 0 ;;
     sun4*:SunOS:*:*)
 	case "`/usr/bin/arch -k`" in
@@ -807,7 +805,7 @@ EOF
 	echo powerpcle-unknown-cygwin
 	exit 0 ;;
     prep*:SunOS:5.*:*)
-	echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+	echo powerpcle-unknown-sunos${UNAME_RELEASE}
 	exit 0 ;;
     *:GNU:*:*)
 	# the GNU system
Index: config.sub
===================================================================
RCS file: /cvsroot/config/config/config.sub,v
retrieving revision 1.297
diff -p -u -r1.297 config.sub
--- config.sub	20 Nov 2003 09:20:24 -0000	1.297
+++ config.sub	24 Nov 2003 06:24:48 -0000
@@ -593,7 +593,7 @@ case $basic_machine in
 		;;
 	i*86sol2)
 		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
-		os=-solaris2
+		os=-sunos5
 		;;
 	i386mach)
 		basic_machine=i386-mach
@@ -916,7 +916,7 @@ case $basic_machine in
 		;;
 	sun4sol2)
 		basic_machine=sparc-sun
-		os=-solaris2
+		os=-sunos5
 		;;
 	sun3 | sun3-*)
 		basic_machine=m68k-sun
@@ -1113,12 +1113,17 @@ then
 case $os in
         # First match some system type aliases
         # that might get confused with valid system types.
-	# -solaris* is a basic system type, with this one exception.
 	-solaris1 | -solaris1.*)
 		os=`echo $os | sed -e 's|solaris1|sunos4|'`
 		;;
-	-solaris)
-		os=-solaris2
+	-solaris2 | -solaris2.*)
+		os=`echo "$os" | sed -e 's|solaris2|sunos5|'`
+		;;
+	-solaris[789] | -solaris[789].* | -solaris[1-9][0-9]*)
+		os=`echo "$os" | sed -e 's|solaris|sunos5.|'`
+		;;
+	-solaris*)
+		os=-sunos5
 		;;
 	-svr4*)
 		os=-sysv4
@@ -1135,7 +1140,7 @@ case $os in
 	# -sysv* is not here because it comes later, after sysvr4.
 	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
 	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
-	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
+	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -sunos* | -sym* \
 	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
 	      | -aos* \
 	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
@@ -1181,12 +1186,6 @@ case $os in
 		;;
 	-linux*)
 		os=`echo $os | sed -e 's|linux|linux-gnu|'`
-		;;
-	-sunos5*)
-		os=`echo $os | sed -e 's|sunos5|solaris2|'`
-		;;
-	-sunos6*)
-		os=`echo $os | sed -e 's|sunos6|solaris3|'`
 		;;
 	-opened*)
 		os=-openedition

  reply	other threads:[~2003-11-24  6:33 UTC|newest]

Thread overview: 81+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-20 12:25 Ben Elliston
2003-11-20 14:03 ` Ben Elliston
2003-11-20 14:12 ` Eric Botcazou
2003-11-20 18:29 ` Rainer Orth
2003-11-20 20:31   ` Paul Eggert
2003-11-20 20:35     ` Rainer Orth
2003-11-20 20:50       ` Albert Chin-A-Young
2003-11-20 21:32       ` Paul Eggert
2003-11-20 21:44         ` Rainer Orth
2003-11-21  0:57           ` Paul Eggert
2003-11-21  1:15             ` Rainer Orth
2003-11-23 12:51             ` Richard Stallman
2003-11-23 23:40               ` Branko Čibej
2003-11-24  8:17                 ` Paul Eggert [this message]
2003-11-24  8:28                   ` Eric Botcazou
2003-11-24 12:08                     ` Paul Eggert
2003-11-24 14:35                       ` Eric Botcazou
2003-11-24 21:54                         ` Paul Eggert
2003-11-25 10:47                           ` Eric Botcazou
2003-11-25 23:12                             ` Paul Eggert
2003-11-26  6:05                               ` Eric Botcazou
2003-11-26 12:05                               ` Ben Elliston
2003-11-27  1:58                                 ` Russ Allbery
2003-11-25 10:07                 ` Richard Stallman
2003-11-26  3:49                   ` Zack Weinberg
2003-11-20 21:33     ` Eric Botcazou
2003-11-20 21:40       ` Rainer Orth
2003-11-20 23:32         ` Phil Edwards
2003-11-21 23:56 ` tm_gccmail
2003-11-22  0:01   ` Joe Buck
2003-11-27 18:55 ` Zack Weinberg
2003-11-29  1:42   ` Paul Eggert
2003-11-29  2:24     ` Zack Weinberg
2003-12-01 21:29       ` Paul Eggert
2003-12-01 22:09         ` Zack Weinberg
2003-12-02 21:40           ` Paul Eggert
2003-12-02 21:45             ` Zack Weinberg
2003-12-02 22:21               ` Ben Elliston
2003-12-03 17:22               ` Richard Stallman
2003-12-03 17:23                 ` Zack Weinberg
2003-12-03 17:33                   ` Arnaud Charlet
2003-12-04  7:42                   ` Richard Stallman
2003-12-04  8:57                     ` Branko Čibej
2003-12-05 17:27                       ` Richard Stallman
2003-12-05 18:43                         ` Zack Weinberg
2003-12-05 18:53                           ` Joe Buck
2003-12-06 12:11                             ` Nix
2003-12-07 23:22                         ` Branko Čibej
2003-12-04 10:16                     ` Zack Weinberg
2003-12-04 11:16                       ` Ben Elliston
2003-12-04 21:41                         ` Paul Eggert
2003-12-04 22:07                           ` Zack Weinberg
2003-12-04 23:04                           ` Arnaud Charlet
2003-12-04 23:11                           ` Alexandre Oliva
2003-12-04 23:27                             ` Joe Buck
2003-12-04 23:38                               ` Zack Weinberg
2003-12-04 23:41                                 ` Ben Elliston
2003-12-04 23:42                                   ` Zack Weinberg
2003-12-05 11:46                                     ` Alexandre Oliva
2003-12-06  7:05                                       ` Eric Botcazou
2003-12-06 20:41                                         ` Alexandre Oliva
2003-12-06 21:56                                           ` Eric Botcazou
2003-12-07  9:25                                             ` Arnaud Charlet
2003-12-07 15:26                                               ` Eric Botcazou
2003-12-07 19:25                                               ` Zack Weinberg
2003-12-05  5:00                                   ` Russ Allbery
2003-12-05 12:37                                     ` Alexandre Oliva
2003-12-08 13:29                             ` Rainer Orth
2003-12-08 22:44                               ` Paul Eggert
2003-12-08 23:48                                 ` Rainer Orth
2003-12-08 23:59                                   ` Zack Weinberg
2003-12-10  0:04                                   ` Paul Eggert
2003-12-12  5:30                                   ` Alexandre Oliva
2003-12-12  7:19                                     ` Zack Weinberg
2003-12-12 21:27                                     ` Rainer Orth
2003-12-05 23:22                       ` Richard Stallman
2003-12-04 14:22                     ` Andrew Cagney
2003-11-20 21:55 bkorb
2003-11-20 23:24 ` Rainer Orth
2003-11-20 23:52   ` Bruce Korb
2003-12-02 22:58 Wolfgang Bangerth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878ym6tgw4.fsf@penguin.cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=binutils@sources.redhat.com \
    --cc=bje@wasabisystems.com \
    --cc=brane@xbc.nu \
    --cc=config-patches@gnu.org \
    --cc=gcc@gcc.gnu.org \
    --cc=gdb@sources.redhat.com \
    --cc=rms@gnu.org \
    --cc=ro@techfak.uni-bielefeld.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).