Subject: pkg/30347: +DEINSTALL scripts are incomplete
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <reed@reedmedia.net>
List: pkgsrc-bugs
Date: 05/27/2005 00:59:00
>Number:         30347
>Category:       pkg
>Synopsis:       +DEINSTALL scripts are incomplete
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 27 00:59:00 +0000 2005
>Originator:     reed@reedmedia.net
>Release:        NetBSD 1.6.2_STABLE
>Organization:
http://bsd.reedmedia.net/
>Environment:
	
	
System: NetBSD rainier.reedmedia.net 1.6.2_STABLE NetBSD 1.6.2_STABLE (MYKERNEL) #1: Tue Jun 1 12:16:43 PDT 2004 reed@rainier.reedmedia.net:/usr/src/sys/arch/i386/compile/MYKERNEL i386
Architecture: i386
Machine: i386
>Description:
This happens on systems where the packages are installed from binary
packages.

No messages are displayed when running pkg_delete and no config files,
et cetera are cleaned up.

+DEINSTALL files since early February don't list any filenames to
remove and I don't see code to remove files. (In early February,
many changes were done to the mk/install/ scripts.)

I don't have any +FILES (or related) files. I see that pkg_add'ing
a package runs +INSTALL which generates the +FILES (I think in a
temporary staging directory).

>How-To-Repeat:
Look at +DEINSTALL for some package that should remove check
and remove configurations.

>Fix:
Maybe pkg_install/files/create/perform.c should also tar up:
+DIRS
+FILES
+PERMS
+RCD_SCRIPTS
+USERGROUP

Or maybe the +DEINSTALL scripts also generate the needed +DIRS,
+FILES, +PERMS, +RCD_SCRIPTS, and/or +USERGROUP scripts.

>Unformatted: