Bug 211745 - Support for running uninstall
Summary: Support for running uninstall
Status: RESOLVED FIXED
Alias: None
Product: kdesrc-build
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: Michael Pyne
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-25 06:45 UTC by Torgny Nyblom
Modified: 2010-05-07 06:10 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 1.12


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Torgny Nyblom 2009-10-25 06:45:17 UTC
I would like for kdesvn-build to have two new features.

1: as part of the install phase an optional "uninstall before installing" phase.
This would have the benefit of reducing stale files as old files otherwise never are removed.

2: An uninstall command. This would run make uninstall for all modules. The trick here seems to be that modules must be uninstalled in reverse order.
Comment 1 Michael Pyne 2010-05-07 06:10:12 UTC
SVN commit 1123842 by mpyne:

Add support for uninstalling modules to kdesvn-build. If the user specifies a list of
modules on the command line, then those are directly uninstalled. Otherwise the normal
build list is used, modified so that only modules kdesvn-build thinks it has actually
installed are attempted to be uninstalled. (This means that git modules don't play nice
because I am not setting the last-install-rev persistent property for those yet, sorry).

You can set the option use-clean-install to true in your kdesvn-buildrc to also have
kdesvn-build uninstall a module just before installing it to keep stray files from
accumulating.

Probably not quite fully baked, but should be good enough for 1.12 (the first release it
will show up in).

BUG:211745


 M  +141 -26   kdesvn-build  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1123842