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

When the build path differs it results in a different buildid in various
binaries in /usr/bin/yaskkserv*:

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

The attached patch to debian/rules fixes this by adding
--debug-prefix-map to CXXFLAGS.

According to my local tests, with this patch applied yaskkserv should
build reproducibly on tests.reproducible-builds.org!

Thanks for maintaining yaskkserv!

live well,
  vagrant
From 12f5f5b3dd56129044bdb2b270d69302c1d04ed1 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Tue, 27 Sep 2022 20:17:16 +0000
Subject: [PATCH] debian/rules: Add --debug-prefix-map to CXXFLAGS to avoid
 embedding build paths.

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

diff --git a/debian/rules b/debian/rules
index 0696cbb..4f515f8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,6 +4,7 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 DPKG_EXPORT_BUILDFLAGS = 1
 
 export DEB_LDFLAGS_MAINT_APPEND = -defs
+export DEB_CXXFLAGS_MAINT_APPEND = --debug-prefix-map=$(CURDIR)=.
 
 # Uncomment this to turn on verbose mode.
 export DH_VERBOSE=1
-- 
2.37.2

Attachment: signature.asc
Description: PGP signature

Reply via email to