[icu4j] 01/02: add patch to prevent date/timestamp resource from ending up in jar

Tony Mancill tmancill at moszumanska.debian.org
Sat Jun 25 03:57:50 UTC 2016


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

tmancill pushed a commit to branch master
in repository icu4j.

commit ec787632a3ba7fbd64bd3facac1c83fca87f2249
Author: tony mancill <tmancill at debian.org>
Date:   Fri Jun 24 20:42:14 2016 -0700

    add patch to prevent date/timestamp resource from ending up in jar
    
    Thanks to Chris Lamb.
---
 debian/patches/reproducible-build.patch | 23 +++++++++++++++++++++++
 debian/patches/series                   |  1 +
 2 files changed, 24 insertions(+)

diff --git a/debian/patches/reproducible-build.patch b/debian/patches/reproducible-build.patch
new file mode 100644
index 0000000..4f088f2
--- /dev/null
+++ b/debian/patches/reproducible-build.patch
@@ -0,0 +1,23 @@
+Description: Allow reproducible build of icu4j.jar
+Author: Chris Lamb <lamby at debian.org>
+Forwarded: no
+
+
+--- a/tools/build/src/com/ibm/icu/dev/tool/index/IndexGenerator.java
++++ b/tools/build/src/com/ibm/icu/dev/tool/index/IndexGenerator.java
+@@ -60,13 +60,13 @@
+         }
+ 
+         DateFormat fmt = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG, Locale.US);
+-        DateFormat copyfmt = new SimpleDateFormat("'# Copyright (C) 'yyyy' IBM Inc.  All Rights Reserved.'");
++        DateFormat copyfmt = new SimpleDateFormat("'# Copyright (C) IBM Inc.  All Rights Reserved.'");
+ 
+         try {
+             File outFile = new File(outDir, "res_index.txt");
+             PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(outFile)));
+             Date now = new Date();
+-            pw.println("# Generated by " + IndexGenerator.class.getName() + " on " + fmt.format(now));
++            pw.println("# Generated by " + IndexGenerator.class.getName());
+             pw.println("# from contents of " + inDir.getCanonicalPath());
+             pw.println(copyfmt.format(now));
+             Iterator i = names.iterator();
diff --git a/debian/patches/series b/debian/patches/series
index d1d27cf..ec0cee2 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 #01-java8-compatibility.patch
 javadoc_local_link.diff
+reproducible-build.patch

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



More information about the pkg-java-commits mailing list