Subject: pkg/18213: devel/bonobo tries to remove "shared" directory
To: None <>
From: Julio Merino <>
List: netbsd-bugs
Date: 09/07/2002 11:11:50
>Number:         18213
>Category:       pkg
>Synopsis:       devel/bonobo tries to remove "shared" directory
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 07 02:10:00 PDT 2002
>Originator:     Julio Merino
>Release:        NetBSD 1.6G
System: NetBSD darkstar 1.6G NetBSD 1.6G (DARKSTAR) #10: Wed Sep 4 15:25:12 CEST 2002 jmmv@darkstar:/var/build/kernel/DARKSTAR i386
Architecture: i386
Machine: i386
	The package devel/bonobo creates a directory called share/gnome/ui.
	When deinstalling, it tries to remove this directory using @dirrm.
	This is wrong because www/galeon also uses this directory, but it
	does *not* depend on bonobo. Therefore, this directory can be
	erased from one package or from the other, regardless which one is
	deinstalled first.

	The following patch applies to devel/bonobo only, but www/galeon
	should be fixed as well, adding this same line.
	Install devel/bonobo and www/galeon. Then try to remove devel/bonobo.

Index: PLIST
RCS file: /cvsroot/pkgsrc/devel/bonobo/PLIST,v
retrieving revision 1.7
diff -u -u -r1.7 PLIST
--- PLIST	2002/08/25 19:22:24	1.7
+++ PLIST	2002/09/07 09:06:18
@@ -196,7 +196,7 @@
 @exec ${MKDIR} %D/share/gnome/ui
-@dirrm share/gnome/ui
+@unexec ${RMDIR} %D/share/gnome/ui 2>/dev/null || true
 @exec ${MKDIR} %D/share/gnome/bonobo/docs/audio_ulaw/C/images
 @dirrm share/gnome/bonobo/docs/audio_ulaw/C/images
 @dirrm share/gnome/bonobo/docs/audio_ulaw/C