[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1001859: kjs: reproducible-builds: BuildId differences triggered by RPATH



Source: kjs
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/kjs.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, kjs should build reproducibly on
tests.reproducible-builds.org!

Thanks for maintaining kjs!

live well,
  vagrant
From 86b7e4850e032f4340aa6ed1d750888ecb6f4a87 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Fri, 17 Dec 2021 20:47:11 +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/build_id_differences_only_issue.html
---
 debian/rules | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/debian/rules b/debian/rules
index b808d0e..be94f40 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,3 +9,6 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 override_dh_fixperms:
 	chmod +x debian/libkf5kjs-dev/usr/share/kf5/kjs/create_hash_table
 	dh_fixperms
+
+override_dh_auto_configure:
+	dh_auto_configure -- -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON
-- 
2.34.1

Attachment: signature.asc
Description: PGP signature


Reply to: