From nobody@FreeBSD.org  Wed Oct 24 16:54:53 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 6F6A13DA
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 24 Oct 2012 16:54:53 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 55D418FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 24 Oct 2012 16:54:53 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q9OGsrNq066186
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 24 Oct 2012 16:54:53 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id q9OGsrhB066185;
	Wed, 24 Oct 2012 16:54:53 GMT
	(envelope-from nobody)
Message-Id: <201210241654.q9OGsrhB066185@red.freebsd.org>
Date: Wed, 24 Oct 2012 16:54:53 GMT
From: Garrett Cooper <yaneurabeya@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] pass through install as INSTALL when building PORTS_MODULES
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         173031
>Category:       misc
>Synopsis:       [build] [patch] pass through install as INSTALL when building PORTS_MODULES
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 24 17:00:01 UTC 2012
>Closed-Date:    
>Last-Modified:  Sun Feb 03 22:31:15 UTC 2013
>Originator:     Garrett Cooper
>Release:        10-CURRENT
>Organization:
EMC Isilon
>Environment:
FreeBSD fallout-atf-current.local 10.0-CURRENT FreeBSD 10.0-CURRENT #3: Mon Oct 22 10:30:54 PDT 2012     root@fallout-atf-current.local:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
Some third party software built upon autotools depends on install(1) to be an all singing and dancing version. This isn't the case when building PORTS_MODULES from the base system with some packages (fusefs-kmod, open-vm-tools, etc). The attached patch explicitly sets INSTALL to install (the default in ports) so some 3rd party packages can once again be built via PORTS_MODULES properly.
>How-To-Repeat:
1. Install FreeBSD CURRENT on a VM.
2. cd /usr/src && make buildworld && make buildkernel PORTS_MODULES=emulators/open-vm-tools WITH_FUSE=y
>Fix:


Patch attached with submission follows:

Index: sys/conf/kern.post.mk
===================================================================
--- sys/conf/kern.post.mk	(revision 241518)
+++ sys/conf/kern.post.mk	(working copy)
@@ -56,6 +56,7 @@
 # Keep the related ports builds in the obj directory so that they are only rebuilt once per kernel build
 WRKDIRPREFIX?=	${MAKEOBJDIRPREFIX}${SRC_BASE}/sys/${KERNCONF}
 PORTSMODULESENV=\
+	INSTALL=install \
 	PATH=${PATH}:${LOCALBASE}/bin:${LOCALBASE}/sbin \
 	SRC_BASE=${SRC_BASE} \
 	OSVERSION=${OSRELDATE} \


>Release-Note:
>Audit-Trail:

From: Garrett Cooper <yaneurabeya@gmail.com>
To: bug-followup@FreeBSD.org, yanegomi@gmail.com
Cc:  
Subject: Re: misc/173031: [patch] pass through install as INSTALL when
 building PORTS_MODULES
Date: Wed, 24 Oct 2012 10:15:06 -0700

 Correction: when I said this:
 
 "(the default in ports)"
 
 I should have said this:
 
 "(the default in the base system)"
 
 Thanks!
 -Garrett
>Unformatted:
