MantisBT - CMake
View Issue Details
0012006CMakeCPackpublic2011-03-23 17:562011-09-05 11:37
Martin Konrad 
Eric NOULARD 
normalminoralways
closedfixed 
LinuxDebian
 
CMake 2.8.5CMake 2.8.5 
0012006: CPackDeb: packages for different components have the same package name
The current development version of CPackDeb seems to handle Debian package names wrong: If we package more than one components (each into an own package) they all have the same name. This leads to a warning by dpkg when installing the packages. This probably breaks package installation.

Solution: Each deb file should get it's own package name e.g. foobar-lib and foobar-headers.
$ make test
$ cd Tests/CPackComponentsForAll/buildDEB-OnePackPerGroup/
$ sudo dpkg -i MyLib-1.0.2-Linux-*.deb
Selecting previously deselected package mylib.
(Reading database ... 301254 files and directories currently installed.)
Unpacking mylib (from MyLib-1.0.2-Linux-Development.deb) ...
Preparing to replace mylib 1.0.2 (using MyLib-1.0.2-Linux-Runtime.deb) ...
Unpacking replacement mylib ...
More than one copy of package mylib has been unpacked
 in this run ! Only configuring it once.
Setting up mylib (1.0.2) ...
No tags attached.
diff 0001_CPackDeb_fix_broken_package_names.diff (1,004) 2011-03-23 17:57
https://public.kitware.com/Bug/file/3770/0001_CPackDeb_fix_broken_package_names.diff
Issue History
2011-03-23 17:56Martin KonradNew Issue
2011-03-23 17:57Martin KonradFile Added: 0001_CPackDeb_fix_broken_package_names.diff
2011-03-23 18:00Martin KonradNote Added: 0025891
2011-03-23 18:05Eric NOULARDAssigned To => Eric NOULARD
2011-03-23 18:05Eric NOULARDStatusnew => assigned
2011-03-23 18:06Eric NOULARDOS => Debian
2011-03-23 18:06Eric NOULARDPlatform => Linux
2011-03-23 18:06Eric NOULARDTarget Version => CMake 2.8.5
2011-03-23 18:09Eric NOULARDNote Added: 0025892
2011-03-24 04:27Eric NOULARDNote Added: 0025893
2011-03-24 04:27Eric NOULARDStatusassigned => resolved
2011-03-24 04:27Eric NOULARDFixed in Version => CMake 2.8.5
2011-03-24 04:27Eric NOULARDResolutionopen => fixed
2011-09-05 11:37David ColeStatusresolved => closed
2011-09-05 11:37David ColeNote Added: 0027340

Notes
(0025891)
Martin Konrad   
2011-03-23 18:00   
Here is a patch that fixes the issue.
(0025892)
Eric NOULARD   
2011-03-23 18:09   
I'll do that soon but I did push some rework on CPack Deb, RPM and Archive Generator today:
http://public.kitware.com/Bug/view.php?id=11930 [^]

So I may wait this branch to reach master before fixing it
or I'll see whether if both patch may merge without trouble.

Nevertheless thanks for the report and the patch.
(0025893)
Eric NOULARD   
2011-03-24 04:27   
Fetching upstream next
Merge topic 'fix12006-brokenPackageName' into next

33391c6 CPackDeb: Fix 0012006 broken package names
(0027340)
David Cole   
2011-09-05 11:37   
Closing resolved issues that have not been updated in more than 4 months.