Subject: Re: Adding USE_GCC3=yes to /usr/pkg/share/examples/gcc-3.3/mk.conf
To: David Brownlee <abs@netbsd.org>
From: John R. Shannon <john@johnrshannon.com>
List: tech-pkg
Date: 01/21/2004 06:12:03
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I submitted PR 23692, on 8 Dec 2003, with a patch to fix this. I believe it=
's=20
status is still open.

On Wednesday 21 January 2004 06:02 am, David Brownlee wrote:
> 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=3Dyes 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=3DYES in /etc/mk.conf doesn't play nice with buildli=
nk3
> > > 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
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> 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+=3D		gcc3>=3D${GCC_REQD}:../../lang/gcc3
> +DEPENDS+=3D		gcc3>=3D${GCC_REQD}:gcc3-c++>=3D${GCC_REQD}:../../lang/gcc3
>  .      else
> -BUILD_DEPENDS+=3D		gcc3>=3D${GCC_REQD}:../../lang/gcc3
> +BUILD_DEPENDS+=3D		gcc3>=3D${GCC_REQD}:gcc3-c++>=3D${GCC_REQD}:../../lan=
g/gcc3
>  .      endif
>  .    endif	# buildlink2
>  .  endif	# PKGPATH !=3D lang/gcc3

=2D --=20

John R. Shannon
john@johnrshannon.com
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iEYEARECAAYFAkAOeqMACgkQOKbCxya4HYv+NgCgu4d2EeI+4sI71xU7in/3Cqdo
zhkAoLdFH+zs7wNe1vVpGMm2Wj1iaR68
=3DKisO
=2D----END PGP SIGNATURE-----