Source: rakarrack
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/rakarrack:

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

  /build/1st/rakarrack-0.6.1/build/src/../../src/main.C:166·(discriminator·3)
  vs.
  /build/2/rakarrack-0.6.1/2nd/build/src/../../src/main.C:166·(discriminator·3)

The attached patch to debian/rules fixes this by passing the default
CXXFLAGS provided by dpkg-buildflags to configure.

Alternately, updating to a newer debhelper compat level might also solve
this issue as well as other issues.

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

Thanks for maintaining rakarrack!

live well,
  vagrant
From 69e43af18c9f59fbbe5404c95e83c987ebec9c97 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Mon, 26 Sep 2022 00:48:38 +0000
Subject: [PATCH] debian/rules: Pass default CXXFLAGS to configure.

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

diff --git a/debian/rules b/debian/rules
index 9276fdd..2294fb6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -46,6 +46,7 @@ $(builddir_sse)/config.status:        EXTRA_CONFIG_FLAGS += --enable-sse
 			      --build=$(DEB_BUILD_GNU_TYPE)	\
 			      --prefix=/usr			\
 			      $(if $(filter $(DEB_HOST_ARCH_CPU),amd64 i386),--enable-sse2) \
+			      CXXFLAGS="$(shell dpkg-buildflags --get CXXFLAGS)" \
 			      $(EXTRA_CONFIG_FLAGS)
 
 build: build-arch
-- 
2.37.2

Attachment: signature.asc
Description: PGP signature

Reply via email to