Doug Barton dougb at FreeBSD.org
Sat Jun 9 17:15:57 UTC 2012

I have recently tried the PORTS_MODULES knob, and found a problem. The
ports tree searches for some dependencies by finding a binary in PATH,
and that fails since by default /usr/local/ isn't there. The attached
patch fixes that problem.

It would be more robust to use PREFIX there instead of /usr/local
explicitly, but I'm not sure how to unravel the mk maze to get that
value. If anyone has a suggestion for that, I'd be happy to include it.

Any objections to making this change?



    This .signature sanitized for your protection
-------------- next part --------------
Index: kern.post.mk
--- kern.post.mk	(revision 236818)
+++ kern.post.mk	(working copy)
@@ -38,7 +38,7 @@
 # Handle out of tree ports 
 .if !defined(NO_MODULES) && defined(PORTS_MODULES)
+PORTSMODULESENV=SYSDIR=${SYSDIR} PATH=${PATH}:/usr/local/bin:/usr/local/sbin
 .for __target in all install reinstall clean
 ${__target}: ports-${__target}

More information about the freebsd-current mailing list