Bug 170456

Summary: 'pkg_add -K' uses PKGDIR environment variable that conflicts with ports(7) building
Product: Base System Reporter: Kimmo Paasiala <kpaasial>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed Overcome By Events    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Kimmo Paasiala 2012-08-07 16:50:03 UTC
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.

Fix: 

Possibly change 'pkg_add -K' to use the PACKAGES variable.
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.
Comment 1 Kimmo Paasiala 2012-08-07 16:57:59 UTC
In how-to-repeat, ignore the 'make.conf' and 'make command line'
-parts, pkg_add(1) only pays attention to environment variables.