Subject: Re: x11/kdelibs3 needs gawk
To: Mark Davies <mark@mcs.vuw.ac.nz>
From: D'Arcy J.M. Cain <darcy@druid.net>
List: tech-pkg
Date: 02/26/2006 15:50:49
On Mon, 27 Feb 2006 09:18:16 +1300
Mark Davies <mark@mcs.vuw.ac.nz> wrote:
> On Monday 27 February 2006 02:59, segv@netctl.net wrote:
> > > > .if ${OPSYS} == "SunOS"
> > > > USE_TOOLS+=             gawk:pkgsrc
> > > > .endif
> 
> > > For some reason it failed to build and install gawk, I had to do it
> > > manually...
> >
> > I mean it didn't even attempt to build gawk, so x11/kdelibs3 failed to
> > build, since gawk was not available
> 
> Yeah,  kdelibs needs gawk on Solaris to handle the pkgsrc processing itself as 
> the system awk can't handle (the length of) some of the lines that pkgsrc 
> produces hence the above, but adding the above causes it to try and use gawk 
> before its checked and handled the package dependency so if you don't already 
> have the gawk package installed it craps out, if it is installed then it 
> builds.  There is an open PR about this but I don't have any ideas for a fix.

How about this?

.if ${OPSYS} == "SunOS"
USE_TOOLS+=         gawk:pkgsrc
BUILD_DEPENDS +=    gawk-[0-9]*:../../lang/gawk
.endif

-- 
D'Arcy J.M. Cain <darcy@druid.net>         |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.