MantisBT - CMake | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0013232 | CMake | CPack | public | 2012-05-17 02:00 | 2015-05-18 11:29 | |||||
Reporter | Jess | |||||||||
Assigned To | Raffi Enficiaud | |||||||||
Priority | normal | Severity | minor | Reproducibility | always | |||||
Status | closed | Resolution | duplicate | |||||||
Platform | Linux | OS | Ubuntu 64-bit | OS Version | 12.04 | |||||
Product Version | CMake 2.8.7 | |||||||||
Target Version | Fixed in Version | CMake 3.3 | ||||||||
Summary | 0013232: CPackDeb fails on dependency auto-gen if any component does not contain any ELF binaries | |||||||||
Description | When using components, CPackDeb module will fail if CPACK_DEBIAN_PACKAGE_SHLIBDEPS is on but any one of the components do not contain ELF binaries (for example, a config component consisting entirely of text configuration). I strongly suspect it will fail for non-component builds to (haven't tested), but figure this is an unlikely scenario - ie. it would be extremely unlikely to be using cmake and not produce any binary output for installation! | |||||||||
Steps To Reproduce | Make sure set(CPACK_COMPONENTS_IGNORE_GROUPS TRUE) set(CPACK_DEB_COMPONENT_INSTALL TRUE) set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS TRUE) After running "make package" (with project "project" containing three components - "server", "gui" and "runtime" with the latter consisting solely of (common) configuration files ... Run CPack packaging tool... CPack: Create package using DEB CPack: Install projects CPack: - Run preinstall target for: myproject CPack: - Install project: myproject CPack: - Install component: gui CPack: - Install component: runtime CPack: - Install component: server CPack: Create package CPackDeb: - Generating dependency list CPackDeb: - Generating dependency list CMake Error at /usr/share/cmake-2.8/Modules/CPackDeb.cmake:203 (string): string sub-command REGEX, mode REPLACE needs at least 6 arguments total to command. CPack Error: Error while execution CPackDeb.cmake CPackDeb: - Generating dependency list CPack Error: Error while execution CPackDeb.cmake CPack Error: Problem compressing the directory CPack Error: Error when generating package: liger make: *** [package] Error 1 | |||||||||
Additional Information | CPackDeb.cmake expects a project (or component) to always contain ELF binaries for install. This is not always true. | |||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | ||||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2012-05-17 02:00 | Jess | New Issue | ||||||||
2012-08-11 21:35 | David Cole | Status | new => backlog | |||||||
2012-08-11 21:35 | David Cole | Note Added: 0030419 | ||||||||
2015-05-18 03:38 | Raffi Enficiaud | Relationship added | duplicate of 0013488 | |||||||
2015-05-18 03:40 | Raffi Enficiaud | Assigned To | => Raffi Enficiaud | |||||||
2015-05-18 03:40 | Raffi Enficiaud | Status | backlog => assigned | |||||||
2015-05-18 11:29 | Domen Vrankar | Status | assigned => closed | |||||||
2015-05-18 11:29 | Domen Vrankar | Resolution | open => duplicate | |||||||
2015-05-18 11:29 | Domen Vrankar | Fixed in Version | => CMake 3.3 |
Notes | |||||
|
|||||
|
|