MantisBT - CMake
View Issue Details
0010978CMakeCMakepublic2010-07-11 07:372016-06-10 14:31
Angel Tsankov 
Kitware Robot 
normalminoralways
closedmoved 
CMake-2-8 
 
0010978: Why not skip setting permissions on existing directories?
I noticed that when installing a directory cmake tries to set permissions on it even when the directory existed before running cmake. This makes it hard to use package users for package management and I wonder if there is any specific reason why cmake does not skip setting permissions on existing directories.
Happens when cmake 2.8.1 installs kdeartwork and kdebase-workspace (both install <CMAKE_INSTALL_PERFIX>/share/wallpapers/Media_Life/).
No tags attached.
related to 0009620closed Kitware Robot install(target ...) fails to set intermediate directory permissions correctly 
related to 0010126closed Kitware Robot CMake creates files with wrong permissions 
Issue History
2010-07-11 07:37Angel TsankovNew Issue
2010-07-13 08:30Bill HoffmanStatusnew => assigned
2010-07-13 08:30Bill HoffmanAssigned To => Brad King
2010-07-13 08:48Brad KingRelationship addedrelated to 0009620
2010-07-13 08:49Brad KingRelationship addedrelated to 0010126
2012-06-25 05:02Chandler CarruthNote Added: 0029819
2012-06-25 05:03Chandler CarruthNote Added: 0029820
2012-06-25 14:28Brad KingNote Added: 0029829
2012-06-25 14:28Brad KingStatusassigned => backlog
2012-06-25 14:30Brad KingAssigned ToBrad King =>
2014-01-27 10:24Brad KingNote Added: 0034996
2016-06-10 14:28Kitware RobotNote Added: 0041728
2016-06-10 14:28Kitware RobotStatusbacklog => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:28Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0029819)
Chandler Carruth   
2012-06-25 05:02   
FYI, this is impacting LLVM developers who are trying out CMake for use by that project. See http://llvm.org/PR4500 [^] which was just hit yet again by one of our developers.
(0029820)
Chandler Carruth   
2012-06-25 05:03   
Also, just to add the reason why this bug kind-of matters: The installing user did not have permission to change the permissions of the already existing directory. The user *did* have permission to perform the install though. So this bug actually caused installs that otherwise might succeed to fail. =/
(0029829)
Brad King   
2012-06-25 14:28   
Moving to backlog awaiting contributed patch.
(0034996)
Brad King   
2014-01-27 10:24   
AFAICT CMake does not actually try to set permissions on directories except when using the install(DIRECTORY) command. The install(FILES) and install(TARGETS) modes only set permissions on files they install. They do create directories needed to contain those files, but only with a standard "mkdir" call that sets permissions according to umask.

The install(DIRECTORY) command documents how it sets permissions, so it is up to the project CMake code to use the command accordingly.
(0041728)
Kitware Robot   
2016-06-10 14:28   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.