Subject: Solaris MACHINE_GNU_PLATFORM
To: None <tech-pkg@netbsd.org>
From: Jonathan Perkin <sketch@rd.bbc.co.uk>
List: tech-pkg
Date: 03/12/2003 20:37:12
Need some sanity checking:

GNU's config.sub mangles a --host=LOWER_ARCH-sun-solaris into
LOWER_ARCH-sun-solaris2 to avoid clashes with old solaris1 stuff, yet we
define:

LOWER_VENDOR?=          sun
LOWER_OPSYS?=           solaris

in bsd.prefs.mk.  This breaks anything which assumes a PLIST of
${MACHINE_GNU_PLATFORM}/* (e.g. ruby which I'm upgrading to 1.6.8).

I'd suggest

  RCS file: /cvsroot/pkgsrc/mk/bsd.prefs.mk,v
  retrieving revision 1.106
  diff -u -r1.106 bsd.prefs.mk
  --- bsd.prefs.mk        2003/01/25 22:39:56     1.106
  +++ bsd.prefs.mk        2003/03/12 20:32:54
  @@ -84,7 +84,7 @@
   MAKEFLAGS+=            LOWER_ARCH=${LOWER_ARCH}
   .  endif
   LOWER_VENDOR?=         sun
  -LOWER_OPSYS?=          solaris
  +LOWER_OPSYS?=          solaris2
   
   .elif ${OPSYS} == "Linux"
   LOWER_OPSYS?=          linux

rather than fudging each config.sub (and pkgsrc/mk/gnu-config/config.sub),
unless there are plans to support Solaris 1.x machines in the future,
but I'm not confident this is the "correct" fix (indeed it doesn't
completely fix the currently-broken ruby install on Solaris as that also
mangles out the -sun- part) so would appreciate some clarity.

Thanks,

-- 
Jonathan Perkin - Internet Operations Engineer - BBC Internet Services
24x7 Hotline: +44 (0)1628 407 777 (x37777) - http://support.bbc.co.uk/