[CMake] CPACK, generating deb packages: md5sums and wrong directory permissons

Domen Vrankar domen.vrankar at gmail.com
Wed Mar 8 04:27:26 EST 2017


2017-03-08 10:00 GMT+01:00 Bernhard Seckinger <bernhard.seckinger at gmx.de>:

> Hi all,
>
> I'm using cpack to generate a debian package. There are two things that
> look
> like bugs in cpack to me (although it might also be, that I got something
> wrong):
>
> a) Files, that I install with install(FILES ...) get the wrong name in the
> md5sum section. Names should be e.g. "usr/bin/croco", but are
> "/path/to/build/directory/_CPack_Packages/Linux/DEB/
> croco-0.1.1-Linux/usr/bin/croco".
> Not only, that the md5sums cannot be checked automatically, but also my
> build
> path is exposed in the deb package.
>

This was already reported and the fix should be part of CMake 3.8.


> b) Directory permissions of automatically created directories are set to
> 770
> instead of 755 which is standard. This includes even directories, that are
> part of the ${CMAKE_INSTALL_PREFIX}. For everything else I could add an
> install(DIRECTORY ... DIRECTORY_PERMISSIONS) although I think, that even
> this
> should not be necessary.
>

This came up in the past and if I recall correctly the only workaround was
the install(DIRECTORY ... DIRECTORY_PERMISSIONS) that you mentioned. Please
file a bug report for this one.

Thanks,
Domen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170308/bee04dd0/attachment-0001.html>


More information about the CMake mailing list