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

The build path is embedded in /usr/bin/tarlz:

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

  /build/1st/tarlz-0.23/arg_parser.cc:179
  vs.
  /build/2/tarlz-0.23/2nd/arg_parser.cc:179

The attached patch fixes this by passing the default CXXFLAGS to
dh_auto_configure in debian/rules.

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

Thanks for maintaining tarlz!

live well,
  vagrant
From 4ee294a4f2bd5956cb2c2d71accdf4445041fee2 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Sun, 25 Sep 2022 01:03:28 +0000
Subject: [PATCH] debian/rules: Pass default CXXFLAGS to configure.

---
 debian/rules | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 9a54f73..dc90fcc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,7 +7,7 @@ include /usr/share/dpkg/buildtools.mk
 	dh ${@}
 
 override_dh_auto_configure:
-	dh_auto_configure -- 'CXX=$(CXX) -g'
+	dh_auto_configure -- 'CXX=$(CXX) -g' CXXFLAGS="$(CXXFLAGS)"
 
 override_dh_auto_install:
 	dh_auto_install -- DESTDIR=$(CURDIR)/debian/tarlz
-- 
2.37.2

Attachment: signature.asc
Description: PGP signature

Reply via email to