summary refs log tree commit diff
path: root/pkgs/tools/typesetting/pdftk/gcc-4.4.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/typesetting/pdftk/gcc-4.4.patch')
-rw-r--r--pkgs/tools/typesetting/pdftk/gcc-4.4.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/tools/typesetting/pdftk/gcc-4.4.patch b/pkgs/tools/typesetting/pdftk/gcc-4.4.patch
new file mode 100644
index 00000000000..f66c22e5106
--- /dev/null
+++ b/pkgs/tools/typesetting/pdftk/gcc-4.4.patch
@@ -0,0 +1,18 @@
+Taken from gentoo portage.
+
+diff -NrU5 pdftk-1.41.orig/java_libs/com/lowagie/text/pdf/PdfDate.java pdftk-1.41/java_libs/com/lowagie/text/pdf/PdfDate.java
+--- pdftk-1.41.orig/java_libs/com/lowagie/text/pdf/PdfDate.java	2009-05-18 20:49:13.000000000 -0600
++++ pdftk-1.41/java_libs/com/lowagie/text/pdf/PdfDate.java	2009-05-18 20:51:36.000000000 -0600
+@@ -74,11 +74,11 @@
+ public class PdfDate extends PdfString {

+     

+     // ssteward; static builds of pdftk (Windows, gcc 3.3.1) would

+     // omit this class because of its reference by reflection;

+     // this treatment ensures that ld will include it

+-    private static Class c1= gnu.java.locale.Calendar.class;

++    private static Class c1= java.util.Calendar.class;

+ 

+     private static final int dateSpace[] = {Calendar.YEAR, 4, 0, Calendar.MONTH, 2, -1, Calendar.DAY_OF_MONTH, 2, 0,

+         Calendar.HOUR_OF_DAY, 2, 0, Calendar.MINUTE, 2, 0, Calendar.SECOND, 2, 0};

+     

+     // constructors