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

The Build ID for /usr/lib/ranlip/libranlip.so.1.0.0 varies depending on
the build path:

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

  Build·ID:·a99d3bbf470139d9c3b48e295c3bf5d9b822a109
  vs.
  Build·ID:·58af4d42dfae61ee9e85803662f2644afdd832e1

The attached patch to debian/rules fixes this by including the standard
flags from dpkg.

Alternately, updating the packaging to use dh/debhelper at a recent
compat level would also likely fix this, or passing
-ffile-prefix-map=$(CURDIR)=. in CFLAGS and CXXFLAGS.


There are several other very old outstanding patches that may still need
to be resolved (#846975, #788000), but with all three patches applied,
libranlip should build reproducibly on tests.reproducible-builds.org!


live well,
  vagrant
From b39263938fa2db1eceacddf0b8bd78b6937410db Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Fri, 11 Mar 2022 19:59:15 +0000
Subject: [PATCH] debian/rules: Use standard buildflags.

The default dpkg-buildflags include best practices flags, such as
passing -ffile-prefix-map to remove build paths.

https://reproducible-builds.org/docs/build-path/
---
 debian/rules | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/debian/rules b/debian/rules
index 990a660..7fe5569 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,6 +4,9 @@
 
 STRIP      = strip --remove-section=.comment --remove-section=.note
 
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/buildflags.mk
+
 build:
 	$(checkdir)
 	dh_autoreconf
-- 
2.35.1

Attachment: signature.asc
Description: PGP signature

Reply via email to