Source: vart
Severity: normal
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

The buildid for various binaries differs when built from a different
build path:

  
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/vart.html

The attached patch to debian/rules fixes this by passing
-DCMAKE_BUILD_RPATH_USE_ORIGIN=ON to configure.

According to my local tests, with this patch applied, and the patch
submitted in #1021792 to fix timestamp issues, vart should build
reproducibly on tests.reproducible-builds.org!

Thanks for maintaining vart!

live well,
  vagrant
From 5cd438a9d5fbb958efaabc804584998aa3d14396 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Fri, 14 Oct 2022 19:33:34 +0000
Subject: [PATCH 2/2] debian/rules: Pass -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON to
 avoid differences when built from different build path.

https://tests.reproducible-builds.org/debian/issues/unstable/cmake_rpath_contains_build_path_issue.html
---
 debian/rules | 1 +
 1 file changed, 1 insertion(+)

diff --git a/debian/rules b/debian/rules
index 1eb4d91..c31a2c1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,7 @@ export DEB_CFLAGS_MAINT_APPEND  = -Wall
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
 
 CONFIGURE_ARGS = -DCMAKE_BUILD_TYPE=Debug \
+	-DCMAKE_BUILD_RPATH_USE_ORIGIN=ON \
 	-DENABLE_DPU_RUNNER=ON \
 	-DENABLE_XRNN_RUNNER=ON
 
-- 
2.37.2

Attachment: signature.asc
Description: PGP signature

Reply via email to