[h2database] 01/03: Set the locale when generating the javadoc to improve the reproducibility

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Fri Feb 26 22:39:15 GMT 2016


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to branch master
in repository h2database.

commit c4b7ebe09aae69ba8bf386f1c65bb45b0757bddb
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Fri Feb 26 22:46:03 2016 +0100

    Set the locale when generating the javadoc to improve the reproducibility
---
 debian/changelog                             |  7 +++++++
 debian/patches/04-reproducible-javadoc.patch | 16 ++++++++++++++++
 debian/patches/series                        |  1 +
 3 files changed, 24 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 926bbe5..f7646de 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+h2database (1.4.191-2) UNRELEASED; urgency=medium
+
+  * Team upload.
+  * Set the locale when generating the javadoc to improve the reproducibility
+
+ -- Emmanuel Bourg <ebourg at apache.org>  Fri, 26 Feb 2016 22:45:15 +0100
+
 h2database (1.4.191-1) unstable; urgency=medium
 
   * New upstream release
diff --git a/debian/patches/04-reproducible-javadoc.patch b/debian/patches/04-reproducible-javadoc.patch
new file mode 100644
index 0000000..3aa4c56
--- /dev/null
+++ b/debian/patches/04-reproducible-javadoc.patch
@@ -0,0 +1,16 @@
+Description: Set the locale when generating the Javadoc to make the API documentation reproducible
+Author: Emmanuel Bourg <ebourg at apache.org>
+Forwarded: no
+--- a/src/tools/org/h2/build/BuildBase.java
++++ b/src/tools/org/h2/build/BuildBase.java
+@@ -476,6 +476,10 @@
+      * @param args the command line arguments to pass
+      */
+     protected void javadoc(String...args) {
++        StringList argumentList = args(args);
++        argumentList.addAll(0, Arrays.asList("-locale", "en", "-encoding", "UTF-8"));
++        args = argumentList.array();
++
+         int result;
+         PrintStream old = System.out;
+         try {
diff --git a/debian/patches/series b/debian/patches/series
index 94e2056..2912c0d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 01-use-jar-files-from-debian.patch
 03-osgi-compatibility.patch
+04-reproducible-javadoc.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/h2database.git



More information about the pkg-java-commits mailing list