Source: libime Severity: normal Tags: patch User: reproducible-builds@lists.alioth.debian.org Usertags: buildpath X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org The RPATH contains the build path resulting in different buildid: https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/libime.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. With this patch applied, libime should build reproducibly on tests.reproducible-builds.org! Thanks for maintaining libime! live well, vagrant
From edceee6388dec62cca657e4082fc038a6734b54f Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <vagrant@reproducible-builds.org> Date: Fri, 17 Dec 2021 22:50:16 +0000 Subject: [PATCH] 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debian/rules b/debian/rules index 388559a..d2a50f3 100755 --- a/debian/rules +++ b/debian/rules @@ -10,6 +10,9 @@ execute_before_dh_auto_configure: rmdir src/libime/core/kenlm ln -sf $(CURDIR)/kenlm $(CURDIR)/src/libime/core/kenlm +override_dh_auto_configure: + dh_auto_configure -- -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON + ifneq (,$(filter $(DEB_HOST_ARCH), mips64el mipsel)) override_dh_auto_test: dh_auto_test -- ARGS+='--exclude-regex \(testtrie\)' -- 2.30.2
Attachment:
signature.asc
Description: PGP signature