View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0015700 | CMake | CPack | public | 2015-08-17 04:55 | 2016-06-10 14:31 | ||||
Reporter | Andrew Wagner | ||||||||
Assigned To | Kitware Robot | ||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | moved | ||||||
Platform | OS | Ubuntu | OS Version | 14.04.2 LTS | |||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0015700: Debian package trying to overwrite /usr/share/aclocal/cmake.m4 | ||||||||
Description | I am unable to generate a .deb file that will install on Ubuntu 14.04.2 LTS. Both "cpack -G deb" and setting "CPACK_BINARY_DEB" to "ON" result in a .deb file with the following error from apt: $ sudo dpkg -i cmake-3.3.20150814-g17ecf-Linux-armv7l.deb (Reading database ... 220164 files and directories currently installed.) Preparing to unpack cmake-3.3.20150814-g17ecf-Linux-armv7l.deb ... Unpacking cmake (3.3.20150814-g17ecf) over (2.8.12.2-0ubuntu3) ... dpkg: error processing archive cmake-3.3.20150814-g17ecf-Linux-armv7l.deb (--install): trying to overwrite '/usr/share/aclocal/cmake.m4', which is also in package cmake-data 2.8.12.2-0ubuntu3 I am building from nightly commit from Friday: 17ecfd8210b4db74753c4565b10a2b75dfa4c480 | ||||||||
Steps To Reproduce | Check out source, configure, build, run "cpack -G deb" in the build tree, try to install resulting .deb with "dpkg -i" | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0039286) Nils Gladitz (developer) 2015-08-17 05:04 |
The deb package created by cpack is monolithic while the debian/ubuntu maintained packages for cmake are split into multiple deb files (cmake, cmake-data, cmake-qt-gui etc.). The monolithic cpack created package does not know about e.g. the ubuntu provided cmake-data package. To work around the issue you can first remove all debian/ubuntu provided cmake packages before trying to install cpack's monolithic deb. |
(0039287) Andrew Wagner (reporter) 2015-08-17 05:28 |
Thanks Nils, I thought it would be something like that. Uninstalling the build-in cmake first would create a bunch of dependency hell for me because ROS depends on catkin depends on cmake. I just broke down and did a "make install". Is there something architectural that prevents this from being fixed up? I would have expected CMake/CPack not being able package itself on Ubuntu LTS to be a release blocking issue. |
(0039288) Nils Gladitz (developer) 2015-08-17 05:45 |
I don't think distributions do use (or want to use) the cpack DEB generator for their own CMake packages. Kitware does not provide "official" .deb downloads either. Even though cpack allows you to create .deb packages I don't think they can be expected to be a drop in replacement for distribution specific packages given that they have no official capacity and packaging policies might differ between .deb based distributions and even individual releases. |
(0042824) Kitware Robot (administrator) 2016-06-10 14:29 |
Resolving issue as `moved`. This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2015-08-17 04:55 | Andrew Wagner | New Issue | |
2015-08-17 05:04 | Nils Gladitz | Note Added: 0039286 | |
2015-08-17 05:28 | Andrew Wagner | Note Added: 0039287 | |
2015-08-17 05:45 | Nils Gladitz | Note Added: 0039288 | |
2016-06-10 14:29 | Kitware Robot | Note Added: 0042824 | |
2016-06-10 14:29 | Kitware Robot | Status | new => resolved |
2016-06-10 14:29 | Kitware Robot | Resolution | open => moved |
2016-06-10 14:29 | Kitware Robot | Assigned To | => Kitware Robot |
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |