[CMake] Fwd: CPack: Detecting if to build DEB/RPM packages

Eric Noulard eric.noulard at gmail.com
Thu Jul 22 03:29:37 EDT 2010


Forgot the list


---------- Forwarded message ----------
From: Eric Noulard <eric.noulard at gmail.com>
Date: 2010/7/22
Subject: Re: [CMake] CPack: Detecting if to build DEB/RPM packages
To: norulez <norulez at me.com>


2010/7/22 norulez <norulez at me.com>:
> This shouldn't work, because you could build deb packages on redhat systems with cpack without any deb tools installed

Yes true.
You must know you have limitation like not automatically choosing the
appropriate "architecture" for the package.

DEB generator uses
dpkg --print-architecture
in order to select approprite arch.

if dpkg is not found then the default is i386, which may not be what you want
e.g. on an x86_64 system.

The scheme is better than nothing though.

--
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org



-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org


More information about the CMake mailing list