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, Sep 07, 2016 at 11:04:16AM -0400, D'Arcy J.M. Cain wrote:
 > --- 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?

You can put @PREFIX@ in the patch and then SUBST the patched file;
this is not really recommended in general because people using
mkpatches tend to blindly stuff already-SUBST'd versions back, but
it's better than nothing.

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index