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

Bug#1011429: dds2tar: reproducible-builds: embedded build paths in /usr/bin/dds-dd



Source: dds2tar
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/dds-dd:

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

  /build/1st/dds2tar-2.5.2/dds2tar.c:382
  vs.
  /build/2/dds2tar-2.5.2/2nd/dds2tar.c:382

The attached patch fixes this by adjusting the Makefile to add CFLAGS to
the CCFLAGS variable, which includes the -ffile-prefix-map argument to
avoid embedding the absolute path in compiled files.


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


live well,
  vagrant
From 0e9712a9542c383a7445599ebe1d14abe212349b Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 22 May 2022 17:58:40 +0000
Subject: [PATCH] Makefile: Add CFLAGS to CCFLAGS.

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 3ecfad4..2f662c7 100644
--- a/Makefile
+++ b/Makefile
@@ -70,7 +70,7 @@ CCOPT=$(HPDAT) $(HPDAT4) $(EXP_STUFF) $(MATCH) $(BUFFER) \
 
 D=dds2tar-${V}
 
-CCFLAGS=-DVERSION=\"$V\"
+CCFLAGS=$(CFLAGS) -DVERSION=\"$V\"
 
 TAR=tar
 ARCHIVE=\
-- 
2.36.1

Attachment: signature.asc
Description: PGP signature


Reply to: