Subject: misc/2260: BSDSRCDIR and BSDOBJDIR are getting ignored
To: None <gnats-bugs@NetBSD.ORG>
From: Thorsten Frueauf <frueauf@ira.uka.de>
List: netbsd-bugs
Date: 03/24/1996 16:33:36
>Number: 2260
>Category: misc
>Synopsis: BSDSRCDIR and BSDOBJDIR are getting ignored
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: misc-bug-people (Misc Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Mar 25 09:35:02 1996
>Last-Modified:
>Originator: Thorsten Frueauf
>Organization:
private
>Release: <NetBSD-current source date> NetBSD current 23.03.1996
>Environment:
System: NetBSD di_frueauf 1.1B NetBSD 1.1B (CYBERDYNE) #1: Tue Mar 19 21:45:06 GMT 1996 milano@di_frueauf:/home/milano/source/netbsd-src/sys/arch/amiga/compile/CYBERDYNE amiga
>Description:
If you set BSDSRCDIR and BSDOBJDIR in your environment it gets somehow ignored
by `make obj`. Thus if you want objects getting stored in /usr/obj for using
/src on multible hosts you get in trouble.
>How-To-Repeat:
[milano@cybersil]/# ls -la /usr/src
lrwxrwxrwx 1 root wheel 8 Mar 24 16:10 /usr/src -> /amd/src
[milano@cybersil]/# ls -la /usr/obj
lrwxrwxrwx 1 root wheel 8 Mar 24 16:23 /usr/obj -> /amd/obj
[milano@cybersil]/# setenv BSDSRCDIR `cd /usr/src; pwd`
[milano@cybersil]/# setenv BSDOBJDIR `cd /usr/obj; pwd`
[milano@cybersil]/# cd /src/bin/cat
[milano@cybersil]/src/bin/cat# make cleandir
rm -f a.out [Ee]rrs mklog core *.core cat cat.o cat.ln
rm -f cat.cat1
rm -f .depend /src/bin/cat/tags
[milano@cybersil]/src/bin/cat# make obj
making /src/bin/cat/obj
-rw-r--r-- 1 root wheel 129 May 30 1995 Makefile
-rw-r--r-- 1 root wheel 3748 Oct 2 15:46 cat.1
-rw-r--r-- 1 root wheel 3749 Sep 12 1995 cat.1.orig
-rw-r--r-- 1 root wheel 6013 Sep 12 1995 cat.c
-rw-r--r-- 1 root wheel 6013 Mar 21 1995 cat.c.orig
drwxr-xr-x 2 root wheel 512 Mar 24 17:31 obj
There you have a obj directory in /src/bin/cat instead of a link to
/usr/obj/bin/cat !
>Fix:
Dunno about the /src/share/mk/* magic, sorry :-(
>Audit-Trail:
>Unformatted:
BSDSRCDIR and BSDOBJDIR are getting ignored