Request gcc 34 port build gcj

Gerald Pfeifer gerald at
Mon Sep 19 05:27:13 PDT 2005

On Sat, 17 Sep 2005, Patrick Dung wrote:
> I think the problem should also appear in Linux with pdftk and gcj 4.1
> because the problem is related to itext that comes with pdftk and
> gcj41.

That's a good point.  I'm attaching the respective two files from the
current SUSE tree (one patch and the RPM spec file) which uses GCC 4.0.

Does this help?  Otherwise, looking at Fedora sources might be 
-------------- next part --------------
diff -Naur pdftk-1.12.orig/java_libs/com/lowagie/text/pdf/codec/ pdftk-1.12/java_libs/com/lowagie/text/pdf/codec/
--- pdftk-1.12.orig/java_libs/com/lowagie/text/pdf/codec/	2004-05-27 00:06:12.000000000 +0200
+++ pdftk-1.12/java_libs/com/lowagie/text/pdf/codec/	2005-08-22 12:08:55.000000000 +0200
@@ -93,7 +93,7 @@
 import com.lowagie.text.ExceptionConverter;
 import com.lowagie.text.Image;
-//SID import com.lowagie.text.ImgRaw;
+import com.lowagie.text.ImgRaw;
 import com.lowagie.text.pdf.ByteBuffer;
 import com.lowagie.text.pdf.PdfArray;
 import com.lowagie.text.pdf.PdfDictionary;
-------------- next part --------------
# spec file for package pdftk (Version 1.12)
# Copyright (c) 2005 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
# Please submit bugfixes or comments via

# neededforbuild  gcc-java gpp libgcj libgcj-devel libgpp

BuildRequires: aaa_base acl attr bash bind-utils bison bzip2 coreutils cpio cpp cracklib cvs cyrus-sasl db devs diffutils e2fsprogs file filesystem fillup findutils flex gawk gdbm-devel gettext-devel glibc glibc-devel glibc-locale gpm grep groff gzip info insserv klogd less libacl libattr libcom_err libgcc libnscd libselinux libstdc++ libxcrypt libzio m4 make man mktemp module-init-tools ncurses ncurses-devel net-tools netcfg openldap2-client openssl pam pam-modules patch permissions popt procinfo procps psmisc pwdutils rcs readline sed strace sysvinit tar tcpd texinfo timezone unzip util-linux vim zlib zlib-devel autoconf automake binutils gcc gcc-c++ gcc-java gdbm gettext libgcj libgcj-devel libstdc++-devel libtool perl rpm

Name:         pdftk
Summary:      The PDF Toolkit
Version:      1.12
Release:      4
License:      GPL
Source0:      %{name}-%{version}.tar.bz2
Patch0:       %{name}-%{version}.patch
Group:        Productivity/Publishing/PDF
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
Requires:     libgcj

Pdftk is a command-line tool for manipulating PDF documents. Use it to
merge, split PDF pages into a new document, decrypt input as necessary
(password required), encrypt output as desired, fill PDF forms with FDF
data, flatten forms, apply a background watermark, repair a corrupted
PDF (where possible), and many others.

    Sid Steward

%setup -q
%patch0 -p1

%{suse_update_config -fl}
unset CLASSPATH && cd pdftk && make -f Makefile.RedHat && cd -

mkdir -p $RPM_BUILD_ROOT/%{_bindir}
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
install -m 0755 pdftk/pdftk $RPM_BUILD_ROOT/%{_bindir}/pdftk
install -m 0644 debian/pdftk.1 $RPM_BUILD_ROOT/%{_mandir}/man1/pdftk.1
gzip $RPM_BUILD_ROOT/%{_mandir}/man1/pdftk.1


%doc pdftk.1.html  pdftk.1.notes  pdftk.1.txt

%changelog -n pdftk
* Mon Aug 22 2005 - skh at
- Fix build.
* Wed Jan 26 2005 - ke at
- New package proposed by Thomas Schraitle; version 1.12.

More information about the freebsd-ports mailing list