Subject: pkg/18213: devel/bonobo tries to remove "shared" directory
To: None <gnats-bugs@gnats.netbsd.org>
From: Julio Merino <jmmv@hispabsd.org>
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
>Closed-Date:
>Last-Modified:
>Originator: Julio Merino
>Release: NetBSD 1.6G
>Organization:
HispaBSD
>Environment:
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
>Description:
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.
>How-To-Repeat:
Install devel/bonobo and www/galeon. Then try to remove devel/bonobo.
>Fix:
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 @@
share/oaf/Bonobo_Sample_Text.oaf
share/oaf/Bonobo_Selector.oaf
@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
>Release-Note:
>Audit-Trail:
>Unformatted: