pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/31092: Python-2.3.5 Solaris



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@localhost
> X-Original-To: pkgsrc-bugs%netbsd.org@localhost
> Delivered-To: pkgsrc-bugs%netbsd.org@localhost
> From: grant beattie <grant%NetBSD.org@localhost>
> To: pkg-manager%NetBSD.org@localhost, gnats-admin%NetBSD.org@localhost, 
> pkgsrc-bugs%NetBSD.org@localhost
> 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@localhost>
> To: gnats-bugs%netbsd.org@localhost
> Cc: pkg-manager%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
>       pkgsrc-bugs%netbsd.org@localhost
> 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.
>  




Home | Main Index | Thread Index | Old Index