View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013854CMakeCPackpublic2013-01-17 11:032016-06-10 14:31
ReporterJean-Eudes Onfray 
Assigned ToEric NOULARD 
PlatformGNU/LinuxOSFedoraOS Version18
Product VersionCMake 
Target VersionFixed in Version 
Summary0013854: rpm built with cmake failing with file conflict errors
DescriptionAs of rpm 4.10, different permissions for a directory are now considered a conflict. And cmake built packages are trying to own system directories, which is bad.
See this for reference: [^]
Steps To ReproduceHow reproducible:
Every time you build a rpm package with cmake

Steps to Reproduce:
Build a package with cmake ($ make package).
Look at package %files in _CPack_Packages/Linux/RPM/SPECS/$package.spec

Actual results:
You'll find a bunch of system directories like:
%dir "/usr"
%dir "/usr/share"
%dir "/usr/lib64"
%dir "/usr/bin"

Expected results:
No system dirs
Additional InformationI guess the problem lays in /usr/share/cmake/Modules/CPackRPM.cmake around line 669
We should filter CPACK_RPM_INSTALL_FILES for system directories or get the permissions correctly.
TagsNo tags attached.
Attached Files

duplicate of 0013609closedEric NOULARD RPM generator wrongly add parents directories to the package 

Eric NOULARD (developer)
2013-04-05 06:57

There is a fix in 0013609 that should fix this bug as well.
Kitware Robot (administrator)
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.

 Issue History
Date Modified Username Field Change
2013-01-17 11:03 Jean-Eudes Onfray New Issue
2013-01-17 13:34 Eric NOULARD Relationship added duplicate of 0013609
2013-04-05 06:57 Eric NOULARD Note Added: 0032756
2013-04-05 06:57 Eric NOULARD Assigned To => Eric NOULARD
2013-04-05 06:57 Eric NOULARD Status new => assigned
2016-06-10 14:28 Kitware Robot Note Added: 0042201
2016-06-10 14:28 Kitware Robot Status assigned => resolved
2016-06-10 14:28 Kitware Robot Resolution open => moved
2016-06-10 14:31 Kitware Robot Status resolved => closed

Copyright © 2000 - 2018 MantisBT Team