tech-pkg 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 <joerg%bec.de@localhost> 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:
BUILDLINK_API_DEPENDS.gd+= gd>=2.0.23
.include "../../graphics/gd/buildlink3.mk"
+.include "../../graphics/giflib/buildlink3.mk"
+.include "../../x11/Xaw-Xpm/buildlink3.mk"
.include "../../lang/python/distutils.mk"
.include "../../mk/bsd.pkg.mk"
I also needed a patch:
$NetBSD$
Hard code /usr/pkg directories.
--- setup.py.orig 2015-12-01 15:03:03.000000000 +0000
+++ setup.py
@@ -44,28 +44,16 @@ libdirs = dirtest([
"/usr/lib/i386-linux-gnu", "/usr/lib/x86_64-linux-gnu",
"/usr/lib/X11", "/usr/X11R6/lib",
"/opt/gnome/lib",
+ "/usr/pkg/lib",
])
-try:
- exotic_libdir = commands.getoutput("gdlib-config --libdir"),
- libdirs += exotic_libdir
-except:
- 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 <darcy%NetBSD.org@localhost>
http://www.NetBSD.org/ IM:darcy%Vex.Net@localhost
Home |
Main Index |
Thread Index |
Old Index