Source: gawk
Version: 1:5.2.1-2
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: buildpath
X-Debbugs-Cc: [email protected]

Hi,

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

This is because the gawkbug script contained the contents of the CFLAGS
environment variable, and this can contain the full build path via/by
embedding -ffile-prefix-map.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/rules      2023-02-23 10:40:16.745966821 -0800
--- b/debian/rules      2023-02-23 10:58:04.377850011 -0800
@@ -34,6 +34,8 @@
        rm -f debian/gawk/usr/bin/awk
        # Remove fake info files (see README.source).
        rm -rf debian/gawk/usr/share/info
+       # Make gawkbug reproducible
+       sed -i -e 's@$(CURDIR)@/build/dir@g' debian/gawk/usr/bin/gawkbug
 
 override_dh_auto_clean:
        dh_auto_clean

Reply via email to