[cmake-developers] CPack generators for IPS (Solaris 11), depot (HPUX), etc.
Eric Noulard
eric.noulard at gmail.com
Tue Sep 10 09:35:31 EDT 2013
2013/9/10 Magnus Johansson <magnus.johansson at foxt.com>:
> I am wondering if anyone has experimented with generators for:
>
> IPS, Image Packaging System (Solaris >= 11)
> PKG (Solaris <= 10)
> Depot (HPUX)
> RPM (for AIX)
>
> As far as I can see there is no support for these. I thought RPM for AIX
> would be easy, but my first try failed since the rpmbuild command did not
> exist on my AIX machines. I will investigate this further, but I am curious
> if anyone has successfully built RPMs for AIX.
Not me but I wrote the RPM generator and its only dependence are
1) CMake itself
2) rpmbuild command
so besides that it shoud work on AIX or any other system equipped
with cmake and rpmbuild.
> I would also like to know what kind of effort is involved in writing a new
> generator. I had a brief look at the source code for the RPM generator, and
> it seemed fairly straight forward, but I would like some input from someone
> who has actually written a generator.
Writing a new generator is not difficult, however supporting all CPack feature
may be a fair amount of work, e.g. supporting COMPONENTized packaging.
When you write a new generator you must:
1) update and verify that CPack* test are OK
2) write any generator specific case needed.
3) Provide documentation for generator specific variables
in Modules/CPack<GEN>.cmake file.
so that cpack --help-variable CPACK_<GEN>_xxxx is available.
--
Erk
L'élection n'est pas la démocratie -- http://www.le-message.org
More information about the cmake-developers
mailing list