[CMake] [CPACK] debian package
Mathieu Malaterre
mathieu.malaterre at gmail.com
Fri Mar 28 12:04:11 EDT 2008
On Fri, Mar 28, 2008 at 4:53 PM, Bill Hoffman <bill.hoffman at kitware.com> wrote:
>
> Mathieu Malaterre wrote:
> > Hi,
> >
> > Please consider the attached patch for inclusion in cmake 2.6.0.
> > Without the patch it puts the responsability on each packager to
> > properly set the architecture to create valid debian package. Instead
> > getting the result from dpkg --print-architecture is the correct way.
> >
> > Right now I have to do:
> >
> > IF(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64")
> > SET(CPACK_DEBIAN_PACKAGE_ARCHITECTURE amd64)
> > ELSEIF(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "i686")
> > SET(CPACK_DEBIAN_PACKAGE_ARCHITECTURE i386)
> > ENDIF(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64")
> >
> >
> > The initial plan was not to rely on any tool to create debian
> > package, but since NSIS packager rely on NSIS exe, I believe relying
> > on the presence of dpkg is relatively weak.
> >
> Can you please try this version I just checked in:
>
> $ cvs commit -m "ENH: remove hard codeded arch " CPackDeb.cmake
> /cvsroot/CMake/CMake/Modules/CPackDeb.cmake,v <-- CPackDeb.cmake
> new revision: 1.10; previous revision: 1.9
>
> I added a few more checks.
>
> -Bill
>
Works for me :)
$ dpkg -I GDCM-2.0.3-Linux-x86_64.deb
new debian package, version 2.0.
size 1465426 bytes: control archive= 5200 bytes.
172 bytes, 9 lines control
11752 bytes, 175 lines md5sums
Package: gdcm
Version: 2.0.3
Section: devel
Priority: optional
Architecture: amd64
Maintainer: gdcm-developers at lists.sourceforge.net
Description: GDCM - Grass Root DICOM
Thanks,
--
Mathieu
More information about the CMake
mailing list