How to correctly reference WRKSRC of another port?

2021-05-24 Thread Philipp Ost
Hi everyone, I'm currently working on a port (my first ;-)) which has a (optional) build time dependency on the sources of math/nauty. Currently, I've hardwired '/usr/ports/math/nauty/work/nauty27r1' as argument to the configure script, but that's clearly not the way to do it. The Porter's

Re: How to correctly reference WRKSRC of another port?

2021-05-24 Thread Jan Beich
Philipp Ost writes: > The Porter's Handbook mentions using WRKDIRPREFIXPORTSDIR [0], but > that does not work. A search for WRKDIRPREFIXPORTSDIR in /usr/ports/Mk > comes up empty. Do I explicitly have to define this variable? That's a typo: WRKDIRPREFIXPORTSDIR -> WRKDIRPREFIX + PORTSDIR > I've

Re: How to correctly reference WRKSRC of another port?

2021-05-24 Thread Tatsuki Makino
Hello. That would mean ${WRKDIRPREFIX}${PORTSDIR}, wouldn't it? The same goes for https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253721 :) Philipp Ost wrote on 2021/05/25 03:16: > The Porter's Handbook mentions using WRKDIRPREFIXPORTSDIR [0], but that does > not work. A search for WRKDIRPREF

Lot's of REINPLACE_CMD versus patch

2021-05-24 Thread Nuno Teixeira
Hello! I'm working on a new port that have a lot of REINPLACE_CMDs and I'm getting a lot of warnings saying, e.g.: "REINPLACE_CMD ran, but did not modify file contents: NsCDE/config/NsCDE-Font-120dpi.conf.bak.bak.bak.bak" And this waring shows that this particular file was changed four times! I'

Re: Lot's of REINPLACE_CMD versus patch

2021-05-24 Thread Mathieu Arnold
On Tue, May 25, 2021 at 07:02:36AM +0100, Nuno Teixeira wrote: > Hello! > > I'm working on a new port that have a lot of REINPLACE_CMDs and I'm getting > a lot of warnings saying, e.g.: > "REINPLACE_CMD ran, but did not modify file contents: > NsCDE/config/NsCDE-Font-120dpi.conf.bak.bak.bak.bak" >

Re: Lot's of REINPLACE_CMD versus patch

2021-05-24 Thread Nuno Teixeira
Hello Mathieu, Just a part of .post-install I have the files in directory "config" with 9 REINPLACE_CMDs applied! Isn't better to use patches in this case? one patch for each file with this 9 changes? Thanks Mathieu Arnold escreveu no dia terça, 25/05/2021 à(s) 07:28: > On Tue, May 25, 2021 at