NetBSD Problem Report #7893

Received: (qmail 3242 invoked from network); 2 Jul 1999 01:14:04 -0000
Message-Id: <199907020112.SAA21233@lethe.anim.dreamworks.com>
Date: Thu, 1 Jul 1999 18:12:32 -0700 (PDT)
From: ahorn@anim.dreamworks.com
Reply-To: ahorn@anim.dreamworks.com
To: gnats-bugs@gnats.netbsd.org
Subject: possible bug in pkgsrc 'make clean' target
X-Send-Pr-Version: 3.95

>Number:         7893
>Category:       pkg
>Synopsis:       make clean does not work correctly when WRKOBJDIR defined
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 01 18:20:00 +0000 1999
>Closed-Date:    Sun Oct 17 03:11:02 +0000 1999
>Last-Modified:  Sun Oct 17 03:11:50 +0000 1999
>Originator:     Alan Horn
>Release:        NetBSD 1.4 i386
>Organization:
Dreamworks Animation
>Environment:

System: NetBSD lethe 1.4 NetBSD 1.4 (GENERIC) #0: Fri May 7 12:27:31 PDT 1999 perry@cynic.cynic.net:/usr/src/sys/arch/i386/compile/GENERIC i386

RCS lines from pkgsrc/mk/*.mk
bsd.pkg.mk:#    $NetBSD: bsd.pkg.mk,v 1.286 1999/06/28 11:42:28 agc Exp $
bsd.pkg.subdir.mk:#     $NetBSD: bsd.pkg.subdir.mk,v 1.29 1999/06/28 11:42:29 agc Exp $
bsd.prefs.mk:# $NetBSD: bsd.prefs.mk,v 1.9 1999/06/23 17:06:21 christos Exp $

>Description:

If the variable WRKOBJDIR is set in /etc/mk.conf 
(e.g. WRKOBJDIR=/usr/obj/pkgobj), normally /usr/pkgsrc/blah/package/work
becomes a symbolic link to a subdirectry of WRKOBJDIR.

A 'make clean' in the pkgsrc package directory only seems to remove the
work link, but leaves all the data within WRKOBJDIR intact. A subsequent
make will create the link, and then see all of the intact files, including
the work/.??*_done files, so no action is performed, even though make
will report the steps as it undertakes (and falls through) them.

>How-To-Repeat:

Add WRKOBJDIR=/usr/obj/pkgobj into /etc/mk.conf

mkdir -p /usr/obj/pkgobj

cd into a package (e.g. apache), make sure no work directory exists 
(since make will try to create a symbolic link)

make
make clean
ls /usr/obj/pkgobj/path/to/your/selected/package
make

observe the incredible new compiling speed of your machine... :)

>Fix:

Tidy relevant directories and source from WRKOBJDIR by hand

>Release-Note:
>Audit-Trail:

From: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
To: ahorn@anim.dreamworks.com
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/7893: possible bug in pkgsrc 'make clean' target
Date: Fri, 2 Jul 1999 12:31:49 +0200 (MET DST)

 On Thu, 1 Jul 1999 ahorn@anim.dreamworks.com wrote:
 > make
 > make clean
 > ls /usr/obj/pkgobj/path/to/your/selected/package
 > make

 ``works for me''

 Maybe there's a problem in the "make clean" because of some files in
 $WRKDIR created as root via 'su-on-demand'? I've tried the above as both
 "normal" user and root, and I did not experience what you observe.

 I've tried this with bsd.pkg.mk 1.286 on a 1.4/i386 machine.


  - Hubert

 -- 
 NetBSD - Better for your uptime than Viagra


From: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
To: ahorn@anim.dreamworks.com
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/7893: possible bug in pkgsrc 'make clean' target
Date: Tue, 20 Jul 1999 03:04:14 +0200 (MET DST)

 Hello,

 Is the problem you described in PR 7893 ("make clean" with WRKOBJDIR set
 only removes symlink, but not workdir) still of an issue for you, or did
 my hint maybe help you?

 If so, I'll close the PR if I don't hear back in a few days.


  - Hubert

 -- 
 NetBSD - Better for your uptime than Viagra

State-Changed-From-To: open->closed 
State-Changed-By: hubertf 
State-Changed-When: Sat Oct 16 20:11:02 PDT 1999 
State-Changed-Why:  

I'm glad my hint was helpful for you. Per our previsou 
discussion, I'm closing the PR.  


- Hubert 
>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.