CMake/Tests/CPackComponentsDEB
Deniz Bahadir 27d161eac3 CPackDeb: dpkg-shlibdeps shall consider dependency components, too
When using `dpkg-shlibdeps` to automatically determine package
dependencies it considers the RUNPATH/RPATH of executables in order to
find all required shared libraries of such executables.

If the RUNPATH/RPATH contains a verbatim `$ORIGIN` (respective
`${ORIGIN}`), it will now be substituted by the packaging-paths of other
components that are marked as dependency and those paths will then be
used as additional search directories for `dpkg-shlibdeps`.

Associated tests were added as well.

Fixes: #21838
2024-05-30 16:13:46 +02:00
..
shlibdeps-with-private-lib CPackDeb: dpkg-shlibdeps now supports searching for private shared libs 2021-01-22 08:33:01 -05:00
subdir CPackDeb: dpkg-shlibdeps shall consider dependency components, too 2024-05-30 16:13:46 +02:00
CMakeLists.txt CPackDeb: dpkg-shlibdeps shall consider dependency components, too 2024-05-30 16:13:46 +02:00
license.txt
mylib.cpp Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
mylib.h
mylibapp.cpp CPackDeb: dpkg-shlibdeps shall consider dependency components, too 2024-05-30 16:13:46 +02:00
MyLibCPackConfig-components-depend1.cmake.in CPack/Deb prevent accidental component dependencies 2016-05-23 20:21:32 +02:00
MyLibCPackConfig-components-depend2.cmake.in CPack/Deb prevent accidental component dependencies 2016-05-23 20:21:32 +02:00
MyLibCPackConfig-components-description1.cmake.in CPack-deb: don't add a line with a dot to pkg desc 2020-05-27 14:44:28 -04:00
MyLibCPackConfig-components-description2.cmake.in CPackDeb: Use CPACK_PACKAGE_DESCRIPTION_FILE 2019-09-22 00:31:24 +02:00
MyLibCPackConfig-components-lintian-dpkgdeb-checks.cmake.in
MyLibCPackConfig-components-shlibdeps1.cmake.in
MyLibCPackConfig-components-source.cmake.in
MyLibCPackConfig-compression.cmake.in
MyLibCPackConfig-shlibdeps-with-ORIGIN-RPATH-failure.cmake.in CPackDeb: dpkg-shlibdeps shall consider dependency components, too 2024-05-30 16:13:46 +02:00
MyLibCPackConfig-shlibdeps-with-ORIGIN-RPATH-success.cmake.in CPackDeb: dpkg-shlibdeps shall consider dependency components, too 2024-05-30 16:13:46 +02:00
MyLibCPackConfig-shlibdeps-with-private-lib-failure.cmake.in CPackDeb: dpkg-shlibdeps now supports searching for private shared libs 2021-01-22 08:33:01 -05:00
MyLibCPackConfig-shlibdeps-with-private-lib-success.cmake.in CPackDeb: dpkg-shlibdeps now supports searching for private shared libs 2021-01-22 08:33:01 -05:00
RunCPackVerifyResult-components-depend1.cmake CPackComponentsDEB test: simplify error reporting 2019-07-05 16:25:05 +02:00
RunCPackVerifyResult-components-depend2.cmake CPackComponentsDEB test: simplify error reporting 2019-07-05 16:25:05 +02:00
RunCPackVerifyResult-components-description1.cmake CPack: Fix regression in DEB generator description 2020-01-10 17:22:52 -05:00
RunCPackVerifyResult-components-description2.cmake CPack: Fix regression in DEB generator description 2020-01-10 17:22:52 -05:00
RunCPackVerifyResult-components-lintian-dpkgdeb-checks.cmake CPackComponentsDEB test: simplify if() arguments 2019-07-05 16:24:58 +02:00
RunCPackVerifyResult-components-shlibdeps1.cmake CPackComponentsDEB test: simplify if() arguments 2019-07-05 16:24:58 +02:00
RunCPackVerifyResult-components-source.cmake CPackComponentsDEB test: simplify error reporting 2019-07-05 16:25:05 +02:00
RunCPackVerifyResult-compression.cmake CPackComponentsDEB test: simplify error reporting 2019-07-05 16:25:05 +02:00
RunCPackVerifyResult-shlibdeps-with-ORIGIN-RPATH-failure.cmake CPackDeb: dpkg-shlibdeps shall consider dependency components, too 2024-05-30 16:13:46 +02:00
RunCPackVerifyResult-shlibdeps-with-ORIGIN-RPATH-success.cmake CPackDeb: dpkg-shlibdeps shall consider dependency components, too 2024-05-30 16:13:46 +02:00
RunCPackVerifyResult-shlibdeps-with-private-lib-failure.cmake Tests: Accept line breaks in more places in dpkg-shlibdeps error message 2021-02-01 10:32:51 -05:00
RunCPackVerifyResult-shlibdeps-with-private-lib-success.cmake CPackDeb: dpkg-shlibdeps now supports searching for private shared libs 2021-01-22 08:33:01 -05:00
RunCPackVerifyResult.cmake codespell: Fix typos 2023-11-17 09:58:21 -05:00