pkgsrc-Users archive

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

Re: The sad state of pkgsrc [was Re: pkgsrc NetBSD 7.0.1_PATCH/x86_64 2016-09-04 11:03]

On Wed, 7 Sep 2016 16:21:43 +0200
Joerg Sonnenberger <> wrote:
> > > On the other hand I did just build this on -current and it built
> > > OK for 2.7.  I am not sure where the above error comes from.  
> > 
> > Never mind.  I missed the warnings.  I thought that this was a list
> > of packages that did not build.  
> It is. I just reduced the verbose build logs to the most likely source
> of each failure. Note that this is a regular X11_TYPE=native build,
> so X libraries are *not* found in /usr/pkg.

But it did build for me.  I am not sure if it would have run properly
though.  Anyway, I have some patches to move to 0.59 but I still needed
to add a few buildlinks:     gd>=2.0.23
 .include "../../graphics/gd/"
+.include "../../graphics/giflib/"
+.include "../../x11/Xaw-Xpm/"
 .include "../../lang/python/"
 .include "../../mk/"

I also needed a patch:


Hard code /usr/pkg directories.

--- 2015-12-01 15:03:03.000000000 +0000
@@ -44,28 +44,16 @@ libdirs = dirtest([
     "/usr/lib/i386-linux-gnu", "/usr/lib/x86_64-linux-gnu",
     "/usr/lib/X11", "/usr/X11R6/lib",
+    "/usr/pkg/lib",
-    exotic_libdir = commands.getoutput("gdlib-config --libdir"),
-    libdirs += exotic_libdir
-    pass

and similar for includes.  The problem is that gdlib-config no longer
works so I hard coded "/usr/pkg/..."  Is there some way to do a
substitution in the patch file so that I can use ${PREFIX} instead?

D'Arcy J.M. Cain <> IM:darcy%Vex.Net@localhost

Home | Main Index | Thread Index | Old Index