Witam, w załączniku patch na źródła i spec do pdftk. Nie budował się na gcc >=4.4, z patchem buduje się i działa. Przy okazji wyrzuciłem przeterminowane TODO - skoro patch na libgcj 4.3 od dawna jest i działa.
Swoją drogą, byłoby miło, gdyby ktoś mógł się pofatygować i wrzucić (lub powiedzieć, dlaczego nie wrzuci) patch na spice który wysłałem 8 grudnia. Pozdrawiam, -- Remigiusz "Enleth" Marcinkiewicz, [email protected] WWW http://enleth.com http://heroes.net.pl JID [email protected]
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
Index: pdftk.spec =================================================================== RCS file: /cvsroot/packages/pdftk/pdftk.spec,v retrieving revision 1.12 diff -u -r1.12 pdftk.spec --- pdftk.spec 17 Mar 2009 20:31:08 -0000 1.12 +++ pdftk.spec 28 Dec 2009 22:59:10 -0000 @@ -1,18 +1,15 @@ # $Revision: 1.12 $, $Date: 2009/03/17 20:31:08 $ -# TODO: -# - it does not build with libgcj 4.3: -# http://gcc.gnu.org/ml/java/2008-03/msg00033.html -# Summary: pdftk - the pdf tool kit Summary(pl.UTF-8): pdftk - Zestaw narzędzi dla plików PDF Name: pdftk Version: 1.41 -Release: 5 +Release: 6 License: GPL Group: Applications/Publishing Source0: http://www.pdfhacks.com/pdftk/%{name}-%{version}.tar.bz2 # Source0-md5: 7214230b937dc996d209c05b7b7b3518 Patch0: %{name}-libgcj-4.3.patch +Patch1: %{name}-gcc-4.4.patch URL: http://www.accesspdf.com/pdftk/ BuildRequires: gcc-java BuildRequires: libgcj-devel @@ -47,6 +44,7 @@ %prep %setup -q %patch0 -p1 +%patch1 -p1 %build unset CLASSPATH
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ pld-devel-pl mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-devel-pl
