| Summary: | Build system does not remove all files on 'make uninstall' | ||
|---|---|---|---|
| Product: | [Applications] kmymoney | Reporter: | Thomas Baumgart <tbaumgart> |
| Component: | general | Assignee: | KMyMoney Devel Mailing List <kmymoney-devel> |
| Status: | RESOLVED UPSTREAM | ||
| Severity: | minor | ||
| Priority: | LO | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Thomas Baumgart
2010-01-27 21:23:45 UTC
These files are all symbolic links. Some more analysis: this seems to be a general KDE problem! It is caused by the contents of the file KDE/kdelibs/cmake/modules/kde4_cmake_uninstall.cmake.in (http://websvn.kde.org/trunk/KDE/kdelibs/cmake/modules/kde4_cmake_uninstall.cmake.in?revision=558348&view=markup) where in line #11 the option '-f' is missing. For some reason, cmake does not remove symlinks that are broken. All those links will not be removed since the install_manifest.txt contains the real lib file first and then the links (which is OK). Is this ( http://lists.kde.org/?l=kde-buildsystem&m=123602982417502&w=2 ) related? I am using cmake 2.8.0 More on this: the generated cmake_uninstall.cmake file contains the following code fragment:
MESSAGE(STATUS "Uninstalling \"${file}\"")
IF(EXISTS "${file}")
EXEC_PROGRAM(
"/usr/bin/cmake" ARGS "-E remove \"${file}\""
OUTPUT_VARIABLE rm_out
RETURN_VALUE rm_retval
)
and that second line
IF(EXISTS "${file}")
causes the trouble because the library might already be removed and then the check on the symbolic link yields that the file does not exist anymore.
|