[Git][java-team/jython][master] Fix timestamps side of reproducible builds
Gilles Filippini
gitlab at salsa.debian.org
Sat Nov 10 17:48:36 GMT 2018
Gilles Filippini pushed to branch master at Debian Java Maintainers / jython
Commits:
1f028edb by Gilles Filippini at 2018-11-10T17:48:27Z
Fix timestamps side of reproducible builds
- - - - -
3 changed files:
- debian/changelog
- debian/control
- debian/rules
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+jython (2.7.1+repack-7) UNRELEASED; urgency=medium
+
+ * Improve build reproducibility using dh_strip_nondeterminism and
+ SOURCE_DATE_EPOCH
+
+ -- Gilles Filippini <pini at debian.org> Sat, 10 Nov 2018 11:38:50 +0100
+
jython (2.7.1+repack-6) unstable; urgency=medium
* Team upload.
=====================================
debian/control
=====================================
@@ -3,7 +3,7 @@ Section: python
Priority: optional
Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
Uploaders: Jakub Adam <jakub.adam at ktknet.cz>, Gilles Filippini <pini at debian.org>
-Build-Depends: debhelper (>= 10), dh-exec, ant, gawk, maven-repo-helper, javahelper, python, libjaxb-api-java
+Build-Depends: debhelper (>= 10), dh-exec, ant, gawk, maven-repo-helper, javahelper, python, libjaxb-api-java, dh-strip-nondeterminism
Build-Depends-Indep: default-jdk,
dh-python,
junit4,
=====================================
debian/rules
=====================================
@@ -71,6 +71,8 @@ override_dh_auto_build:
# Build the class files.
# -nouserlib is required to prevent conflicts with the ant jython plugin
ant -nouserlib developer-build jar javadoc \
+ -Dbuild.date="$(shell date -d @$(SOURCE_DATE_EPOCH) "+%b %d %Y")" \
+ -Dbuild.time="$(shell date -d @$(SOURCE_DATE_EPOCH) "+%H:%M:%S")" \
-Dmain.classpath=$(OUR_MAIN_CLASSPATH) \
-Dtest.classpath=$(OUR_TEST_CLASSPATH) \
-Druntime.classpath="$(OUR_RUNTIME_CLASSPATH)"
View it on GitLab: https://salsa.debian.org/java-team/jython/commit/1f028edbcf44e027f6fb210c2bc586359bae6b98
--
View it on GitLab: https://salsa.debian.org/java-team/jython/commit/1f028edbcf44e027f6fb210c2bc586359bae6b98
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20181110/59943288/attachment.html>
More information about the pkg-java-commits
mailing list