Subject: Re: Debugging a buildlink wrapper problem?
To: walt <wa1ter@myrealbox.com>
From: Geert Hendrickx <geert.hendrickx@ua.ac.be>
List: tech-pkg
Date: 08/07/2005 22:59:51
On Sun, Aug 07, 2005 at 01:45:34PM -0700, walt wrote:
> On Sun, 2005-08-07 at 21:13 +0200, Dieter Baron wrote:
> > In article <1123441256.17995.21.camel@k9.localnet> walt wrote:
> > : I'm trying to help Geert get the jdk14 package working, and I have
> > : this puzzle:
> > 
> > : /usr/pkgsrc/wip/jdk14/work/.wrapper/bin/g++
> > : -I/usr/pkg/include/mozilla/nspr <other-flags-snipped> foo.cpp
> > 
> > : The above command gives me a missing header error for a header
> > : which *absolutely* exists in the specified 'nspr' directory.
> > : In other words:  the error is completely bogus.  But why?
> > 
> >   Does the header exist in ${WRKDIR}/.buildlink/include/mozilla/nspr?
> 
> Yes!  That was the problem.
> 
> This is exactly what I did to fix it:
> 
> # cd /usr/pkgsrc/wip/jdk14/work/.buildlind/include
> # mkdir mozilla
> # cd mozilla
> # ln -s /usr/pkg/include/mozilla/nspr nspr
> 
> Given the information above, can you suggest what changes should be made
> to the jdk14 package?  (Is it really as simple as including the buildlink
> file from mozilla?  I can't see how it would help, but please 'splain it
> to me :o)

Good news!  Now we must make it work with any of the Mozilla/Firefox
packages.  As they each have their own buildink3.mk file, I think we could
best make it an option on which to depend.  

I'll look at it.  

GH