Bug 177275 - print/pdftk does not compile
Summary: print/pdftk does not compile
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Greg Larkin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-22 19:50 UTC by Beeblebrox
Modified: 2013-07-19 16:20 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Beeblebrox 2013-03-22 19:50:02 UTC
compile breaks with below message. All options in make.conf were disabled for the debug (no ccache, make_jobs, cflags, etc)

com/lowagie/text/pdf/AcroFields.java: In method 'com.lowagie.text.pdf.AcroFields.renameField(java.lang.String,java.lang.String)':
In file included from com/lowagie/text/pdf/AcroFields.java:1754:0,
                 from com/lowagie/text/pdf/AcroFields.java:1715,
                 from com/lowagie/text/pdf/AcroFields.java:1325,
                 from com/lowagie/text/pdf/AcroFields.java:1361,
                 from com/lowagie/text/markup/MarkupTags.java:63,
                 from com/lowagie/text/markup/MarkupParser.java:746,
                 from com/lowagie/text/xml/xmp/XmpWriter.java:281,
                 from com/lowagie/text/xml/xmp/XmpSchema.java:162,
                 from com/lowagie/text/xml/xmp/XmpMMSchema.java:102,
                 from com/lowagie/text/xml/xmp/XmpBasicSchema.java:146,
                 from com/lowagie/text/xml/xmp/XmpArray.java:103,
                 from com/lowagie/text/xml/xmp/PdfSchema.java:110,
                 from com/lowagie/text/xml/xmp/DublinCoreSchema.java:197,
                 from com/lowagie/text/pdf/fonts/FontsResourceAnchor.java:88,
                 from <built-in>:3:
