NetBSD Problem Report #34836

From tv@server.duh.org  Mon Oct 16 20:59:35 2006
Return-Path: <tv@server.duh.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 9393D63B874
	for <gnats-bugs@gnats.netbsd.org>; Mon, 16 Oct 2006 20:59:35 +0000 (UTC)
Message-Id: <200610161957.k9GJvuvW006967@server.duh.org>
Date: Mon, 16 Oct 2006 15:57:56 -0400 (EDT)
From: tv@pobox.com
Reply-To: tv@pobox.com
To: gnats-bugs@NetBSD.org
Subject: undo-replace is nonfunctional when new PKGNAME != old PKGNAME
X-Send-Pr-Version: 3.95

>Number:         34836
>Category:       pkg
>Synopsis:       undo-replace is nonfunctional when new PKGNAME != old PKGNAME
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 16 21:00:00 +0000 2006
>Last-Modified:  Sun Mar 21 16:10:21 +0000 2010
>Originator:     Todd Vierling
>Release:        NetBSD 2.1.0_STABLE
>Organization:
DUH.ORG:  Pointing out the obvious since 1994.
>Environment:
N/A

>Description:

"make undo-replace" does not work if the original package version was not
identical to the one being installed by "make replace".  Due to the
hyper-overloading of the oldname/newname files in flavor/pkg/replace.mk,
the oldname doesn't even exist anywhere once "undo-replace-names" runs
(as that clobbers the oldname file with the new package name).

>How-To-Repeat:

Install a package, say, "somepkg-1.0".

In pkgsrc reflecting a new version, say, "somepkg-1.1", do "make replace".

"make undo-replace".

See "Re-adding somepkg-1.1 ..." and an error, where it should have
re-added "somepkg-1.0".

>Fix:

I started to work on this, but got lost in the reused code of replace-*
centered around the reuse of the oldname/newname files.  Perhaps instead
a separate "from"/"to" name pair should be used for the shared ops?

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->jlam
Responsible-Changed-By: tv@netbsd.org
Responsible-Changed-When: Tue, 17 Oct 2006 13:49:21 +0000
Responsible-Changed-Why:
jlam is most likely to know how to fix this, as he made flavor/pkg/replace.mk
and the related glue....


Responsible-Changed-From-To: jlam->pkg-manager
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Sun, 21 Mar 2010 16:10:21 +0000
Responsible-Changed-Why:
Back to role account, jlam lost his commit bit.


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