MantisBT - CMake
View Issue Details
0012901CMakeCPackpublic2012-01-20 07:362016-06-10 14:31
Nikita Krupenko 
Kitware Robot 
normalfeaturealways
closedmoved 
x86LinuxMandriva 2010.2
CMake 2.8.4 
 
0012901: CPack should be able to set owner of files in the archive
When I use CPack, it sets the current user as owner of files in the tar.gz archive. It is more advisable and secure, to set the root as owner of this files, so some option is required.
When extracting tar archive with the root as owner of files in the archive, the owner of extracted files will be current user. When the owner of files in the archive is non-root and this archive is extracted by root - if user with same name exists in the system, it will be the owner of extracted files. So when building installation package, it is advisable to set the root as owner of files in the archive.
No tags attached.
related to 0010325closed Eric NOULARD DEB packaging Set files ownership 
related to 0013118closed Eric NOULARD CPack DEB generator does not use fakeroot for control.tar.gz 
related to 0011766closed Kitware Robot CPack using native TAR with adjustable command line options. 
Issue History
2012-01-20 07:36Nikita KrupenkoNew Issue
2012-01-20 08:26Eric NOULARDNote Added: 0028374
2012-01-20 08:27Eric NOULARDRelationship addedrelated to 0010325
2012-01-20 08:34Nikita KrupenkoNote Added: 0028375
2012-04-10 14:57kiriNote Added: 0029118
2012-04-16 06:38Eric NOULARDRelationship addedrelated to 0013118
2012-04-16 06:44Eric NOULARDRelationship addedrelated to 0011766
2012-04-16 16:07Eric NOULARDNote Added: 0029187
2012-08-11 21:35David ColeStatusnew => backlog
2012-08-11 21:35David ColeNote Added: 0030404
2016-06-10 14:28Kitware RobotNote Added: 0041969
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
(0028374)
Eric NOULARD   
2012-01-20 08:26   
Did you try
fakeroot cpack -G TGZ ?

May be we could do this automagically as we did for DEB, see 0010325
(0028375)
Nikita Krupenko   
2012-01-20 08:34   
No, I'm using it by including CPack module in the CMakeLists.txt file, so I don't call it directly.
(0029118)
kiri   
2012-04-10 14:57   
Feature in Bug 0011766 , enables this for the case where all files have same user and group.
(0029187)
Eric NOULARD   
2012-04-16 16:07   
Hi kiri,

There is no "feature" in 0011766 yet because may be fakeroot in enough?
The current bug is not the same as 0011766 but it's really close,
so the same question applies:

in which case would it be useful to use something more than fakeroot?
Knowing that for bare "tar archive" most tar command have some option
to override ownership on extraction, like --owner=OWNER for GNU tar.
(0030404)
David Cole   
2012-08-11 21:35   
Sending old, never assigned issues to the backlog.

(The age of the bug, plus the fact that it's never been assigned to anyone means that nobody is actively working on it...)

If an issue you care about is sent to the backlog when you feel it should have been addressed in a different manner, please bring it up on the CMake mailing list for discussion. Sign up for the mailing list here, if you're not already on it: http://www.cmake.org/mailman/listinfo/cmake [^]

It's easy to re-activate a bug here if you can find a CMake developer who has the bandwidth to take it on, and ferry a fix through to our 'next' branch for dashboard testing.
(0041969)
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.