> 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 <[email protected]> To: [email protected] Date: 10/20/2010 09:31 AM Subject: Re: [CMake] Creating Debian source packages with CMake Sent by: [email protected] 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 _______________________________________________ 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
