Subject: Re: fwd: pkgsrc/misc/celestia barf with g++ 2.95.3
To: None <tech-pkg@netbsd.org>
From: Jonathan A. Kollasch <jakollasch@mcleodusa.net>
List: tech-pkg
Date: 11/30/2004 14:17:34
On Saturday, November 27, 2004 09:23 am, C=E9sar Catri=E1n C. wrote:
> --- Makefile.common.original Wed Nov 24 21:29:31 2004
> +++ Makefile.common Thu Nov 25 16:04:11 2004
> @@ -16,6 +16,8 @@
> USE_GNU_TOOLS+=3D make
> USE_LIBTOOL=3D yes
> USE_X11=3D yes
> +USE_LANGUAGES+=3D c++
> +GCC_REQD=3D 3.0
> GNU_CONFIGURE=3D yes
> CONFIGURE_ARGS+=3D --with-lua --with-glut
>
> ----
>
> This would not be necessary on machines with commercial C++ compilers,
> or other free unices that use gcc3 natively. Basically gcc2 cannot be used
> as the compiler (or else celestia-1.3.2.tar.gz/src/celutil/utf8.cpp needs
> a patch (maybe more files as well)). Perhaps have gcc3 required on NetBSD
> 1.x, this would fix NetBSD and not require others to compile gcc3 from
> pkgsrc. Whatever, I'm unfamiliar with the "proper" way to fix this.
>
> Jonathan Kollasch
Well I now have a 2.0RC5 to test on and the "GCC_REQD=3D3.0" doesn't cause =
a=20
build of gcc3. (Same on gentoo with their gcc 3.3.4)
Does the "GCC_REQD=3D3.0" cause a build of g++ on machines that use a non g=
++=20
compiler? If it doesn't this patch should be committed. (From what I've=20
tested with setting PKGSRC_COMPILER?=3D!gcc (I used ccc) it doesn't (i.e. i=
t=20
got as far as 'work/celestia-1.3.2/./configure' saying the C compiler can't=
=20
produce executeables))
So yeah, please add:
USE_LANGUAGES+=3Dc++
GCC_REQD=3D3.0
to the current misc/celestia/Makefile.common (if not already there of cour=
se)
Jonathan Kollasch