[CMake] [CPack] debian binary package

Tristan Carel tristan.carel at gmail.com
Tue Aug 14 09:26:32 EDT 2007


On 8/14/07, Mathieu Malaterre <mathieu.malaterre at gmail.com> wrote:
> Hi,
>
>   As some people have already noticed there has been some work done in
> CPack to support deb package. After my initial draft Alex finished up
> the implementation today.
>
>   I believe the code is ready for more testing now.
>
>   So far I only checked that generated package are compliant with:
> dpkg -I
> dpkg -c
> dpkg -i
> apt-extracttemplates (to check the ar-as-in-BSB vs ar-as-in-GNU issue).
>
>   Please test and send feedback to the list

I have tested it last week and it worked pretty well. There was no
specific configuration,
except that CPACK_INSTALL_CMAKE_PROJECTS contained several projects.
SET(CPACK_GENERATOR "TBZ2;DEB")
SET(CPACK_INSTALL_CMAKE_PROJECTS
 "/home/carel/iniparser-0.5b/_build/Linux-Release_stlport;iniparser;ALL;/"
 "/home/carel/iniparser-0.5b/_build/Linux-Debug;iniparser;ALL;/"
 "/home/carel/iniparser-0.5b/_build/Linux-Debug_stlport;iniparser;ALL;/"
 "/home/carel/iniparser-0.5b/_build/Linux-Release;iniparser;ALL;/"

I have just tested the dpkg -i


I will make more serious test with `advanced' options:
DEBIAN_PACKAGE_DEPENDS, stuff like that...

BTW, I have checked the module on cvs and found this tiny typo:

--- CPackDeb.cmake      2007-08-08 20:18:14.000000000 +0200
+++ CPackDeb.cmake.typo 2007-08-14 15:15:54.000000000 +0200
@@ -44,7 +44,7 @@
 # There is no such thing as i686 architecture on debian, you should
use i386 instead
 # $ dpkg --print-architecture
   SET(DEBIAN_PACKAGE_ARCHITECTURE i386)
-ENDIF(NOT DEBIAN_PACAKGE_ARCHITECTURE)
+ENDIF(NOT DEBIAN_PACKAGE_ARCHITECTURE)

 # have a look at GET_PROPERTY(result GLOBAL ENABLED_FEATURES), this returns
 # the successful FIND_PACKAGE() calls, maybe this can help


Thx a lot for this generator.
-- 
Tristan Carel
Music with dinner is an insult both to the cook and the violinist.


More information about the CMake mailing list