Subject: pkg/19022: metacity's PLIST is incorrectly specified
To: None <gnats-bugs@gnats.netbsd.org>
From: Julio Merino <jmmv@menta.net>
List: netbsd-bugs
Date: 11/12/2002 13:19:52
>Number:         19022
>Category:       pkg
>Synopsis:       metacity's PLIST is incorrectly specified
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 12 04:15:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Julio Merino
>Release:        NetBSD 1.6K
>Organization:
HispaBSD
>Environment:
	
	
System: NetBSD darkstar.local 1.6K NetBSD 1.6K (DARKSTAR) #130: Thu Nov 7 23:22:44 CET 2002 jmmv@darkstar.local:/var/build/kernel/DARKSTAR i386
Architecture: i386
Machine: i386
>Description:
	wm/metacity's PLIST tries to @dirrm two directories that are shared
	between multiple packages, like other windowmanagers or gnome stuff.
	(See patch below to see which are). The solution is to use the @unexec
	command with ${RMDIR} stuff, you know ;)
>How-To-Repeat:
	Install metacity plus windowmaker plus gnome-core and then try to
	deinstall metacity.
>Fix:
	This should do the job:

Index: PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/wm/metacity/PLIST,v
retrieving revision 1.3
diff -u -u -r1.3 PLIST
--- PLIST	2002/09/10 17:17:08	1.3
+++ PLIST	2002/11/12 12:10:08
@@ -143,8 +143,8 @@
 @dirrm share/metacity/icons
 @dirrm share/metacity/glade
 @dirrm share/metacity
-@dirrm share/gnome/wm-properties
-@dirrm etc/gconf/schemas
+@unexec ${RMDIR} %D/share/gnome/wm-properties 2>/dev/null || ${TRUE}
+@unexec ${RMDIR} %D/etc/gconf/schemas 2>/dev/null || ${TRUE}
 @dirrm etc/gconf/gconf.xml.defaults/schemas/apps/metacity/window_keybindings
 @dirrm etc/gconf/gconf.xml.defaults/schemas/apps/metacity/keybinding_commands
 @dirrm etc/gconf/gconf.xml.defaults/schemas/apps/metacity/global_keybindings

	Thanks!
>Release-Note:
>Audit-Trail:
>Unformatted: