[CMake] CPack install directory

Alexander Neundorf a.neundorf-work at gmx.net
Tue Dec 18 12:47:57 EST 2007


Hi,

sorry, I don't understand everything you wrote.

On Tuesday 18 December 2007, Raphael Cotty wrote:
> Hi,
> After looking at the source code I found in CPack/cmCPackDebGenerator.cxx
> that if CPACK_PACKAGING_INSTALL_PREFIX is not set then it is set to "/usr".
> Then the data.tar.gz is creating from directory usr.
> First this code will give an understandable error if the user sets
> CPACK_PACKAGING_INSTALL_PREFIX to something else than "/usr".

Do you mean it is good that it gives an understandable error or that it is bad 
that there is an error ?
Why do we get an error if it is set to something else ?

> Secondly this doesn't allow the debian package to install files anywhere.

You mean installing the binary deb package to a different prefix than what it 
was intended for ? 
Is this supposed to work ? If you have RPATH in the files then it can't be 
installed to an arbitrary location.

> This insertion of a usr directory is done I suppose to allow the tar
> command not to add the control, debian-binary, and itself.
> One way to get ride of this is to remove the "usr" insertion, do the tar
> first like this: (tar cfz ../data.tar.gz .), copy it to the current
> directory, remove it from the previous location. Then do the rest of the
> work like before.
> This of course can be optimised.

Can you please explain a bit more ?

Thanks for the feedback
Alex


More information about the CMake mailing list