Subject: Re: pkgsrc NetBSD 1.6.2/i386 bulk build results 20060415.2347
To: Thomas Klausner <wiz@NetBSD.org>
From: Christoph Leuzinger <leuzi@trash.net>
List: pkgsrc-bulk
Date: 04/19/2006 20:22:25
--Apple-Mail-5--339979336
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed

Hi!

Am 19.04.2006 18:57 schrieb Thomas Klausner:

>> graphics/py-cairo                  leuzi@trash.net
>
>  cc1: unknown C standard `c99'

This seems to happen because gcc 2.x doesn't know about the "--std=c99" 
flag. I took a look at devel/nasm/Makefile and I think the attached 
patch may fix it. I can't test it, however, because don't use gcc 2.x.

Christoph

--Apple-Mail-5--339979336
Content-Transfer-Encoding: 7bit
Content-Type: application/octet-stream;
	x-unix-mode=0644;
	name="py-cairo-c99.diff"
Content-Disposition: attachment;
	filename=py-cairo-c99.diff

--- graphics/py-cairo/Makefile.orig	Wed Apr 19 20:07:55 2006
+++ graphics/py-cairo/Makefile	Wed Apr 19 20:12:46 2006
@@ -20,6 +20,12 @@
 PYTHON_VERSIONS_ACCEPTED= 24 23
 PY_PATCHPLIST=		yes
 
+.include "../../mk/compiler.mk"
+
+.if !empty(CC_VERSION:Mgcc-2*)
+BUILDLINK_TRANSFORM+=   rm:-std=c99
+.endif
+
 .include "../../lang/python/extension.mk"
 .include "../../math/py-Numeric/buildlink3.mk"
 .include "../../graphics/cairo/buildlink3.mk"

--Apple-Mail-5--339979336
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed



--Apple-Mail-5--339979336--