MantisBT - CMake
View Issue Details
0013248CMakeCPackpublic2012-05-25 06:572012-11-05 14:32
Sergei Golubchik 
Eric NOULARD 
normalmajoralways
closedfixed 
Linux
CMake 2.8.8 
CMake 2.8.9CMake 2.8.9 
0013248: CPackRPM bug - empty per-component REQUIRES
If building per-component RPMs and some rpms have OBSOLETES (or REQUIRES, whatever) and other don't - in this case all rpm's that don't provide OBSOLETES will inherit the OBSOLETES header of the previous (in the alphabetical order) component. It happens because CPackRPM does not unset the corresponding header variable, when a per-component variable is not set. This patch fixes it:

--- CPackRPM.cmake 2012-05-25 12:50:53.000000000 +0200
+++ CPackRPM.cmake 2012-05-25 12:50:45.000000000 +0200
@@ -488,6 +488,8 @@
       MESSAGE("CPackRPM:Debug: User defined ${_PACKAGE_HEADER_NAME}:\n ${CPACK_RPM_PACKAGE_${_RPM_SPEC_HEADER}_TMP}")
     ENDIF(CPACK_RPM_PACKAGE_DEBUG)
     SET(TMP_RPM_${_RPM_SPEC_HEADER} "${_PACKAGE_HEADER_NAME}: ${CPACK_RPM_PACKAGE_${_RPM_SPEC_HEADER}_TMP}")
+ELSE(CPACK_RPM_PACKAGE_${_RPM_SPEC_HEADER}_TMP)
+ UNSET(TMP_RPM_${_RPM_SPEC_HEADER})
 ENDIF(CPACK_RPM_PACKAGE_${_RPM_SPEC_HEADER}_TMP)
 ENDFOREACH(_RPM_SPEC_HEADER)
 
No tags attached.
Issue History
2012-05-25 06:57Sergei GolubchikNew Issue
2012-05-29 14:42David ColeAssigned To => Eric NOULARD
2012-05-29 14:42David ColeStatusnew => assigned
2012-06-05 04:27Eric NOULARDTarget Version => CMake 2.8.9
2012-06-05 04:27Eric NOULARDNote Added: 0029609
2012-06-05 04:27Eric NOULARDStatusassigned => resolved
2012-06-05 04:27Eric NOULARDFixed in Version => CMake 2.8.9
2012-06-05 04:27Eric NOULARDResolutionopen => fixed
2012-11-05 14:32David ColeNote Added: 0031441
2012-11-05 14:32David ColeStatusresolved => closed

Notes
(0029609)
Eric NOULARD   
2012-06-05 04:27   
Fetching upstream next
Merge topic 'CPackRPM-emptyPerComponentREQUIRES' into next

7321c94 CPackRPM: avoid leakage of RPM directive from one component to another.
55cadb6 CMake Nightly Date Stamp
(0031441)
David Cole   
2012-11-05 14:32   
Closing resolved issues that have not been updated in more than 4 months.