<div><div class="gmail_quote">On Wed, May 11, 2011 at 10:42 AM, Eric Noulard <span dir="ltr"><<a href="mailto:eric.noulard@gmail.com">eric.noulard@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
2011/5/11 Pasi Valminen <<a href="mailto:pasi.valminen@gmail.com">pasi.valminen@gmail.com</a>>:<br>
<div><div></div><div class="h5">> Hi,<br>
><br>
> I tried to create a simple RPM package on AIX with CPack, but my attempt<br>
> resulted in an empty RPM file since the file list population failed. In the<br>
> process I got a couple of error messages from `find' and `sed' which turned<br>
> out to be pretty easy to fix to work both on Linux and AIX, which doesn't<br>
> have GNU findutils etc. So, here's the patch:<br>
><br>
> --- CPackRPM.cmake.orig 2011-05-11 14:13:05.000000000 +0800<br>
> +++ CPackRPM.cmake 2011-05-11 14:13:17.000000000 +0800<br>
> @@ -470,9 +470,9 @@<br>
> # file name by enclosing it between double quotes (thus the sed)<br>
> # Then we must authorize any man pages extension (adding * at the end)<br>
> # because rpmbuild may automatically compress those files<br>
> -EXECUTE_PROCESS(COMMAND find -type f -o -type l<br>
> - COMMAND sed {s:.*/man.*/.*:&*:}<br>
> - COMMAND sed {s/\\.\\\(.*\\\)/\"\\1\"/}<br>
> +EXECUTE_PROCESS(COMMAND find . -type f -o -type l<br>
> + COMMAND sed s:.*/man.*/.*:&*:<br>
> + COMMAND sed s/\\.\\\(.*\\\)/\"\\1\"/<br>
> WORKING_DIRECTORY "${WDIR}"<br>
> OUTPUT_VARIABLE CPACK_RPM_INSTALL_FILES)<br>
><br>
> After applying the above patch, I was able to create a simple RPM package on<br>
> both AIX and Linux.<br>
<br>
</div></div>I'll test and try to merge that soon.<br>
<br>
Just curious but why building RPMs on AIX?<br>
<br>
Does AIX now use RPM as a package format?<br>
Or you want to build Linux-installable RPM on AIX ? ??<br></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br><font class="Apple-style-span" color="#888888">
--</font><br><font class="Apple-style-span" color="#888888">
Erk</font><br><font class="Apple-style-span" color="#888888">
Membre de l'April - « promouvoir et défendre le logiciel libre » -</font><br>
<a href="http://www.april.org" target="_blank" style="color: rgb(136, 136, 136); ">http://www.april.org</a><br>
</blockquote></div><br></div><div>Thanks. :)</div><div><br></div><div><div>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.</div>
<div><br></div></div><div>Cheers,</div><div>Pasi</div>