[CMake] [CMake/CPack] empty debian package

Eric NOULARD eric.noulard at gmail.com
Fri Mar 28 02:12:49 EDT 2008


Le Thu, 27 Mar 2008 21:40:16 -0400,
Bill Hoffman <bill.hoffman at kitware.com> a écrit :

> Alan W. Irwin wrote:
> > On 2008-03-28 00:51+0100 Alexander Neundorf wrote:
> > 
> >> If you use install() with an absolute path DESTDIR is still
> >> honored on "make
> >> install".
> >> But I just tried and while it works with "make install", it
> >> doesn't when creating the packages, not only for deb, but lso for
> >> the other formats.
> >>
> >>> This may be worth a feature request (or a patch :-).
> >>
> >> This actually sounds more like a cpack bug with absolute paths.
> > 
> > Yes, that was reported by me as bug
> > http://public.kitware.com/Bug/view.php?id=4993 in May last year.
> > 
> > There is actually a simple patch to get absolute paths to work for
> > CPack (see above bug report), but no action has been taken on that
> > yet.
> > 
> 
> Actually, it is fixed in 2.6 beta, I just never closed the bug.  If
> you set CPACK_SET_DESTDIR to ON in your CPack config file, then
> DESTDIR will be used.

This seems to work (at least) for TGZ, RPM, ZIP but not
for the DEB generator ... I did not dig in the code to figure out why
but the "data.tar.gz" inside:

_CPack_Packages/Linux/DEB/

does not contains the absolute path.

Here comes the pseudo project tar ball
-------------- next part --------------
A non-text attachment was scrubbed...
Name: myscript-1.0-src.tar.bz2
Type: application/x-bzip
Size: 7206 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080328/59b7f98a/attachment.bin>


More information about the CMake mailing list