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

Bug#1010830: gscanbus: reproducible-builds: embedded build paths in /usr/bin/gscanbus



Source: gscanbus
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/bin/gscanbus:

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

  /build/1st/gscanbus-0.8/gscanbus.c:973
  vs.
  /build/2/gscanbus-0.8/2nd/gscanbus.c:973

The attached patch fixes this by updating to use debhelper compat level
13, which passes the default CFLAGS from dpkg-buildflags

The default CFLAGS include the -ffile-prefix-map argument which is used
to avoid embedding the absolute path in compiled files.


With this patch applied, gscanbus should build reproducibly on
tests.reproducible-builds.org!


live well,
  vagrant
From 2555241b30495dbfb432b040d0b4faa4edb16179 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Tue, 10 May 2022 23:35:32 +0000
Subject: [PATCH 3/5] Update to debhelper-compat 13.

debian/control: Remove Build-Depends on dh-autoreconf.

debian/rules: Do not pass --autoreconf argument to dh.
---
 debian/compat  | 1 -
 debian/control | 3 +--
 debian/rules   | 2 +-
 3 files changed, 2 insertions(+), 4 deletions(-)
 delete mode 100644 debian/compat

diff --git a/debian/compat b/debian/compat
deleted file mode 100644
index 7f8f011..0000000
--- a/debian/compat
+++ /dev/null
@@ -1 +0,0 @@
-7
diff --git a/debian/control b/debian/control
index b168ed5..c5d1b57 100644
--- a/debian/control
+++ b/debian/control
@@ -2,8 +2,7 @@ Source: gscanbus
 Section: misc
 Priority: optional
 Maintainer: Debian QA Group <packages@qa.debian.org>
-Build-Depends: debhelper (>= 7.0.50~),
- dh-autoreconf,
+Build-Depends: debhelper-compat (= 13),
  libraw1394-dev,
  libgtk2.0-dev
 Standards-Version: 3.9.1
diff --git a/debian/rules b/debian/rules
index 87ce356..a4b20b8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,4 +3,4 @@
 export LDFLAGS+=-Wl,--as-needed
 
 %:
-	dh $@ --with autoreconf
+	dh $@
-- 
2.35.1

Attachment: signature.asc
Description: PGP signature


Reply to: