automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FEATURE REQUEST: make uninstall should delete empty directories.


From: Bernd Jendrissek
Subject: Re: FEATURE REQUEST: make uninstall should delete empty directories.
Date: Fri, 12 Mar 2004 15:34:03 +0200
User-agent: Mutt/1.4i

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, Mar 03, 2004 at 09:18:49AM -0500, Hans Deragon wrote:
> Eric Siegerman wrote:
> >On Tue, Mar 02, 2004 at 08:34:19AM -0600, Bob Friesenhahn wrote:
[...]
> What if we reckognize some directories as to be never deleted?  For 
> instance, /, /usr/bin, /usr/local, /var, /tmp, /bin, /sbin, /usr/share, and 
> many others would never be deleted, even if empty.  Others not in the list 
> would be.  This would be easy to implement.

I'd rather *tell* a computer what it *must* do, rather than letting it
guess (wrong, likely).

> This issue is that I do not find it clean when I install a package in a 
> special directory using --prefix, and then find all the directories still 
> there after uninstalling it.
> 
> Note that I am not 100% backing up my own idea, since I do reckognize that 
> their might be some unexpected consequences of what I am proposing.  But I 
> would like for the discussion to continue so that we either convince 
> ourselves that it is a bad idea, or maybe not.

$(DESTDIR) also complicates the mapping between "we created it" and "we
own it".

> >Note that this issue is orthogonal to the question of creating a
> >standalone uninstall script, which I actually find very
> >appealing.
> 
> Thanks for the support for my other idea.  You are right, it is orthogonal 
> to the other and this is why I created two distinct emails.

A standalone uninstall script sounds like a nice idea indeed.
Unfortunately, though, I pull more of my hair out over packages which
don't use automake *at all* (no DESTDIR support is my pet peeve), than
over imperfections in the autotools.

> >[1] By contrast, things like RPM *do* have enough information: if
> >    a directory is (or becomes) empty during uninstall, it should
> >    be removed iff it is mentioned in the RPM spec file.  Note
> >    that the spec file is (intended to be) hand-written, or at
> >    least hand-tuned; so decisions about which directories to
> >    list in it are made by a human, not by code.
> 
> Would there be a way to record this information?  Maybe in the uninstall 
> script I suggest?  If the package created the directory, it would record 
> this fact in the uninstall script.

GCC:
lib_SUBDIRS = gcc-lib

automake:
data_SUBDIRS = aclocal-1.8 automake-1.8 aclocal

- -- 
http://voyager.abite.co.za/~berndj/ (up again for now - yay!)
[I can't guarantee the integrity of my mail; I suspect my employer of
mail tampering (adding disclaimers without my authorization).  Please
consider only signed text as my words.  Verify if you can!]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQFAUbxB/FmLrNfLpjMRAv9cAJwLxd0JvW2QJy7iP6s0W+r/KRL1lQCfdL6A
U1rKILp7vPIztrOwIS/GUAo=
=6r9W
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]