Subject: Re: Malformed conditional && solaris
To: Jeremy C. Reed <reed@reedmedia.net>
From: MLH <mlh@goathill.org>
List: tech-pkg
Date: 08/31/2005 19:42:07
> 
> On Wed, 31 Aug 2005, MLH wrote:
> 
> > Why is bmake complaining about this on Solaris ?
> >
> > bmake: "/usr/pkgsrc/x11/py-qt3-sip/Makefile" line 38: Malformed conditional
> > (${OPSYS} == "SunOS" && !empty(CC_VERSION:Mgcc*))
> 
> This is the code I committed for you. I don't know what changed. But now I 
> think this CC_VERSION requires including the ../../mk/compiler.mk first.
> 
> Maybe use following instead. I wasn't even checking for version 3 in the 
> first place, so using PKGSRC_COMPILER for checking gcc should be good 
> enough.
> 
> (This just replaces CC_VERSION with PKGSRC_COMPILER.)

Ok. That fixed the Makefile problem and got down to:

===> Patching for py24-qt3-sip-4.2.1
===> Applying pkgsrc patches for py24-qt3-sip-4.2.1
===> Overriding tools for py24-qt3-sip-4.2.1
===> Creating toolchain wrappers for py24-qt3-sip-4.2.1
/bin/sh:
/usr/local/pkgwork/x11/py-qt3-sip/work.loonquawl/.buildlink/lib/pkgconfig/xextensions.pc:
cannot create
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/x11/py-qt3-sip

Because it already exists:
$  ll /usr/local/pkgwork/x11/py-qt3-sip/work.loonquawl/.buildlink/lib/pkgconfig/xextensions.pc
lrwxrwxrwx   1 build    build         37 Aug 31 19:15 /usr/local/pkgwork/x11/py-qt3-sip/work.loonquawl/.buildlink/lib/pkgconfig/xextensions.pc -> /usr/pkg/lib/pkgconfig/xextensions.pc

I haven't found where that's coming from yet.