From e6cefc7683de4f29be7ebcab004ea0ab80ce49bc Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian Date: Sun, 17 Apr 2022 23:12:47 +0000 Subject: Pass -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON via dh_auto_configure override CMake by default sets the RPATH property on executables that link to shared libraries in the same project with an absolute path, which triggers BuildId differences. References: https://tests.reproducible-builds.org/debian/issues/unstable/cmake_rpath_contains_build_path_issue.html https://gitlab.kitware.com/cmake/cmake/-/issues/18413 Closes: #1009796 [@donkult: reworded commit message slightly and have flag passed first] --- debian/rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'debian/rules') diff --git a/debian/rules b/debian/rules index 8a110f7a1..202f1b86d 100755 --- a/debian/rules +++ b/debian/rules @@ -47,4 +47,4 @@ override_dh_installsystemd: override_dh_auto_configure-arch: flags=-DWITH_DOC=OFF override_dh_auto_configure-indep: flags=-DWITH_DOC=ON override_dh_auto_configure-arch override_dh_auto_configure-indep: - dh_auto_configure -- $(flags) $(configure_test_flags) + dh_auto_configure -- -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON $(flags) $(configure_test_flags) -- cgit v1.2.3-70-g09d2