View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013232CMakeCPackpublic2012-05-17 02:002015-05-18 11:29
ReporterJess 
Assigned ToRaffi Enficiaud 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionduplicate 
PlatformLinuxOSUbuntu 64-bitOS Version12.04
Product VersionCMake 2.8.7 
Target VersionFixed in VersionCMake 3.3 
Summary0013232: CPackDeb fails on dependency auto-gen if any component does not contain any ELF binaries
DescriptionWhen 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 ReproduceMake 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 InformationCPackDeb.cmake expects a project (or component) to always contain ELF binaries for install. This is not always true.
TagsNo tags attached.
Attached Files

 Relationships
duplicate of 0013488closedRaffi Enficiaud Patch for CPack Debian generator (fix to the auto-dependecy support via dpkg-shlibdeps) 

  Notes
(0030419)
David Cole (manager)
2012-08-11 21:35

Sending old, never assigned issues to the backlog.

(The age of the bug, plus the fact that it's never been assigned to anyone means that nobody is actively working on it...)

If an issue you care about is sent to the backlog when you feel it should have been addressed in a different manner, please bring it up on the CMake mailing list for discussion. Sign up for the mailing list here, if you're not already on it: http://www.cmake.org/mailman/listinfo/cmake [^]

It's easy to re-activate a bug here if you can find a CMake developer who has the bandwidth to take it on, and ferry a fix through to our 'next' branch for dashboard testing.

 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


Copyright © 2000 - 2018 MantisBT Team