View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012183CMakeCPackpublic2011-05-11 16:012011-10-03 09:54
ReporterEric NOULARD 
Assigned ToEric NOULARD 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSAIXOS Version
Product VersionCMake-2-8 
Target VersionCMake 2.8.5Fixed in VersionCMake 2.8.5 
Summary0012183: RPM packaging faills on AIX
DescriptionHi,

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.

Cheers,
Pasi
Additional InformationThis was reported on the ML, this is just a reminder
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0026565)
Eric NOULARD (developer)
2011-05-21 06:37

Merge topic 'CPackRPM-fixForAIX' into next

db45b10 CPack make RPM work on AIX. fix 0012183 merge patch from Pasi Valminen
41c83c1 KWSys Nightly Date Stamp
(0027504)
David Cole (manager)
2011-10-03 09:54

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2011-05-11 16:01 Eric NOULARD New Issue
2011-05-11 16:01 Eric NOULARD Status new => assigned
2011-05-11 16:01 Eric NOULARD Assigned To => Eric NOULARD
2011-05-21 06:37 Eric NOULARD Note Added: 0026565
2011-05-21 06:37 Eric NOULARD Status assigned => resolved
2011-05-21 06:37 Eric NOULARD Fixed in Version => CMake 2.8.5
2011-05-21 06:37 Eric NOULARD Resolution open => fixed
2011-10-03 09:54 David Cole Note Added: 0027504
2011-10-03 09:54 David Cole Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team