Debian Bug report logs - #1021373
librep: reproducible-builds: build path embedded in provided libtool

Package: src:librep; Maintainer for src:librep is Jose M Calhariz <jose@calhariz.com>;

Reported by: Vagrant Cascadian <vagrant@reproducible-builds.org>

Date: Thu, 6 Oct 2022 23:24:02 UTC

Severity: normal

Tags: patch

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Jose M Calhariz <jose@calhariz.com>:
Bug#1021373; Package src:librep. (Thu, 06 Oct 2022 23:24:04 GMT) (full text, mbox, link).


Acknowledgement sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
New Bug report received and forwarded. Copy sent to reproducible-bugs@lists.alioth.debian.org, Jose M Calhariz <jose@calhariz.com>. (Thu, 06 Oct 2022 23:24:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@reproducible-builds.org>
To: submit@bugs.debian.org
Subject: librep: reproducible-builds: build path embedded in provided libtool
Date: Thu, 06 Oct 2022 16:20:47 -0700
[Message part 1 (text/plain, inline)]
Source: librep
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

The build path is embedded in /usr/lib/x86_64-linux-gnu/rep/libtool:

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

  LTCFLAGS="-g·-O2·-ffile-prefix-map=/build/1st/librep-0.92.7=.·-fstack-protector-strong ...
  vs.
  LTCFLAGS="-g·-O2·-ffile-prefix-map=/build/2/librep-0.92.7/2nd=.·-fstack-protector-strong ...


According to my local tests, with this patch and the patch for
https://bugs.debian.org/834534 applied, librep should build reproducibly
on tests.reproducible-builds.org!

This patch should apply on either the version in sid or experimental
(which already has the patch for #834534 applied).

Thanks for maintaining librep!

live well,
  vagrant
[0002-debian-rules-Remove-embedded-build-path-from-libtool.patch (text/x-diff, inline)]
From 769a91c0c274dc41767d0525db9625ccf677d392 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Thu, 6 Oct 2022 23:04:22 +0000
Subject: [PATCH 2/2] debian/rules: Remove embedded build path from libtool in
 dh_install override.

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

diff --git a/debian/rules b/debian/rules
index c384f44..efdf15d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -35,6 +35,8 @@ override_dh_install:
 	dh_install
 	find $(dev_extras) | $(dh_install_auto) -plibrep-dev
 	find $(rep_extras) | $(dh_install_auto) -prep
+	# Replace build path with placeholder string for reproducible builds
+	sed -i -e "s,$(CURDIR),BUILDPATH,g" debian/librep-dev/usr/lib/$(DEB_HOST_MULTIARCH)/rep/libtool
 
 override_dh_strip:
 	dh_strip -a --dbg-package=librep-dbg
-- 
2.37.2

[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed May 17 12:44:25 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.