Bug#1077479: debcraft: please make the build reproducible

Chris Lamb lamby at debian.org
Mon Jul 29 10:11:15 BST 2024


Source: debcraft
Version: 0.1.0
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: environment
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

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

This is because it embeds the current value of DEB_BUILD_OPTIONS in
its manpage, which, of course, can vary between builds:

 -be honored (currently DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=42 ').
 +be honored (currently DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=20 ').

A patch is attached that strips this from the statically-generated
Makefile. The dynamic variable still can be seen when invoking
"debcraft --help".

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/Makefile	2024-07-29 10:03:57.276681527 +0100
--- b/Makefile	2024-07-29 10:08:36.825775883 +0100
@@ -33,6 +33,9 @@
 		--output $(DESTDIR)/usr/share/man/man1/debcraft.1 \
 		--no-info \
 		./debcraft.sh
+	# Filter out inclusion of DEB_BUILD_OPTIONS in static Makefile.
+	sed -i -e 's@ (currently DEB_BUILD_OPTIONS=.*)\. at .@g' \
+		$(DESTDIR)/usr/share/man/man1/debcraft.1
 
 install: build
 	mkdir -p $(DESTDIR)/usr/bin


More information about the Reproducible-bugs mailing list