Hi,

 I'm trying to package gnuplot and it almost works :)
The package builts and installs fine but then I can't uninstall it.

The problem is that when gnuplot compiles it creates a directory %build/usr/lib/X11/ and puts some files there.
pkgtool will then create an antry for a directory /usr/lib/X11

But /usr/lib/X11 is a symlink by default (it comes from SUNWxorg-compatlinks). Now when I try to uninstall gnuplot pkg fails because it can't remove the directory (as it tries .rmdir() which fails with ERRNO 20 (not a directory).

mi...@opensolaris:~/packages$ pkg contents -m gnuplot | grep "usr/lib/X11"
dir group=root mode=755 owner=root path=usr/lib/X11
dir group=root mode=755 owner=root path=usr/lib/X11/app-defaults
file 9d73610720628874646dbe7b2e8a4c05934696bb chash=08e3cbf4700db22e335993f254700ddf773229fc group=root mode=755 owner=root path=usr/lib/X11/app-defaults/Gnuplot pkg.csize=931 pkg.size=2639
mi...@opensolaris:~/packages$

mi...@opensolaris:~/packages$ pkg search -l /usr/lib/X11
INDEX      ACTION    VALUE                     PACKAGE
path link usr/lib/X11 pkg:/[email protected]
path       dir       usr/lib/X11               pkg:/[email protected]
mi...@opensolaris:~/packages$


It installed without any warnings but won't uninstall now.

See http://defect.opensolaris.org/bz/show_bug.cgi?id=9014 for more details on the failure.


I could mv %build/usr/lib/X11 to %build/usr/X11 in the install section of spec files and update %files accordingly but it doesn't seem right. pkg should be able to handle it properly.

???




--
Robert Milkowski
http://milek.blogspot.com

_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to