Source: jajuk
Version: 1:1.9.6-8
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps
X-Debbugs-Cc: [email protected]
Hi,
While working on the "reproducible builds" effort [1], we have noticed
that jajuk could not be built reproducibly.
The attached patch removes timestamps from the build system. Once
applied, jajuk can be built reproducibly in our current experimental
framework.
[1]: https://wiki.debian.org/ReproducibleBuilds
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
diff --git a/src/scripts/build.xml b/src/scripts/build.xml
index b8eccd4..19baab5 100644
--- a/src/scripts/build.xml
+++ b/src/scripts/build.xml
@@ -174,9 +174,10 @@
<chmod file='${distdir}/jajuk' perm='ugo+rx' />
<!-- Set build date -->
- <tstamp>
- <format property='build.time' pattern='yyyy/MM/dd
HH:mm' />
- </tstamp>
+ <exec executable="dpkg-parsechangelog"
outputproperty="build.time">
+ <arg value="--show-field"/>
+ <arg value="Date"/>
+ </exec>
<echo message='Build time: ${build.time}' />
<replace dir='${distdir}/src/org/jajuk/util'
value='${build.time}' encoding='UTF-8'>
<include name='Const.java' />