Subject: Re: Adding USE_GCC3=yes to /usr/pkg/share/examples/gcc-3.3/mk.conf
To: Frederick Bruckman <fredb@immanent.net>
From: David Brownlee <abs@netbsd.org>
List: tech-pkg
Date: 01/21/2004 13:02:45
On Tue, 20 Jan 2004, Frederick Bruckman wrote:

> On Wed, 21 Jan 2004, grant beattie wrote:
>
> > On Tue, Jan 20, 2004 at 02:23:05PM +0000, David Brownlee wrote:
> >
> > > 	Would anyone object if I added USE_GCC3=yes to
> > > 	/usr/pkg/share/examples/gcc-3.3/mk.conf
> > >
> > > 	This would mean it could be included in mk.conf on a 1.6.x
> > > 	box and everything would build happily using gcc3 from pkgsrc.
> >
> > I guess USE_GCC3=YES in /etc/mk.conf doesn't play nice with buildlink3
> > yet, so this seems reasonable.
> >
> > as fredb pointed out, lang/gcc3 should be updated to 3.3.2.
>
> I still think it would be best to make it a meta-package for gcc3-c,
> and gcc3-c++. The present situation is confusing to users, and not
> supportable by ourselves.

	gcc3-c++ pulls in gcc3-c, so we can probably just point people
	towards gcc3-c++. The problem is that it is not a drop in
	replacement for gcc3. I tried a quick diff to compiler.mk but
	it chokes because _CC_IS_GCC doesn't get set, so CC_VERSION
	is set to '${CC} -V' resulting in much breakage. I don't have
	time to look at this at the moment, but in case someone else
	has...

Index: compiler.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/compiler.mk,v
retrieving revision 1.24
diff -u -r1.24 compiler.mk
--- compiler.mk	10 Dec 2003 09:08:24 -0000	1.24
+++ compiler.mk	21 Jan 2004 13:01:07 -0000
@@ -187,9 +187,9 @@
 # Packages that link against gcc shared libraries need a full
 # dependency.
 .      if defined(USE_GCC_SHLIB)
-DEPENDS+=		gcc3>=${GCC_REQD}:../../lang/gcc3
+DEPENDS+=		gcc3>=${GCC_REQD}:gcc3-c++>=${GCC_REQD}:../../lang/gcc3
 .      else
-BUILD_DEPENDS+=		gcc3>=${GCC_REQD}:../../lang/gcc3
+BUILD_DEPENDS+=		gcc3>=${GCC_REQD}:gcc3-c++>=${GCC_REQD}:../../lang/gcc3
 .      endif
 .    endif	# buildlink2
 .  endif	# PKGPATH != lang/gcc3
-- 
		David/absolute          -- www.netbsd.org: No hype required --