[CMake] Creating package

Eric Noulard eric.noulard at gmail.com
Sat May 26 10:41:45 EDT 2012


2012/5/26 Kornel Benko <kornel at lyx.org>:
> Resending this, after being subscribed ...
> ................
> Hi list,
> this is my first mail to this list, so it may be the wrong list to report errors.

This is the good one.
When we are all sure that the bug is a real bug
you may file a bug report in the tracker as well:
http://public.kitware.com/Bug

>
> Recently I updated to ubuntu 12.04. Debian packages created with cmake (through "make package")
> are now not handled gratuitously by dpkg. (The installation stops after extracting data from *.deb)
> ---------------------------------------------
> # sudo dpkg -i xyzzy.deb
> (Reading database ... 517983 files and directories currently installed.)
> Preparing to replace **** **** (using .../****.deb) ...
> Unpacking replacement **** ...
> dpkg: error processing xyzzy.deb (--install):
>  corrupted filesystem tarfile - corrupted package archive
> dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
> Errors were encountered while processing:
>  xyzzy.deb
>
> ---------------------------------------------
> The only way to overcome this was to downgrade cmake version 2.8.8 to 2.8.5.
> (I had to use following packages from ubuntu 11.10:
>                cmake_2.8.5-1ubuntu1_amd64.deb
>                cmake-data_2.8.5-1ubuntu1_all.deb
>                cmake-qt-gui_2.8.5-1ubuntu1_amd64.deb
>                libarchive1_2.8.4-1ubuntu0.11.10.1_amd64.deb
>                liblzma2_5.0.0-2_amd64.deb
>                libxmlrpc-c3-0_1.16.32-0ubuntu4_amd64.deb
>                libxmlrpc-core-c3-0_1.16.32-0ubuntu3_amd64.deb
> )
>
> With this version the now created packages are ok.

This is stange.
There are not that many concerning CPackDeb between 2.8.5 and 2.8.8
beside the "automatic" fakeroot feature.

Could you try to launch the following commands on the offending deb package.
dpkg -I xyzzy.deb
dpkg -c xyzzy.deb

Would you be able to try with prebuilt cmake-2.8.8 from kitware:
you can untar this archive
http://www.cmake.org/files/v2.8/cmake-2.8.8-Linux-i386.tar.gz
 and use cmake with full path from there.
(May be some ubuntu specific patch are playing behind our back??)

Last but not least may be the automatic usage of fakeroot is the culprit,
In order to check that could you
   1) uninstall fakeroot (aptitude remove fakeroot)
   2) re-run cmake 2.8.8 and check if the generated deb works or not.

In the very end if all this fails you can provide us with a stripped down
failing example.

In any case if kitware pre-compiled binary failed you should file a bug
report on the tracker.


-- 
Erk
Le gouvernement représentatif n'est pas la démocratie --
http://www.le-message.org


More information about the CMake mailing list