The following issue has been SUBMITTED. ====================================================================== http://public.kitware.com/Bug/view.php?id=13232 ====================================================================== Reported By: Jess Assigned To: ====================================================================== Project: CMake Issue ID: 13232 Category: CPack Reproducibility: always Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 2012-05-17 02:00 EDT Last Modified: 2012-05-17 02:00 EDT ====================================================================== Summary: 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. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2012-05-17 02:00 Jess New Issue ====================================================================== -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
