Source: geophar
Version: 18.10+dfsg1-2
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps
X-Debbugs-Cc: [email protected]

Hi,

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

This is because, whilst it does seed the `date_version` string in
version.py with the latest date in debian/changelog, it does not
account for the timezone of the build system.

A patch is attached that adds --utc to the date(1) invocation.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/rules      2024-02-23 11:43:47.296787587 +0000
--- b/debian/rules      2024-02-23 11:58:50.431911540 +0000
@@ -54,7 +54,7 @@
          sed -i 
's%https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML%http://localhost/javascript/mathjax/MathJax.js%'
 $$f; \
        done
        # modify the version number
-       date=$$(date --date="@$$(dpkg-parsechangelog --show-field Timestamp)" 
+"(%Y, %-m, %-d)"); \
+       date=$$(date --utc --date="@$$(dpkg-parsechangelog --show-field 
Timestamp)" +"(%Y, %-m, %-d)"); \
        version=$$(dpkg-parsechangelog --show-field Version); \
        fileToChange=debian/geophar/usr/share/geophar/wxgeometrie/version.py; \
        echo version = $$version, date_version = $$date; \

Reply via email to