NetBSD Problem Report #18384
Received: (qmail 15136 invoked by uid 605); 23 Sep 2002 07:30:05 -0000
Message-Id: <200209240329.g8O3TtT04137@mofo.grunta.com>
Date: Tue, 24 Sep 2002 13:29:55 +1000 (EST)
From: grant@netbsd.org
Sender: gnats-bugs-owner@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Subject: pkg_delete does not completely remove packages
X-Send-Pr-Version: 3.95
>Number: 18384
>Category: pkg
>Synopsis: pkg_delete does not completely remove packages
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Sep 23 07:31:00 +0000 2002
>Closed-Date: Sat Nov 23 22:55:10 +0000 2002
>Last-Modified: Sun Nov 24 22:38:07 +0000 2002
>Originator: grant beattie
>Release: NetBSD 1.6H
>Organization:
>Environment:
System: NetBSD mofo 1.6H NetBSD 1.6H (MOFO.PROF) #0: Thu Sep 19 00:54:25 EST 2002 grant@mofo:/raid0/netbsd/current/src/sys/arch/i386/compile/MOFO.PROF i386
Architecture: i386
Machine: i386
>Description:
if pkg_delete is invoked while sitting in a directory that it will
remove, it doesn't completely remove the package.
This was found by doing the following:
# cd /etc/pkg/rc.d
# pkg_delete openssh
[stuff deleted]
pkg_delete: Toto! This doesn't look like Kansas anymore!
# pkg_info -e openssh
openssh-3.4.0.1
as 'sshd' was the only file in /etc/pkg/rc.d, the directory was
removed.
>How-To-Repeat:
see above.
>Fix:
workaround is to run pkg_delete again and ignore the warnings. real
fix is to make pkg_delete correctly and completely remove the package,
regardless of whether the cwd will be deleted or not (it doesn't
matter to most shells, and shouldn't matter to pkg_delete).
>Release-Note:
>Audit-Trail:
From: Jan Schaumann <jschauma@netbsd.org>
To: gnats-bugs@gnats.netbsd.org
Cc:
Subject: pr/18384 CVS commit: basesrc/usr.sbin/pkg_install
Date: Sun, 24 Nov 2002 00:31:20 +0200 (EET)
Module Name: basesrc
Committed By: jschauma
Date: Sat Nov 23 22:31:19 UTC 2002
Modified Files:
basesrc/usr.sbin/pkg_install/delete: perform.c
basesrc/usr.sbin/pkg_install/lib: version.h
Log Message:
Do not abort incomplete deletion if the cwd was removed. Instead, warn,
stay in no-longer existing dir and continue with removal of db-files;
otherwise, the packages contents would be removed, but the package not
uninstalled. Pointed out by Grant in PR pkg/18384. OK'd by hubertf.
To generate a diff of this commit:
cvs rdiff -r1.37 -r1.38 basesrc/usr.sbin/pkg_install/delete/perform.c
cvs rdiff -r1.18 -r1.19 basesrc/usr.sbin/pkg_install/lib/version.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Jan Schaumann <jschauma@netbsd.org>
To: gnats-bugs@gnats.netbsd.org
Cc:
Subject: pr/18384 CVS commit: pkgsrc/pkgtools/pkg_install
Date: Sun, 24 Nov 2002 00:49:49 +0200 (EET)
Module Name: pkgsrc
Committed By: jschauma
Date: Sat Nov 23 22:49:49 UTC 2002
Modified Files:
pkgsrc/pkgtools/pkg_install: Makefile distinfo
pkgsrc/pkgtools/pkg_install/patches: patch-aa patch-ad patch-aj
Log Message:
Upgrade to version 20021123, which fixes PR pkg/18384 by Grant.
Curiously, several of the patches required some changes -- have these
not been tested with the latest version of pkg_install?
To generate a diff of this commit:
cvs rdiff -r1.54 -r1.55 pkgsrc/pkgtools/pkg_install/Makefile
cvs rdiff -r1.21 -r1.22 pkgsrc/pkgtools/pkg_install/distinfo
cvs rdiff -r1.10 -r1.11 pkgsrc/pkgtools/pkg_install/patches/patch-aa
cvs rdiff -r1.5 -r1.6 pkgsrc/pkgtools/pkg_install/patches/patch-ad
cvs rdiff -r1.1 -r1.2 pkgsrc/pkgtools/pkg_install/patches/patch-aj
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Jan Schaumann <jschauma@netbsd.org>
To: gnats-bugs@gnats.netbsd.org
Cc:
Subject: pr/18384 CVS commit: pkgsrc/mk
Date: Sun, 24 Nov 2002 00:53:41 +0200 (EET)
Module Name: pkgsrc
Committed By: jschauma
Date: Sat Nov 23 22:53:40 UTC 2002
Modified Files:
pkgsrc/mk: bsd.pkg.mk
Log Message:
Bump PKGTOOLS_REQD to 20021123 to prevent users from using tools that
could not correctly de-install packages if cwd is part of PLIST of the
to be deleted package. This closes PR pkg/18384.
To generate a diff of this commit:
cvs rdiff -r1.1087 -r1.1088 pkgsrc/mk/bsd.pkg.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: jschauma
State-Changed-When: Sat Nov 23 14:54:21 PST 2002
State-Changed-Why:
I just commited a change to pkg_tools that fixes this. Now the
package will be deleted completely, even if that results in a
non-existent cwd.
From: Matthias Scheler <tron@netbsd.org>
To: gnats-bugs@gnats.netbsd.org
Cc:
Subject: pr/18384 CVS commit: [netbsd-1-6] basesrc/usr.sbin/pkg_install/lib
Date: Mon, 25 Nov 2002 00:37:39 +0200 (EET)
Module Name: basesrc
Committed By: tron
Date: Sun Nov 24 22:37:39 UTC 2002
Modified Files:
basesrc/usr.sbin/pkg_install/lib [netbsd-1-6]: version.h
Log Message:
Pull up revision 1.19 (requested by jschauma in ticket #1011):
Do not abort incomplete deletion if the cwd was removed. Instead, warn,
stay in no-longer existing dir and continue with removal of db-files;
otherwise, the packages contents would be removed, but the package not
uninstalled. Pointed out by Grant in PR pkg/18384. OK'd by hubertf.
To generate a diff of this commit:
cvs rdiff -r1.13.2.5 -r1.13.2.6 basesrc/usr.sbin/pkg_install/lib/version.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Matthias Scheler <tron@netbsd.org>
To: gnats-bugs@gnats.netbsd.org
Cc:
Subject: pr/18384 CVS commit: [netbsd-1-6] basesrc/usr.sbin/pkg_install/delete
Date: Mon, 25 Nov 2002 00:37:47 +0200 (EET)
Module Name: basesrc
Committed By: tron
Date: Sun Nov 24 22:37:47 UTC 2002
Modified Files:
basesrc/usr.sbin/pkg_install/delete [netbsd-1-6]: perform.c
Log Message:
Pull up revision 1.38 (requested by jschauma in ticket #1011):
Do not abort incomplete deletion if the cwd was removed. Instead, warn,
stay in no-longer existing dir and continue with removal of db-files;
otherwise, the packages contents would be removed, but the package not
uninstalled. Pointed out by Grant in PR pkg/18384. OK'd by hubertf.
To generate a diff of this commit:
cvs rdiff -r1.34.2.2 -r1.34.2.3 basesrc/usr.sbin/pkg_install/delete/perform.c
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.