Source: apt Severity: normal Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: buildpath X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
The RPATH contains the build path resulting in different buildid: https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/apt.html The attached patch to debian/rules passes -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON via a dh_auto_configure override, which should use a relative path for RPATH. Alternately, updating the packaging to debhelper compat level 14 should fix this, although it is currently an experimental compat level. Unfortunately, other issues prevent this package from being reproducible (randomness in documentation), but this patch should at least reduce the diff. Thanks for maintaining apt! live well, vagrant
From 73c5b2945d385823f4291f27211c226f242c90c3 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <vagr...@reproducible-builds.org> Date: Sun, 17 Apr 2022 23:12:47 +0000 Subject: [PATCH 1/2] debian/rules: Pass -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON via dh_auto_configure override. This avoids embedding the full path in RPATH, which triggers BuildId differences. https://tests.reproducible-builds.org/debian/issues/unstable/cmake_rpath_contains_build_path_issue.html --- debian/rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 8a110f7a1..ce9218968 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 -- $(flags) $(configure_test_flags) -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON -- 2.30.2
signature.asc
Description: PGP signature