Subject: Re: pkg/31092: Python-2.3.5 Solaris
To: None <pkg-manager@NetBSD.org, gnats-admin@NetBSD.org,>
From: Gilles Dauphin <Gilles.Dauphin@enst.fr>
List: pkgsrc-bugs
Date: 08/31/2005 15:36:25
You are true :) Solaris and gcc specific.
The patch may be :

+.if ${OPSYS} == "SunOS" && ${CC} == "gcc" 
+#workaround for bug with Solaris/gcc : __builtin_huge_val is a func. in that 
case, but  not declare as in Solaris header.
+CONFIGURE_ARGS+=       OPT="${CFLAGS} -D\"Py_HUGE_VAL=__builtin_huge_val()\""
+.else
 CONFIGURE_ARGS+=       OPT="${CFLAGS}"
+.endif


Is my fix valid ?

Gilles


> Delivered-To: dauphin@enst.fr
> X-Original-To: pkgsrc-bugs@netbsd.org
> Delivered-To: pkgsrc-bugs@netbsd.org
> From: grant beattie <grant@NetBSD.org>
> To: pkg-manager@NetBSD.org, gnats-admin@NetBSD.org, pkgsrc-bugs@NetBSD.org
> Subject: Re: pkg/31092: Python-2.3.5 Solaris
> X-Virus-Scanned: amavisd-new at enst.fr
> 
> The following reply was made to PR pkg/31092; it has been noted by GNATS.
> 
> From: grant beattie <grant@NetBSD.org>
> To: gnats-bugs@netbsd.org
> Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org,
> 	pkgsrc-bugs@netbsd.org
> Subject: Re: pkg/31092: Python-2.3.5 Solaris
> Date: Wed, 31 Aug 2005 09:55:23 +1000
> 
>  On Tue, Aug 30, 2005 at 08:38:00AM +0000, Gilles Dauphin wrote:
>  
>  > +.if ${OPSYS} == "SunOS"
>  > +# workaround for bug in Solaris 8,9,10 , HUGE_VAL is a function in some 
case...
>  > +#
>  > +CONFIGURE_ARGS+=       OPT="${CFLAGS} -D\"Py_HUGE_VAL=HUGE_VAL()\""
>  > +.else
>  >  CONFIGURE_ARGS+=       OPT="${CFLAGS}"
>  > +.endif
>  
>  I think this is a Solaris/gcc specific issue, as the python pkgs build
>  without a problem using the SunPro compiler.
>  
>  not that this invalidates your fix, just another data point :)
>  
>  grant.
>