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

Brad King brad.king at kitware.com
Thu Jan 15 15:01:58 EST 2015


On 01/13/2015 01:55 AM, Domen Vrankar wrote:
> This patch is somewhat related to
> http://public.kitware.com/pipermail/cmake/2014-December/059460.html
> (bug report: http://www.cmake.org/Bug/view.php?id=3602) as it defines
> user and group that should be used for RPM content but on a per RPM
> scale since it is not possible to define it in install command.

If it were possible to define it in the install() command, that would
be useful for local installs.  We would also need the information to
be communicated to the packaging step.  If such functionality existed,
would it eliminate the need for a CPack/RPM-specific solution?  Should
the staged install location for packaging not bother setting uid/gid
because they will be handled by the packaging tool instead?  We need
to be able to package on a host machine that does not have the users
or groups of the target machine (perhaps because a pre-install script
in the package creates the users/groups).

> My question is if such functionality would be useful for other CPack
> packagers as well?

I would think so.  The permissions are a property of the project and
target environment, not of the packaging tools.  Each CPack generator
should treat permissions according to the capabilities of its tools
and target environment.

-Brad



More information about the cmake-developers mailing list