Source: debcraft
Version: 0.1.0
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: environment
X-Debbugs-Cc: reproducible-b...@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
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- 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=.*)\.@.@g' \
+               $(DESTDIR)/usr/share/man/man1/debcraft.1
 
 install: build
        mkdir -p $(DESTDIR)/usr/bin

Reply via email to