Bug#1010855: longrun: please make the build reproducible

Chris Lamb lamby at debian.org
Wed May 11 18:08:32 BST 2022


Source: longrun
Version: 0.9-22.1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0] we noticed that
longrun could not be built reproducibly.

This is because the underlying call to GCC does not respect CFLAGS set
by dpkg-buildflags, which results in the build embedding the current
buildpath.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/Makefile	2022-05-11 09:20:35.125565136 -0700
--- b/Makefile	2022-05-11 09:44:27.065755347 -0700
@@ -3,7 +3,7 @@
 all: longrun README stamp-po
 
 longrun: longrun.c
-	gcc -DLOCALEDIR=\"$(LOCALEDIR)\" -g -O2 -W -Wall -o longrun longrun.c
+	gcc -DLOCALEDIR=\"$(LOCALEDIR)\" -W -Wall $(CFLAGS) -o longrun longrun.c
 
 README: longrun.1
 	groff -Tascii -man longrun.1 | col -bx > README


More information about the Reproducible-bugs mailing list