[csw-maintainers] Providing parent directories for pkgmap entries
Peter Bonivart
bonivart at opencsw.org
Wed Jul 14 10:52:50 CEST 2010
On Tue, Jul 13, 2010 at 4:26 PM, Maciej (Matchek) Blizinski
<maciej at opencsw.org> wrote:
> I've found an interesting issue and I can't decide whether it's a
> problem or not. If you look at the list of files here:
> http://www.opencsw.org/search/vsftpd/ -- there is a directory named
> /opt/csw/var/empty/vsftpd, but the directory /opt/csw/var/empty is
> provided by neither vsftpd nor any of its dependencies. During
> installation, /opt/csw/var/empty gets created. On uninstallation, the
> /opt/csw/var/empty/vsftpd directory is removed, but /opt/csw/var/empty
> is not.
>
> Is not providing the parent directory a bug?
Sun recommends putting all needed directories in the none class so
they will be created first (of course also before files in the none
class). However, I think pkgadd is smart enough to create missing
directories on the fly which is what happened here. Since there's no
entry in the pkgmap for this directory (and pkgadd doesn't use
installf for missing dirs?) pkgrm will not clean it up.
This is probably only a problem when using CAS. With a simple "cp src
dest" we will get in trouble with missing dirs like in the case of
nrpe.
--
/peter
More information about the maintainers
mailing list