Source: efax Severity: normal Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: buildpath X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
Both /usr/bin/efax and /usr/bin/efix embed different buildids based on the build path: https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/efax.html Build·ID:·bbce73232e3a81a5db70703d12c5ce89ecf11d8d vs. Build·ID:·ec6d84e3221a010689b83ef8327769e2da58cd2d The attached patch fixes this by passing -ffile-prefix-map via CFLAGS in debian/rules to avoid embedding the absolute build paths in binaries. Alternately, this might be solved by switching to using "dh" in debian/rules, which should use the default values for CFLAGS from dpkg-buildflags. With these patches applied, efax should build reproducibly on tests.reproducible-builds.org! live well, vagrant
From 40dd43885c275b9e12d180fac692b47cdf4e8af9 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <vagr...@reproducible-builds.org> Date: Thu, 12 May 2022 01:36:10 +0000 Subject: [PATCH] debian/rules: Set -ffile-prefix-map in CFLAGS. https://tests.reproducible-builds.org/debian/issues/unstable/gcc_captures_build_path_issue.html --- debian/rules | 2 ++ 1 file changed, 2 insertions(+) diff --git a/debian/rules b/debian/rules index a20babe..1351a73 100755 --- a/debian/rules +++ b/debian/rules @@ -20,6 +20,8 @@ else CFLAGS += -O2 endif +# Avoid embedding build paths +CFLAGS += -ffile-prefix-map=$(CURDIR)=. build: build-stamp -- 2.36.1
signature.asc
Description: PGP signature