Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Jun 2012 10:15:33 -0700
From:      Doug Barton <dougb@FreeBSD.org>
To:        freebsd-current <freebsd-current@FreeBSD.org>
Subject:   PORTS_MODULES fix
Message-ID:  <4FD384B5.3050709@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------000206090006090105060102
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

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?

Doug

-- 

    This .signature sanitized for your protection

--------------000206090006090105060102
Content-Type: text/plain; charset=UTF-8;
 name="kern.post.mk.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="kern.post.mk.diff"

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}
+PORTSMODULESENV=SYSDIR=${SYSDIR} PATH=${PATH}:/usr/local/bin:/usr/local/sbin
 .for __target in all install reinstall clean
 ${__target}: ports-${__target}
 ports-${__target}:

--------------000206090006090105060102--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FD384B5.3050709>