Hi,<br>The first issue is that the debian packager is inserting a "usr" directory:<br><br>If my CMAKE_INSTALL_PREFIX is "/dev/install" and in my CMakeLists.txt I have:<br>INSTALL( FILES foo DESTINATION "etc" ) then the make install will copy foo to "/dev/install/etc".
<br><br>Then the DEB packaging will create a debian package which will install foo in "/usr/etc/".<br><br>This is done in CPack/cmCPackDebGenerator.cxx, as I tried to explain in the previous post.<br><br>I hope this is a bit clearer!
<br><br>Raphael<br><br><div class="gmail_quote">On Dec 18, 2007 5:47 PM, Alexander Neundorf <<a href="mailto:a.neundorf-work@gmx.net">a.neundorf-work@gmx.net</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>sorry, I don't understand everything you wrote.<br><div class="Ih2E3d"><br>On Tuesday 18 December 2007, Raphael Cotty wrote:<br>> Hi,<br>> After looking at the source code I found in CPack/cmCPackDebGenerator.cxx
<br>> that if CPACK_PACKAGING_INSTALL_PREFIX is not set then it is set to "/usr".<br>> Then the data.tar.gz is creating from directory usr.<br>> First this code will give an understandable error if the user sets
<br>> CPACK_PACKAGING_INSTALL_PREFIX to something else than "/usr".<br><br></div>Do you mean it is good that it gives an understandable error or that it is bad<br>that there is an error ?<br>Why do we get an error if it is set to something else ?
<br><div class="Ih2E3d"><br>> Secondly this doesn't allow the debian package to install files anywhere.<br><br></div>You mean installing the binary deb package to a different prefix than what it<br>was intended for ?
<br>Is this supposed to work ? If you have RPATH in the files then it can't be<br>installed to an arbitrary location.<br><div class="Ih2E3d"><br>> This insertion of a usr directory is done I suppose to allow the tar
<br>> command not to add the control, debian-binary, and itself.<br>> One way to get ride of this is to remove the "usr" insertion, do the tar<br>> first like this: (tar cfz ../data.tar.gz .), copy it to the current
<br>> directory, remove it from the previous location. Then do the rest of the<br>> work like before.<br>> This of course can be optimised.<br><br></div>Can you please explain a bit more ?<br><br>Thanks for the feedback
<br>Alex<br>_______________________________________________<br>CMake mailing list<br><a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br><a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake
</a><br></blockquote></div><br>