com/lowagie/text/pdf/AcroFields.java:327:0: error: cannot find file for class com.lowagie.text.pdf.PdfString
com/lowagie/text/pdf/AcroFields.java:327: confused by earlier errors, bailing out
gmake[1]: [java_lib.o] Error 1 (ignored)
gmake[1]: Leaving directory `/usr/obj/asp/ports/print/pdftk/work/pdftk-1.45-dist/java'
/usr/local/bin/g++46 -DPATH_DELIM=0x2f -DASK_ABOUT_WARNINGS=false -DUNBLOCK_SIGNALS -fdollars-in-identifiers -DPDFTK_VER=\"1.45\" -Wall -Wextra -Weffc++ -O2 -I../java pdftk.cc -c
pdftk.cc:64:44: fatal error: com/lowagie/text/pdf/PdfString.h: No such file or directory
compilation terminated.
gmake: *** [pdftk.o] Error 1
*** [do-build] Error code 1

Fix: 

NA
How-To-Repeat: make print/pdftk.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-03-22 19:50:10 UTC
Responsible Changed
From-To: freebsd-ports-bugs->glarkin

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Greg Larkin freebsd_committer freebsd_triage 2013-07-18 20:57:34 UTC
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Please apply this patch and retest for me when you have a moment.  I
have tried using redports.org to build in a 10-CURRENT environment, but
it has a bug that causes the build to fail.

http://people.freebsd.org/~glarkin/diffs/pdftk-10.diff

Regards,
Greg

- -- 
Greg Larkin

http://www.FreeBSD.org/           - The Power To Serve
http://www.sourcehosting.net/     - Ready. Set. Code.
http://twitter.com/cpucycle/      - Follow you, follow me
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlHoSK4ACgkQ0sRouByUApAtLQCfTiqK2I6YwGxSRye/vwQtl4w2
4m8AoKLL9/Gz32S23yUQhoHfAHL9Ftgk
=laj2
-----END PGP SIGNATURE-----
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-07-19 16:15:59 UTC
Author: glarkin
Date: Fri Jul 19 15:15:47 2013
New Revision: 323303
URL: http://svnweb.freebsd.org/changeset/ports/323303

Log:
  - Fixed build on 10-CURRENT where /usr/bin/cpp is supplied by clang. The
    port now explicitly uses cpp46 which is supplied by the gcc dependency.
  
  PR:		ports/177275
  PR:		ports/177974
  Submitted by:	Beeblebrox <zaphod@berentweb.com>
  Submitted by:	Oliver Hartmann <ohartman@zedat.fu-berlin.de>

Added:
  head/print/pdftk/files/patch-java__Makefile   (contents, props changed)
Modified:
  head/print/pdftk/Makefile

Modified: head/print/pdftk/Makefile
==============================================================================
--- head/print/pdftk/Makefile	Fri Jul 19 15:12:46 2013	(r323302)
+++ head/print/pdftk/Makefile	Fri Jul 19 15:15:47 2013	(r323303)
@@ -9,10 +9,14 @@ MASTER_SITES=	http://www.pdflabs.com/too
 DISTNAME=	${PORTNAME}-${PORTVERSION}-src
 
 MAINTAINER=	glarkin@FreeBSD.org
-COMMENT=	A simple tool for doing everyday things with PDF documents
+COMMENT=	Simple tool for doing everyday things with PDF documents
 
 USE_ZIP=	yes
 
+BUILD_DEPENDS=	gcj${CSUFF}:${PORTSDIR}/lang/gcc${CSUFF} \
+		gcjh${CSUFF}:${PORTSDIR}/lang/gcc${CSUFF} \
+		cpp${CSUFF}:${PORTSDIR}/lang/gcc${CSUFF}
+
 # Get gcc version suffix without the dot in USE_GCC
 CSUFF=		${_USE_GCC:S/.//}
 
@@ -29,7 +33,8 @@ PATCH_WRKSRC=	${WRKDIR}/${PORTNAME}-${PO
 WRKSRC=		${PATCH_WRKSRC}/${PORTNAME}
 
 MAKEFILE=	Makefile.FreeBSD
-MAKE_ENV=	GCJ=gcj${CSUFF} GCJH=gcjh${CSUFF} OBJCOPY=${OBJCOPY} LANG=C
+MAKE_ENV=	GCJ=gcj${CSUFF} GCJH=gcjh${CSUFF} GCPP=cpp${CSUFF} \
+		OBJCOPY=${OBJCOPY} LANG=C LC_CTYPE=C
 
 MAN1=		${PORTNAME}.1
 PLIST_FILES=	bin/pdftk

Added: head/print/pdftk/files/patch-java__Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/print/pdftk/files/patch-java__Makefile	Fri Jul 19 15:15:47 2013	(r323303)
@@ -0,0 +1,21 @@
+--- ./java/Makefile.orig	2013-07-18 14:58:41.000000000 -0400
++++ ./java/Makefile	2013-07-18 14:59:08.000000000 -0400
+@@ -21,9 +21,9 @@
+ # preprocess this file so it might include our local copies of library objects: libgcj_local
+ com/lowagie/text/pdf/PdfEncryption.java : com/lowagie/text/pdf/PdfEncryption.java.c
+ ifdef USE_LOCAL_LIBGCJ
+-	cpp -C -P -DPDFTK_JAVA_LOCAL com/lowagie/text/pdf/PdfEncryption.java.c com/lowagie/text/pdf/PdfEncryption.java
++	${GCPP} -C -P -DPDFTK_JAVA_LOCAL com/lowagie/text/pdf/PdfEncryption.java.c com/lowagie/text/pdf/PdfEncryption.java
+ else
+-	cpp -C -P com/lowagie/text/pdf/PdfEncryption.java.c com/lowagie/text/pdf/PdfEncryption.java
++	${GCPP} -C -P com/lowagie/text/pdf/PdfEncryption.java.c com/lowagie/text/pdf/PdfEncryption.java
+ endif
+ 
+ #
+@@ -102,4 +102,4 @@
+ libgcj_local_clean :
+ 	$(MAKE) -iC "$(JAVALIBPATH)/gnu_local/java/security" clean;
+ 	$(MAKE) -iC "$(JAVALIBPATH)/gnu_local/java/security/provider" clean;
+-	$(MAKE) -iC "$(JAVALIBPATH)/java_local/security" clean;
+\ No newline at end of file
++	$(MAKE) -iC "$(JAVALIBPATH)/java_local/security" clean;
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 4 Greg Larkin freebsd_committer freebsd_triage 2013-07-19 16:17:00 UTC
State Changed
From-To: open->closed

Committed fix for 10-CURRENT, thank you!