CPack/DEB: Dbgsym package not generated for non-component packaging, and fails with std::logic_error for component packaging
Hello all,
I would like to create a dbgsym package with CPack but just can't get it to work. I tried 3.13.4 and 3.19.0-rc1.
With CPACK_DEB_COMPONENT_INSTALL
=OFF
, the dbgsym package is simply not created:
CPack: Create package
-- CPACK_DEBIAN_PACKAGE_DEPENDS not set, the package will have no dependencies.
CPack: - package: /tmp/dbgsym-cpack/build/demonstrator-1.0.0-Linux.deb generated.
With CPACK_DEB_COMPONENT_INSTALL
=ON
, CPack does not create a package and fails with a std::logic_error
:
CPack: Create package
-- CPACK_DEBIAN_PACKAGE_DEPENDS not set, the package will have no dependencies.
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_M_construct null not valid
Aborted
Please find a minimal CMakeLists.txt attached. CMakeLists.txt
This minimal example project is also available on my GitLab page. The problem occurs on their CI infrastructure as well, find the console output here.
Best regards, Manuel
Edited by Manuel Wagesreither