The following issue has been SUBMITTED. ====================================================================== http://public.kitware.com/Bug/view.php?id=12542 ====================================================================== Reported By: Alex Neundorf Assigned To: Eric NOULARD ====================================================================== Project: CMake Issue ID: 12542 Category: CPack Reproducibility: always Severity: minor Priority: normal Status: assigned ====================================================================== Date Submitted: 2011-10-27 09:32 EDT Last Modified: 2011-10-27 09:32 EDT ====================================================================== Summary: Uninstalling a cpack-generated rpm leaves empty directories behind Description: We are using cpack to generate rpms for our package. When such a rpm is uninstalled later on, the files are removed, but empty directories are left behind. It would be nice if those would be removed too.
One way could be to collect all installed directories, and put them with %dir in the spec file. But, AFAIK, not all those directories should be removed when uninstalling the package, e.g. /usr/local/bin should not be removed. One way to do this would be to filter the obtained list of directories against a set of known directories (e.g. from CMAKE_PREFIX_PATH), so that /usr, /usr/local, and their bin, include and lib directories are filtered out. This could be extended by an additional variable e.g. in Modules/Platforms/UnixPaths.cmake like CMAKE_OTHER_STANDARD_PATHS which could contain e.g. shared/, doc/ etc. Alex ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2011-10-27 09:32 Alex Neundorf New Issue 2011-10-27 09:32 Alex Neundorf Status new => assigned 2011-10-27 09:32 Alex Neundorf Assigned To => Eric NOULARD ====================================================================== -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
