NetBSD Problem Report #10338

Received: (qmail 3072 invoked from network); 10 Jun 2000 23:46:22 -0000
Message-Id: <200006102346.e5ANkKG00397@opus.augustsson.net>
Date: Sun, 11 Jun 2000 01:46:20 +0200 (CEST)
From: augustss@augustsson.net
Reply-To: augustss@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Subject: /usr/obj cannot be a symbolic link
X-Send-Pr-Version: 3.95

>Number:         10338
>Category:       misc
>Synopsis:       /usr/obj cannot be a symbolic link
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 10 23:47:00 +0000 2000
>Closed-Date:    Fri Jul 02 04:13:06 +0000 2004
>Last-Modified:  Fri Jul 02 04:13:06 +0000 2004
>Originator:     Lennart Augustsson
>Release:        20000611
>Organization:
>Environment:
System: NetBSD opus 1.4ZA NetBSD 1.4ZA (OPUS) #1: Wed Jun 7 23:53:25 CEST 2000 augustss@opus:/usr/src/sys/arch/i386/compile/OPUS i386


>Description:
	If /usr/obj is a symbolic link then `cd /usr/src; make obj' does
	not create any directories in /usr/obj.
>How-To-Repeat:
	Just try it.
>Fix:
	Not known.
>Release-Note:
>Audit-Trail:

From: matthew green <mrg@eterna.com.au>
To: augustss@augustsson.net
Cc: gnats-bugs@gnats.netbsd.org
Subject: re: misc/10338: /usr/obj cannot be a symbolic link 
Date: Sun, 11 Jun 2000 15:09:10 +1000



    >Description:
    	If /usr/obj is a symbolic link then `cd /usr/src; make obj' does
    	not create any directories in /usr/obj.
    >How-To-Repeat:
    	Just try it.
    >Fix:
    	Not known.


 hmm.. this works for me.  well, i have it slightly differently, with
 this in mk.conf:

 	BSDOBJDIR?=  /var/obj
 	OBJMACHINE?= yes

 and this:

 lrwxrwxr-x  1 root  wheel  20 May 22 11:47 /var/obj.alpha@ -> /orb/t/mrg/obj.alpha


 and has been working like this for several years.           

From: Lennart Augustsson <lennart@augustsson.net>
To: matthew green <mrg@eterna.com.au>
Cc: augustss@augustsson.net, gnats-bugs@gnats.netbsd.org
Subject: Re: misc/10338: /usr/obj cannot be a symbolic link
Date: Sun, 11 Jun 2000 11:29:44 +0200

 matthew green wrote:

 > hmm.. this works for me.  well, i have it slightly differently, with
 > this in mk.conf:
 >
 >         BSDOBJDIR?=  /var/obj
 >         OBJMACHINE?= yes

 Yes, that works.  But I want /usr/obj to be a symbolic link, and that
 doesn't work.

 --

         -- Lennart




From: Frederick Bruckman <fb@enteract.com>
To: augustss@augustsson.net
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: misc/10338: /usr/obj cannot be a symbolic link
Date: Sun, 11 Jun 2000 04:48:24 -0500 (CDT)

 On Sun, 11 Jun 2000 augustss@augustsson.net wrote:

 > >Description:
 > 	If /usr/obj is a symbolic link then `cd /usr/src; make obj' does
 > 	not create any directories in /usr/obj.
 > >How-To-Repeat:
 > 	Just try it.

 You need to set BSDOBJDIR to the the real path to the obj tree,
 per /usr/share/mk/bsd.README, also BSDSRCDIR to the real path to
 the source tree.

 Frederick


From: Lennart Augustsson <lennart@augustsson.net>
To: Frederick Bruckman <fb@enteract.com>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: misc/10338: /usr/obj cannot be a symbolic link
Date: Sun, 11 Jun 2000 16:10:19 +0200

 Frederick Bruckman wrote:

 > On Sun, 11 Jun 2000 augustss@augustsson.net wrote:
 >
 > > >Description:
 > >       If /usr/obj is a symbolic link then `cd /usr/src; make obj' does
 > >       not create any directories in /usr/obj.
 > > >How-To-Repeat:
 > >       Just try it.
 >
 > You need to set BSDOBJDIR to the the real path to the obj tree,
 > per /usr/share/mk/bsd.README, also BSDSRCDIR to the real path to
 > the source tree.

 Yes, I know I need to do this.  But I think that's a bug.  Why do I need to
 do this?  Symbolic links should "just work".

 --

         -- Lennart



State-Changed-From-To: open->closed 
State-Changed-By: jmc 
State-Changed-When: Fri Jul 2 04:12:14 UTC 2004 
State-Changed-Why:  
This works just fine w. current source: 

(I have no mk.conf) 

ls -ld /usr/obj  
lrwxr-xr-x  1 root  wheel  11 Jul  1 23:10 /usr/obj -> /local0/obj 

cd /usr/src 
build.sh -U -u -O /usr/obj/i386-2/obj 

obj ===> tools/host-mkdep 
#    objdir  /usr/obj/i386-2/obj/tools/host-mkdep 
obj ===> tools/compat 
#    objdir  /usr/obj/i386-2/obj/tools/compat 
... 

ls -ld /usr/obj/i386-2/obj/tools/host-mkdep 
drwxr-xr-x  2 jmc  wheel  512 Jul  1 23:11 /usr/obj/i386-2/obj/tools/host-mkdep 

Real directories show up. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.