From sysadmin@rt.ewc.edu  Tue Nov  1 21:42:18 2005
Return-Path: <sysadmin@rt.ewc.edu>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 27FB116A420
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  1 Nov 2005 21:42:18 +0000 (GMT)
	(envelope-from sysadmin@rt.ewc.edu)
Received: from mx01.ewc.edu (mx01.ewc.edu [68.152.80.7])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 6557743D48
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  1 Nov 2005 21:42:17 +0000 (GMT)
	(envelope-from sysadmin@rt.ewc.edu)
Received: from rt.ewc.edu (host-31.firewall.ewc.edu [68.152.80.31])
	by mx01.ewc.edu (8.12.9p2/8.12.9) with ESMTP id jA1LgCUL090633;
	Tue, 1 Nov 2005 16:42:13 -0500 (EST)
	(envelope-from sysadmin@rt.ewc.edu)
Received: (from sysadmin@localhost)
	by rt.ewc.edu (8.12.10/8.12.10/Submit) id jA1Lg7AF008324;
	Tue, 1 Nov 2005 16:42:07 -0500 (EST)
	(envelope-from sysadmin)
Message-Id: <200511012142.jA1Lg7AF008324@rt.ewc.edu>
Date: Tue, 1 Nov 2005 16:42:07 -0500 (EST)
From: Michael Joyner <mjoyner@ewc.edu>
Reply-To: Michael Joyner <mjoyner@ewc.edu>
To: FreeBSD-gnats-submit@freebsd.org
Cc: Michael Joyner <mjoyner@vbservices.net>
Subject: gcc3.4 does not install gcj causing pdftk to fail
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         88377
>Category:       ports
>Synopsis:       gcc3.4 does not install gcj causing pdftk to fail
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pav
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 01 21:50:16 GMT 2005
>Closed-Date:    Thu Nov 03 07:52:10 GMT 2005
>Last-Modified:  Thu Nov 03 07:52:10 GMT 2005
>Originator:     Michael Joyner
>Release:        FreeBSD 4.9-STABLE-20031202-JPSNAP i386
>Organization:
Edward Waters College
>Environment:
System: FreeBSD rt.ewc.edu 4.9-STABLE-20031202-JPSNAP FreeBSD 4.9-STABLE-20031202-JPSNAP #0: Tue Dec 2 00:30:13 GMT 2003 root@tora.jp.freebsd.org:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
The port print/pdftk requires gcj to compile.
The following patch, based on a converstation found in Google, addresses this issue by
having pdftk use gcj41. This includes corrections to the included Makefiles and Sources via REINPLACE

	
>How-To-Repeat:
Attempt to install pdftk using an up-to-date ports tree
	
>Fix:
Apply the following patch (cd /usr/ports/print; patch < pdftk.patch)
I tested this patch on both 4.9-STABLE and 5.X-STABLE, the resulting binary performed basic operations without any problems.
The resulting binary has not been fully tested for all possible operations and needs complete regression testing.
	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->gerald 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Nov 1 21:52:00 GMT 2005 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=88377 
Responsible-Changed-From-To: gerald->freebsd-ports-bugs 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Nov 1 22:24:54 GMT 2005 
Responsible-Changed-Why:  
not lang/gcc34 but print/pdftk 

http://www.freebsd.org/cgi/query-pr.cgi?pr=88377 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: patrick_dkt@yahoo.com.hk
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/88377: gcc3.4 does not install gcj causing print/pdftk to fail
Date: Tue, 1 Nov 2005 22:24:43 UT

 Maintainer of print/pdftk,
 
 Please note that PR ports/88377 just has been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/88377
 
 -- 
 Edwin Groothuis
 edwin@FreeBSD.org

From: Marcus Alves Grando <mnag@FreeBSD.org>
To: bug-followup@FreeBSD.org,  mjoyner@ewc.edu
Cc:  
Subject: Re: ports/88377: gcc3.4 does not install gcj causing pdftk to fail
Date: Tue, 01 Nov 2005 23:39:04 -0200

 Dear submitter,
 
 You forgot patch. Please submit followup.
 
 Thanks
 
 -- 
 Marcus Alves Grando
 marcus(at)corp.grupos.com.br  |  Grupos Internet S/A
   mnag(at)FreeBSD.org         |  FreeBSD.org

