Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Nov 2005 13:00:26 GMT
From:      Michael Joyner <mjoyner@ewc.edu>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/88377: gcc3.4 does not install gcj causing pdftk to fail
Message-ID:  <200511021300.jA2D0Qkv094863@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/88377; it has been noted by GNATS.

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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511021300.jA2D0Qkv094863>