Hi,<br>The first issue is that the debian packager is inserting a &quot;usr&quot; directory:<br><br>If my CMAKE_INSTALL_PREFIX is &quot;/dev/install&quot; and in my CMakeLists.txt I have:<br>INSTALL( FILES foo DESTINATION &quot;etc&quot; ) then the make install will copy foo to &quot;/dev/install/etc&quot;.
<br><br>Then the DEB packaging will create a debian package which will install foo in &quot;/usr/etc/&quot;.<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 &lt;<a href="mailto:a.neundorf-work@gmx.net">a.neundorf-work@gmx.net</a>&gt; 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&#39;t understand everything you wrote.<br><div class="Ih2E3d"><br>On Tuesday 18 December 2007, Raphael Cotty wrote:<br>&gt; Hi,<br>&gt; After looking at the source code I found in CPack/cmCPackDebGenerator.cxx
<br>&gt; that if CPACK_PACKAGING_INSTALL_PREFIX is not set then it is set to &quot;/usr&quot;.<br>&gt; Then the data.tar.gz is creating from directory usr.<br>&gt; First this code will give an understandable error if the user sets
<br>&gt; CPACK_PACKAGING_INSTALL_PREFIX to something else than &quot;/usr&quot;.<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>&gt; Secondly this doesn&#39;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&#39;t be<br>installed to an arbitrary location.<br><div class="Ih2E3d"><br>&gt; This insertion of a usr directory is done I suppose to allow the tar
<br>&gt; command not to add the control, debian-binary, and itself.<br>&gt; One way to get ride of this is to remove the &quot;usr&quot; insertion, do the tar<br>&gt; first like this: (tar cfz ../data.tar.gz .), copy it to the current
<br>&gt; directory, remove it from the previous location. Then do the rest of the<br>&gt; work like before.<br>&gt; 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>