From: Michael Joyner <mjoyner@ewc.edu>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/88377: gcc3.4 does not install gcj causing pdftk to fail
Date: Wed, 02 Nov 2005 07:56:42 -0500

 This is a multi-part message in MIME format.
 --------------050204050007060409050100
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 
 Marcus Alves Grando wrote:
 >Dear submitter,
 >
 >You forgot patch. Please submit followup.
 >
 >Thanks
 >
 >  
 Oops!
 
 
 
 --------------050204050007060409050100
 Content-Type: text/plain;
  name="pdftk.patch"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline;
  filename="pdftk.patch"
 
 diff -U2 -urN pdftk.orig/Makefile pdftk/Makefile
 --- pdftk/Makefile	Thu Oct 20 16:11:09 2005
 +++ pdftk/Makefile	Tue Nov  1 21:25:40 2005
 @@ -19,7 +19,7 @@
  NOT_FOR_ARCHS=	amd64 ia64 sparc64
  
 -BROKEN=		"Broken dependency"
 -DEPRECATED=	${BROKEN}
 -EXPIRATION_DATE=2005-09-22
 +#BROKEN=		"Broken dependency"
 +#DEPRECATED=	${BROKEN}
 +#EXPIRATION_DATE=2005-09-22
  
  # Get gcc version suffix without the dot in USE_GCC
 @@ -29,5 +29,5 @@
  BUILD_DEPENDS=	gcj${CSUFF}:${PORTSDIR}/lang/gcc${CSUFF}
  
 -USE_GCC=	3.4
 +USE_GCC=	4.1
  USE_GMAKE=	yes
  USE_ICONV=	yes
 @@ -45,5 +45,22 @@
  	@${REINPLACE_CMD} -e "s|TOOLPATH=|TOOLPATH=${LOCALBASE}/bin/|g" ${WRKSRC}/Makefile.Generic
  	@${REINPLACE_CMD} -e "s|VERSUFF=|VERSUFF=${CSUFF}|g" ${WRKSRC}/Makefile.Generic
 -	@${REINPLACE_CMD} -e "s|CXXFLAGS= -lgcj|CXXFLAGS= -lgcj ${PTHREAD_CFLAGS} ${PTHREAD_LIBS} -liconv -lz|g" ${WRKSRC}/Makefile.Generic
 +
 +#2005-10-29 - mjoyner@vbservices.net/mjoyner@ewc.edu
 +#as shipped, pdftk compiles fine with 3.4 gcj, as we currently only have 4.1 gcj available,
 +#fix things so that it will compile. (compile tested on 5.4-STABLE)
 +#
 +#The resulting binary from using the 4.1 compiler suite has *NOT* been regression tested!
 +#Based on info found via Google USENET Search: Adam McDougall, Gerald Pfeifer
 +#
 +
 +	@${REINPLACE_CMD} -e "s|GCJFLAGS=|GCJFLAGS= -L/usr/local/lib|g" ${WRKSRC}/Makefile.Generic
 +	@${REINPLACE_CMD} -e "s|CXXFLAGS= -lgcj|CXXFLAGS= -lgcj ${PTHREAD_CFLAGS} ${PTHREAD_LIBS} -liconv -lz -L/usr/local/lib|g" \
 +			${WRKSRC}/Makefile.Generic
 +	@${REINPLACE_CMD} -e "s|//SID import com.lowagie.text.ImgRaw;|import com.lowagie.text.ImgRaw;|g" \
 +			${WRKSRC}/../java_libs/com/lowagie/text/pdf/codec/PngImage.java
 +	@${REINPLACE_CMD} -e "s|^..java_libs_root./gnu/gcj/convert/convert.a|# x-nay the convert.a|g" ${WRKSRC}/Makefile.Base
 +	@${REINPLACE_CMD} -e "s|^..java_libs_root./gnu_local/java/security/security.a .|$$\(java_libs_root\)/gnu_local/java/security/security.a|g" ${WRKSRC}/Makefile.Base
 +
 +
  
  do-install:
 
 --------------050204050007060409050100--
Responsible-Changed-From-To: freebsd-ports-bugs->pav 
Responsible-Changed-By: pav 
Responsible-Changed-When: Wed Nov 2 23:23:26 GMT 2005 
Responsible-Changed-Why:  
I'm poking this 

http://www.freebsd.org/cgi/query-pr.cgi?pr=88377 
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Thu Nov 3 07:51:59 GMT 2005 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=88377 
>Unformatted:
