[CMake] Creating an RPM package on AIX fails

Pasi Valminen pasi.valminen at gmail.com
Wed May 11 04:31:15 EDT 2011


On Wed, May 11, 2011 at 10:42 AM, Eric Noulard <eric.noulard at gmail.com>wrote:

> 2011/5/11 Pasi Valminen <pasi.valminen at gmail.com>:
> > Hi,
> >
> > I tried to create a simple RPM package on AIX with CPack, but my attempt
> > resulted in an empty RPM file since the file list population failed. In
> the
> > process I got a couple of error messages from `find' and `sed' which
> turned
> > out to be pretty easy to fix to work both on Linux and AIX, which doesn't
> > have GNU findutils etc. So, here's the patch:
> >
> > --- CPackRPM.cmake.orig    2011-05-11 14:13:05.000000000 +0800
> > +++ CPackRPM.cmake    2011-05-11 14:13:17.000000000 +0800
> > @@ -470,9 +470,9 @@
> >  # file name by enclosing it between double quotes (thus the sed)
> >  # Then we must authorize any man pages extension (adding * at the end)
> >  # because rpmbuild may automatically compress those files
> > -EXECUTE_PROCESS(COMMAND find -type f -o -type l
> > -                COMMAND sed {s:.*/man.*/.*:&*:}
> > -                COMMAND sed {s/\\.\\\(.*\\\)/\"\\1\"/}
> > +EXECUTE_PROCESS(COMMAND find . -type f -o -type l
> > +                COMMAND sed s:.*/man.*/.*:&*:
> > +                COMMAND sed s/\\.\\\(.*\\\)/\"\\1\"/
> >                  WORKING_DIRECTORY "${WDIR}"
> >                  OUTPUT_VARIABLE CPACK_RPM_INSTALL_FILES)
> >
> > After applying the above patch, I was able to create a simple RPM package
> on
> > both AIX and Linux.
>
> I'll test and try to merge that soon.
>
> Just curious but why building RPMs on AIX?
>
> Does AIX now use RPM as a package format?
> Or you want to build Linux-installable RPM on AIX ? ??
>

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

Thanks. :)

AIX knows about RPMs since 5.1 at least (current version being 7.1), but the
version is a bit old 3.x IIRC. I find RPMs more flexible in their rules than
the AIX bff format. So, I prefer creating RPM packages if possible since
there's native support for it.

Cheers,
Pasi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110511/4df53506/attachment-0001.htm>


More information about the CMake mailing list