[CMake] Creating Debian source packages with CMake

Aaron_Wright at selinc.com Aaron_Wright at selinc.com
Wed Oct 20 12:46:57 EDT 2010


> The standard debian way is to have an executable file named 
`debian/rules` which creates packages when invoked.

Interesting. Now that I think about it, I guess that's correct. I was 
confused by my mostly empty 'debian/rules' file into thinking that it was 
an additional layer above that did the packaging. But, instead I have a 
lot of help from cdbs in the 'debian/rules' file. So it must be creating 
the debian packages with help from debhelpers. Something that CPack could 
also do.

What would a 'debian/rules' file that used CPack look like?

---
Aaron Wright




From:
Daniel Pfeifer <daniel at pfeifer-mail.de>
To:
cmake at cmake.org
Date:
10/20/2010 09:31 AM
Subject:
Re: [CMake] Creating Debian source packages with CMake
Sent by:
cmake-bounces at cmake.org



Hi,

> Does it make sense to use CPack for debian packaging?

If you just want to build debian packages, then it probably does not
make sense to use CPack. If however you want to build packages for a
range of platforms and you want to keep them consistent, then CPack
would be an excellent choice.

> Anyone getting the source for a debian package knows that running 
> "dpkg-buildpackage" will create packages. They may not have a clue what 
> CPack is. This goes for utilities such as "apt-get" which can build 
> packages from source if they follow the standard debian way of doing it.

This is not the full truth. The standard debian way is to have an
executable file named `debian/rules` which creates packages when
invoked. What tools are used to create these packages is always
different. Mostly it is combination of some of the following: debhelper,
dpkg, autotools, CMake, handwritten files... and maybe CPack in the
future.

I agree that users should not need to have a clue what CPack is. All
they should care about is `aptitude install your-program`.
However, Programmers should not need to have a clue about packaging
either! All the should care about is `make package`.

cheers, Daniel


_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake




More information about the CMake mailing list