Source: jalview
Version: 2.11.1.3+dfsg2-4
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

Hi,

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

This is because the .build_properties file generated in the
debian/write_build_properties_file.sh.in script did not generate
output that ignored the current timezone. Patch attached that adds
--utc to the date(1) calls which makes the build reproducible for me.

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


Regards,

--
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/write_build_properties_file.sh.in  2021-03-18 12:20:13.444566357 
+0000
--- b/debian/write_build_properties_file.sh.in  2021-03-18 12:34:24.722590458 
+0000
@@ -3,7 +3,7 @@
 set -e
 
 echo "#--Jalview Build Details--" > resources/.build_properties
-echo "#"$(date --date="@$(dpkg-parsechangelog -STimestamp)" +"%Y-%m-%d 
%H:%M:%S") >> resources/.build_properties
-echo "BUILD_DATE="$(date --date="@$(dpkg-parsechangelog -STimestamp)" 
+"%H\\:%M\\:%S %d %B %Y") >> resources/.build_properties
+echo "#"$(date --utc --date="@$(dpkg-parsechangelog -STimestamp)" +"%Y-%m-%d 
%H:%M:%S") >> resources/.build_properties
+echo "BUILD_DATE="$(date --utc --date="@$(dpkg-parsechangelog -STimestamp)" 
+"%H\\:%M\\:%S %d %B %Y") >> resources/.build_properties
 echo "INSTALLATION=deb" >> resources/.build_properties
 echo "VERSION=VERSION_NUMBER" >> resources/.build_properties

Reply via email to