[cmake-developers] [PATCH] Setting default user, group and permissions for CPackRPM

Brad King brad.king at kitware.com
Mon Jan 19 14:26:20 EST 2015


On 01/16/2015 03:10 AM, Domen Vrankar wrote:
> That is why uid and gid in install command
> don't help much - if CPack/RPM would use uid and gid from install
> command it would be limited to users and groups listed in systems
> /etc/passwd file.
> 
> I could write an initial patch for bug report 3602 that would add user
> and group setting to install command and add that functionality to
> CPack/RPM and later we could extend the use for install and other
> CPack generators to use it as well (I also wrote some ideas for a
> patch here http://www.cmake.org/pipermail/cmake/2015-January/059518.html).

If you're interested in working on 3602 then please do so.  However it
sounds from the above that for CPack we need declarative information
for CPack to put in the package for package-install-time updates.

Please look at the "INSTALL" scope of set_property:

 http://www.cmake.org/cmake/help/v3.1/command/set_property.html

It is meant specifically for setting information about files for use
by CPack.  One could add properties for user and group names.

Thanks,
-Brad



More information about the cmake-developers mailing list