NetBSD Problem Report #33339

From reed@rainier.reedmedia.net  Sat Apr 22 21:39:20 2006
Return-Path: <reed@rainier.reedmedia.net>
Received: from pilchuck.reedmedia.net (pilchuck.reedmedia.net [209.166.74.74])
	by narn.netbsd.org (Postfix) with ESMTP id 792F263B8A5
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 22 Apr 2006 21:39:20 +0000 (UTC)
Message-Id: <26330-1145741957@rainier.reedmedia.net>
Date: Sat, 22 Apr 2006 14:39:22 -0700
From: reed@reedmedia.net
Reply-To: reed@reedmedia.net
To: gnats-bugs@netbsd.org
Subject: if can't change directory, pkgsrc should not continue
X-Send-Pr-Version: 3.95

>Number:         33339
>Category:       pkg
>Synopsis:       pkgsrc should not continue when directories do not exist
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 22 21:40:03 +0000 2006
>Last-Modified:  Sat Apr 22 23:35:01 +0000 2006
>Originator:     reed@reedmedia.net
>Release:        NetBSD 2.1
>Organization:
http://bsd.reedmedia.net/
>Environment:


System: NetBSD rainier.reedmedia.net 2.1 NetBSD 2.1 (GENERIC) #0: Mon Oct 24 22:35:45 UTC 2005 jmc@faith.netbsd.org:/home/builds/ab/netbsd-2-1-RELEASE/i386/200510241747Z-obj/home/builds/ab/netbsd-2-1-RELEASE/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
pkgsrc has many cd to some directory and just assumes that works
and continues to next step.

This has caused my configure steps to move my pkgsrc Makefile.

This has caused my make clean-depends to end up cleaning entire pkgsrc tree.

And more.
>How-To-Repeat:
One example was on pkgsrc-users today:

cd /usr/pkgsrc/graphics/xpm
make extract
make CLEANDEPENDS=YES clean install

(Another problem there too.)

>Fix:
and others


>Audit-Trail:
From: Roland Illig <rillig@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/33339: if can't change directory, pkgsrc should not continue
Date: Sun, 23 Apr 2006 01:33:17 +0200

 reed@reedmedia.net wrote:
 > pkgsrc has many cd to some directory and just assumes that works
 > and continues to next step.
 > 
 > This has caused my configure steps to move my pkgsrc Makefile.
 > 
 > This has caused my make clean-depends to end up cleaning entire pkgsrc tree.
 > 
 > And more.
 > 
 >>How-To-Repeat:
 > 
 > One example was on pkgsrc-users today:
 > 
 > cd /usr/pkgsrc/graphics/xpm
 > make extract
 > make CLEANDEPENDS=YES clean install

 It's quite simple. Run "pkglint -Wnone,extra /usr/pkgsrc/mk/bsd.pkg.mk" 
 and fix all warnings that say "A semicolon should only be used to 
 separate commands after switching to "set -e" mode." After that is done, 
 things will be much better.

 Roland

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.