From nobody@FreeBSD.org  Tue Aug  7 15:44:03 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 DE1541065670
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  7 Aug 2012 15:44:03 +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 C88BF8FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  7 Aug 2012 15:44:03 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q77Fi3pG047475
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 7 Aug 2012 15:44:03 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q77Fi33f047474;
	Tue, 7 Aug 2012 15:44:03 GMT
	(envelope-from nobody)
Message-Id: <201208071544.q77Fi33f047474@red.freebsd.org>
Date: Tue, 7 Aug 2012 15:44:03 GMT
From: Kimmo Paasiala <kpaasial@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: 'pkg_add -K' uses PKGDIR environment variable that conflicts with ports(7) building
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         170456
>Category:       bin
>Synopsis:       'pkg_add -K' uses PKGDIR environment variable that conflicts with ports(7) building
>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:   Tue Aug 07 15:50:03 UTC 2012
>Closed-Date:    
>Last-Modified:  Tue Aug  7 16:00:05 UTC 2012
>Originator:     Kimmo Paasiala
>Release:        9-STABLE
>Organization:
>Environment:
FreeBSD fileserver.joesgarage 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0: Sat Aug  4 13:47:31 EEST 2012     kimmo@fileserver.houseofevil:/usr/obj/usr/src/sys/FILESERVER  i386
>Description:
pkg_add(1) uses the PKGDIR environment variable to direct the saved packages to a directory. However the variable conflicts with the PKGDIR variable used in ports(7) building.
>How-To-Repeat:
Set PKGDIR variable in enviroment, /etc/make.conf or on make command line to a directory for use with 'pkg_add -K' and try to build any port.
>Fix:
Possibly change 'pkg_add -K' to use the PACKAGES variable.

>Release-Note:
>Audit-Trail:

From: Kimmo Paasiala <kpaasial@gmail.com>
To: bug-followup@FreeBSD.org, kpaasial@gmail.com
Cc:  
Subject: Re: bin/170456: &#39;pkg_add -K&#39; uses PKGDIR environment variable
 that conflicts with ports(7) building
Date: Tue, 7 Aug 2012 18:57:59 +0300

 In how-to-repeat, ignore the 'make.conf' and 'make command line'
 -parts, pkg_add(1) only pays attention to environment variables.
>Unformatted:
