View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013248CMakeCPackpublic2012-05-25 06:572012-11-05 14:32
ReporterSergei Golubchik 
Assigned ToEric NOULARD 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformLinuxOSOS Version
Product VersionCMake 2.8.8 
Target VersionCMake 2.8.9Fixed in VersionCMake 2.8.9 
Summary0013248: CPackRPM bug - empty per-component REQUIRES
DescriptionIf 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)
 
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0029609)
Eric NOULARD (developer)
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 (manager)
2012-11-05 14:32

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

 Issue History
Date Modified Username Field Change
2012-05-25 06:57 Sergei Golubchik New Issue
2012-05-29 14:42 David Cole Assigned To => Eric NOULARD
2012-05-29 14:42 David Cole Status new => assigned
2012-06-05 04:27 Eric NOULARD Target Version => CMake 2.8.9
2012-06-05 04:27 Eric NOULARD Note Added: 0029609
2012-06-05 04:27 Eric NOULARD Status assigned => resolved
2012-06-05 04:27 Eric NOULARD Fixed in Version => CMake 2.8.9
2012-06-05 04:27 Eric NOULARD Resolution open => fixed
2012-11-05 14:32 David Cole Note Added: 0031441
2012-11-05 14:32 David Cole Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team