View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012366CMakeCPackpublic2011-07-28 07:312012-02-06 06:07
Reporterwinfriedd 
Assigned ToEric NOULARD 
PriorityhighSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformLinuxOSOpenSuse LinuxOS Version11.4
Product VersionCMake 2.8.5 
Target VersionCMake 2.8.6Fixed in VersionCMake 2.8.6 
Summary0012366: when using different components RPM packages have the same package name
DescriptionThe RPM CPack generator can now generate multiple RPMs per project based on the COMPONENT feature of cmake.

However the generated RPMs all have the same package name. When you install the first package no problem. When you try to install the second package you will get an error:
'package foo is already installed'
Steps To ReproduceDownload attached test project, which has two components.
build the project and the RPMs (make package).

Now try to install both generated RPMs. Installation of the second RPM will fail.
Additional InformationSuggested patch to CPackRPM.cmake attached.
TagsNo tags attached.
Attached Filesbz2 file icon rpmcomponenttest.tar.bz2 [^] (1,304 bytes) 2011-07-28 07:31
diff file icon CPackRPM.cmake.diff [^] (996 bytes) 2011-07-28 07:59 [Show Content]

 Relationships
has duplicate 0012468closedBrad King Package naming with COMPONENTS is broken 

  Notes
(0027096)
winfriedd (reporter)
2011-07-28 08:01

The attached patch (against CPackRPM.cmake of cmake 2.8.5) will append the component name to the package name if CPACK_RPM_COMPONENT_INSTALL is set to ON.
(0027097)
Eric NOULARD (developer)
2011-07-28 08:09

Argh...
Thank you for the report and the patch
I'll try to merge-in that fix soon.
(0027354)
Eric NOULARD (developer)
2011-09-05 14:25

Just pushed to next a slightly different fix
b0f6a97 CPack fix 0012366 components RPM packages have the same package name
(0027355)
Eric NOULARD (developer)
2011-09-05 14:26

Hi CMake dev,

Would be nice if there is any 2.8.6 RC left to put this on the road.
If not let it be for 2.8.7.
(0027356)
Eric NOULARD (developer)
2011-09-05 14:27

Possibly in 2.8.6.

The fix is harmless and not fixing it make RPM components pretty useless...
(0028492)
David Cole (manager)
2012-02-06 06:07

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

 Issue History
Date Modified Username Field Change
2011-07-28 07:31 winfriedd New Issue
2011-07-28 07:31 winfriedd File Added: rpmcomponenttest.tar.bz2
2011-07-28 07:59 winfriedd File Added: CPackRPM.cmake.diff
2011-07-28 08:01 winfriedd Note Added: 0027096
2011-07-28 08:09 Eric NOULARD Note Added: 0027097
2011-07-28 08:09 Eric NOULARD Assigned To => Eric NOULARD
2011-07-28 08:09 Eric NOULARD Status new => assigned
2011-09-05 14:25 Eric NOULARD Note Added: 0027354
2011-09-05 14:26 Eric NOULARD Note Added: 0027355
2011-09-05 14:26 Eric NOULARD Target Version => CMake 2.8.6
2011-09-05 14:27 Eric NOULARD Note Added: 0027356
2011-09-05 14:27 Eric NOULARD Status assigned => resolved
2011-09-05 14:27 Eric NOULARD Fixed in Version => CMake 2.8.6
2011-09-05 14:27 Eric NOULARD Resolution open => fixed
2011-09-19 14:28 Brad King Relationship added has duplicate 0012468
2012-02-06 06:07 David Cole Note Added: 0028492
2012-02-06 06:07 David Cole Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team