Hi,<br><br>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&#39; and `sed&#39; which turned out to be pretty easy to fix to work both on Linux and AIX, which doesn&#39;t have GNU findutils etc. So, here&#39;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.*/.*:&amp;*:}<br>
-                COMMAND sed {s/\\.\\\(.*\\\)/\&quot;\\1\&quot;/}<br>+EXECUTE_PROCESS(COMMAND find . -type f -o -type l<br>+                COMMAND sed s:.*/man.*/.*:&amp;*:<br>+                COMMAND sed s/\\.\\\(.*\\\)/\&quot;\\1\&quot;/<br>
                 WORKING_DIRECTORY &quot;${WDIR}&quot;<br>                 OUTPUT_VARIABLE CPACK_RPM_INSTALL_FILES)<br><br>After applying the above patch, I was able to create a simple RPM package on both AIX and Linux.<br>
<br>Cheers,<br>Pasi<br>