<div dir="ltr">2017-03-08 10:00 GMT+01:00 Bernhard Seckinger <span dir="ltr"><<a href="mailto:bernhard.seckinger@gmx.de" target="_blank">bernhard.seckinger@gmx.de</a>></span>:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all,<br>
<br>
I'm using cpack to generate a debian package. There are two things that look<br>
like bugs in cpack to me (although it might also be, that I got something<br>
wrong):<br>
<br>
a) Files, that I install with install(FILES ...) get the wrong name in the<br>
md5sum section. Names should be e.g. "usr/bin/croco", but are<br>
"/path/to/build/directory/_<wbr>CPack_Packages/Linux/DEB/<wbr>croco-0.1.1-Linux/usr/bin/<wbr>croco".<br>
Not only, that the md5sums cannot be checked automatically, but also my build<br>
path is exposed in the deb package.<br></blockquote><div><br></div><div>This was already reported and the fix should be part of CMake 3.8.<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
b) Directory permissions of automatically created directories are set to 770<br>
instead of 755 which is standard. This includes even directories, that are<br>
part of the ${CMAKE_INSTALL_PREFIX}. For everything else I could add an<br>
install(DIRECTORY ... DIRECTORY_PERMISSIONS) although I think, that even this<br>
should not be necessary.<br></blockquote><div><br></div><div>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.<br></div><div><br></div><div>Thanks,<br></div><div>Domen<br></div></div><br></div></div>