Subject: pkg/18879: "make install" problems with OBJMACHINE in the environment
To: None <gnats-bugs@gnats.netbsd.org>
From: Simon Burge <simonb@wasabisystems.com>
List: netbsd-bugs
Date: 11/01/2002 02:46:53
>Number:         18879
>Category:       pkg
>Synopsis:       "make install" problems with OBJMACHINE in the environment
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 31 19:08:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6J, with up-to-date pkgsrc as of November 1, 2002
>Organization:
Wasabi Systems
>Environment:
	System: NetBSD rbtx4927 1.6J NetBSD 1.6J (RBTX4927)
	#23: Fri Nov 1 12:48:24 EST 2002
	simonb@thoreau.thistledown.com.au:/var/tmp/RBTX4927 evbmips
	Architecture: mipseb
	Machine: evbmips
>Description:
	If I have OBJMACHINE="" in the environment and no /etc/mk.conf,
	then "make" builds a "work.ARCH" directory but "make install"
	fails because it can't change to a "work" directory to do
	the install.

	rbtx4927 49> make install
	...
	rbtx4927 50> make install
	===> Installing for osname-1.1
	===> Becoming root@rbtx4927 to install osname-1.1.
	/usr/bin/su cd: can't cd to /NetBSD/pkgsrc/sysutils/osname/work/osname-1.1
	*** Error code 2
	...
	rbtx4927 51> ls
	CVS/       DESCR      Makefile   PLIST      distinfo   work.mipseb/


>How-To-Repeat:
	make sure no OBJMACHINE is in /etc/mk.conf, put OBJMACHINE=""
	in your environment, and "make ; make install" in a package
	directory (it doesn't seem to matter which one).

>Fix:
	None given.
>Release-Note:
>Audit-Trail:
>Unformatted: