NetBSD Problem Report #48294
From bad@bsd.de Wed Oct 9 11:49:17 2013
Return-Path: <bad@bsd.de>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 6A2E4711A4
for <gnats-bugs@gnats.NetBSD.org>; Wed, 9 Oct 2013 11:49:17 +0000 (UTC)
Message-Id: <20131009134858.E3769545F@falling-outside-the-normal-moral-constraints.k.bsd.de>
Date: Wed, 9 Oct 2013 13:48:58 +0000 (UTC)
From: bad@bsd.de
Reply-To: bad@bsd.de
To: gnats-bugs@gnats.NetBSD.org
Subject: reduce-depends fails ungracefully
X-Send-Pr-Version: 3.95
>Number: 48294
>Category: pkg
>Synopsis: reduce-depends fails ungracefully if dependency dir is missing and leaves junk behind
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Oct 09 11:50:00 +0000 2013
>Closed-Date: Sat Mar 08 11:46:59 +0000 2014
>Last-Modified: Sat Mar 08 11:50:00 +0000 2014
>Originator: Christoph Badura
>Release: NetBSD 5.2_STABLE
>Organization:
bozotic software testing labs
>Environment:
System: NetBSD falling-outside-the-normal-moral-constraints 5.2_STABLE NetBSD 5.2_STABLE (thinkpad-x500) #8: Sat Oct 5 15:40:57 UTC 2013 bad@falling-outside-the-normal-moral-constraints:/m/src/sys/arch/i386/compile/thinkpad-x500 i386
Architecture: i386
Machine: i386
Pkgsrc: pkgsrc-2013Q3
>Description:
I tried to build misc/libreoffice4 on pkgsrc-2013Q3 branch.
I had forgotten to "pull up" databases/hsqldb18.
That lead to the follwing error:
ERROR: [reduce-depends.awk] ../../databases/hsqldb18 does not exist.
*** Error code 1
Stop.
That's expected. What surprised me, is that bad dependency information
was left behind in WRKDIR. Restarting the build after "pulling up" hsqldb
lead to compile errors because dependencies weren't installed.
>How-To-Repeat:
Check out pkgsrc-2013Q3 branch. Start from an empty /usr/pkg.
cvs up -dPA misc/libreoffice4
cvs up -dPA fonts/harfbuzz
cd misc/libreoffice4 && make update UPDATE_TARGET=package-install
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: obache@NetBSD.org
State-Changed-When: Fri, 07 Feb 2014 09:18:54 +0000
State-Changed-Why:
So what is the your expected behavior?
It is unwanted situation, source tree had been changed during package build.
From: Christoph Badura <bad@bsd.de>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org,
obache@NetBSD.org
Subject: Re: pkg/48294 (reduce-depends fails ungracefully if dependency dir
is missing and leaves junk behind)
Date: Tue, 25 Feb 2014 18:17:44 +0100
On Fri, Feb 07, 2014 at 09:18:54AM +0000, obache@NetBSD.org wrote:
> So what is the your expected behavior?
The expected behaviour is that when reduce-depends.awk aborts with an
error no bad dependency information is left behind.
It could not correctly generate the output file(s). So it shouldn't leave
the WRKDIR in a state that indicates the output file(s) were correctly
generated.
--chris
State-Changed-From-To: feedback->closed
State-Changed-By: obache@NetBSD.org
State-Changed-When: Sat, 08 Mar 2014 11:46:59 +0000
State-Changed-Why:
Fixed.
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/48294 CVS commit: pkgsrc/mk/pkgformat/pkg
Date: Sat, 8 Mar 2014 11:46:14 +0000
Module Name: pkgsrc
Committed By: obache
Date: Sat Mar 8 11:46:14 UTC 2014
Modified Files:
pkgsrc/mk/pkgformat/pkg: depends.mk
Log Message:
Clean up target file if failed.
fixes PR pkg/48294.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/mk/pkgformat/pkg/depends.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(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.