Subject: pkg/18253: PLIST of x11/gtk2 misses a directory
To: None <gnats-bugs@gnats.netbsd.org>
From: Julio Merino <jmmv@hispabsd.org>
List: netbsd-bugs
Date: 09/10/2002 13:34:37
>Number:         18253
>Category:       pkg
>Synopsis:       PLIST of x11/gtk2 misses a directory
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 10 04:32:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Julio Merino
>Release:        NetBSD 1.6H
>Organization:
HispaBSD
>Environment:
	
	
System: NetBSD darkstar.local 1.6H NetBSD 1.6H (DARKSTAR) #12: Sun Sep 8 10:57:26 CEST 2002 jmmv@darkstar.local:/var/build/kernel/DARKSTAR i386
Architecture: i386
Machine: i386
>Description:
	The package devel/gail (not yet commited) uses a directory under
	the GTK2 tree to install module files. The directory is:
	lib/gtk-2.0/modues. I guess that other packages may use this
	directory as well to install packages. Therefore, it can be a
	good idea to add the directory to gtk2's PLIST so it gets
	removed when deinstalling (note that the directory MUST be emptied
	by other dependant packages during their deinstallation).

	Currently, deinstalling gtk2 gives a warning if that directory
	was used by any dependant package.

	I've also added an @exec line to create the directory, as it is
	not made by the installation process.
>How-To-Repeat:
	
>Fix:
	This should do the trick:

Index: PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/x11/gtk2/PLIST,v
retrieving revision 1.8
diff -u -u -r1.8 PLIST
--- PLIST	2002/08/29 17:11:01	1.8
+++ PLIST	2002/09/10 11:28:41
@@ -738,7 +738,9 @@
 @unexec ${RMDIR} %D/share/gtk-doc 2>/dev/null || ${TRUE}
 @dirrm share/gtk-2.0/demo
 @dirrm share/gtk-2.0
+@exec ${MKDIR} %D/lib/gtk-2.0/modules 2>/dev/null || ${TRUE}
 @dirrm lib/gtk-2.0/include
+@dirrm lib/gtk-2.0/modules
 @dirrm lib/gtk-2.0/2.0.0/loaders
 @dirrm lib/gtk-2.0/2.0.0/immodules
 @dirrm lib/gtk-2.0/2.0.0


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