I’m trying to use
CPACK_DEBIAN_PACKAGE_SHLIBDEPS but I’m getting errors despite setting up my RPATH correctly.
I think the issue is that I’m creating a componentized package and one of my executables depends on a library in a different component. The
dpkg-shlibdeps command succeeds when creating a monolithic package (i.e. no components).
I tried to declare that dependency using
CPACK_DEBIAN_ENABLE_COMPONENT_DEPENDS and setting
Is there something else I need to do?
Sorry for the two-fer, but I’m also seeing that enabling
CPACK_DEBIAN_PACKAGE_GENERATE_SHLIBS produces many warnings of the form:
CMake Warning (dev) at /snap/cmake/793/share/cmake-3.19/Modules/Internal/CPack/CPackDeb.cmake:641 (message): Shared library './usr/bin/weightsdir_to_weightsfile' is missing soname or soversion. Library will not be added to DEBIAN/shlibs control file. Call Stack (most recent call first): /snap/cmake/793/share/cmake-3.19/Modules/Internal/CPack/CPackDeb.cmake:774 (cpack_deb_prepare_package_vars) This warning is for project developers. Use -Wno-dev to suppress it.
weightsdir_to_weightsfile is an executable, not a shared library. What’s causing this?