Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5

2010-05-14 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gerald Pfeifer wrote: > On Mon, 10 May 2010, Tsurutani Naoki wrote: >>> I just had an idea -- how about the patch below to allow pdftk to build >>> also in a LANG=ja_JP.eucJP setting? >> It works fine on my host ! >> Thank you !! > > Excellent, thank

Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5

2010-05-13 Thread Gerald Pfeifer
On Mon, 10 May 2010, Tsurutani Naoki wrote: >> I just had an idea -- how about the patch below to allow pdftk to build >> also in a LANG=ja_JP.eucJP setting? > It works fine on my host ! > Thank you !! Excellent, thank you for the confirmation! Greg, do you approve? (This addresses fifty percen

Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5

2010-05-09 Thread Tsurutani Naoki
Gerald Pfeifer wrote: > I just had an idea -- how about the patch below to allow pdftk to build > also in a LANG=ja_JP.eucJP setting? > > Does this work? > > Gerald > > Index: Makefile > === > RCS file: /home/ncvs/ports/print/pdf

Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5

2010-05-09 Thread Gerald Pfeifer
I just had an idea -- how about the patch below to allow pdftk to build also in a LANG=ja_JP.eucJP setting? Does this work? Gerald Index: Makefile === RCS file: /home/ncvs/ports/print/pdftk/Makefile,v retrieving revision 1.30 diff

Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5

2010-04-29 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tsurutani Naoki wrote: > Thank you for your fix. > pdftk can be built and executed with gcc42. > however, it requires gcc42 when we run pdftk. > we need some kinds of > RUN_DEPENDS= > ${LOCALBASE}/lib/gcc${CSUFF}/libgcj.so:${PORTSDIR}/lang/gcc${CSUFF

Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5

2010-04-29 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tsurutani Naoki wrote: > Greg Larkin wrote: > >> As far as I can tell, this error is caused by the LANG setting which >> changes the line: >> >> if (value.startsWith("\"")) >> >> into something that results an unterminated string. I suppose the

Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5

2010-04-22 Thread Tsurutani Naoki
Greg Larkin wrote: > As far as I can tell, this error is caused by the LANG setting which > changes the line: > > if (value.startsWith("\"")) > > into something that results an unterminated string. I suppose the > backslash loses its meaning as an escape character. > > I found some refe

Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5

2010-04-21 Thread Tsurutani Naoki
Thank you for your fix. pdftk can be built and executed with gcc42. however, it requires gcc42 when we run pdftk. we need some kinds of RUN_DEPENDS= ${LOCALBASE}/lib/gcc${CSUFF}/libgcj.so:${PORTSDIR}/lang/gcc${CSUFF} in print/pdftk/Makefile, I think. --- Tsurutani Naoki turut...@scphys.kyoto

Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5

2010-04-20 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tsurutani Naoki wrote: > Greg Larkin wrote: > [... original patching instructions deleted ...] > [... results of first patch set testing ...] > > 1. FreeBSD/amd64 8-STABLE : building OK, but failed to run. > % uname -a > FreeBSD h116.65.226.10.32118

Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5

2010-04-15 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gerald Pfeifer wrote: > On Tue, 13 Apr 2010, Greg Larkin wrote: >> Ok, I see why there's a problem now. My linker hints were set up in >> such a way that /usr/local/lib/gcc45 appeared before /usr/lib, so I >> didn't have the libstdc++.so.6 problem. H

Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5

2010-04-15 Thread Gerald Pfeifer
On Tue, 13 Apr 2010, Greg Larkin wrote: > Ok, I see why there's a problem now. My linker hints were set up in > such a way that /usr/local/lib/gcc45 appeared before /usr/lib, so I > didn't have the libstdc++.so.6 problem. However, that's not a normal > configuration, so we have to fix this anothe

Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5

2010-04-13 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tsurutani Naoki wrote: [...] > 2. FreeBSD/amd64 8-STABLE, with LANG=ja_JP.eucJP : building failure. > gmake -C > "/usr/local/work/usr/ports/print/pdftk/work/pdftk-1.41/java_libs/com/lowagie/text"; > gmake[2]: Entering directory > `/usr/local/work/usr

Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5

2010-04-13 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tsurutani Naoki wrote: > Greg Larkin wrote: > >> Can you run the following command for me on your system? >> >> ldconfig -r | grep gcc45 > > % ldconfig -r | grep gcc45 > search directories: [...] > > % ldconfig -r | grep libstdc++.so.6 >

Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5

2010-04-12 Thread Tsurutani Naoki
Greg Larkin wrote: > Can you run the following command for me on your system? > > ldconfig -r | grep gcc45 % ldconfig -r | grep gcc45 search directories: /lib:/usr/lib:/usr/lib/compat:/usr/local/lib:/usr/local/lib/compat/pkg:/usr/site/lib:/usr/loc al/lib/compat:/usr/local/lib/evolution

Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5

2010-04-12 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gerald Pfeifer wrote: > On Fri, 9 Apr 2010, Gerald Pfeifer wrote: >> As for the lang/gcc42 issue, I have an idea of how to fix that and will >> give it try now and share the patch if it works for me. > > The patch below passes testing for me, and I c

Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5

2010-04-12 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tsurutani Naoki wrote: > Greg Larkin wrote: > >> You can find the patches here: >> >> http://people.freebsd.org/~glarkin/diffs/gcc45%2bgcj.diff >> http://people.freebsd.org/~glarkin/diffs/pdftk%2bgcc45.diff >> >> Fetch each patch file into /usr/ports

Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5

2010-04-12 Thread Gerald Pfeifer
On Fri, 9 Apr 2010, Gerald Pfeifer wrote: > As for the lang/gcc42 issue, I have an idea of how to fix that and will > give it try now and share the patch if it works for me. The patch below passes testing for me, and I consider it The Right Thing[TM] directionally, too. The two actual changes ar

Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5

2010-04-10 Thread Tsurutani Naoki
Greg Larkin wrote: > You can find the patches here: > > http://people.freebsd.org/~glarkin/diffs/gcc45%2bgcj.diff > http://people.freebsd.org/~glarkin/diffs/pdftk%2bgcc45.diff > > Fetch each patch file into /usr/ports and then run: > > patch < gcc45+gcj.diff > patch < pdftk+gcc45.diff > cd pri

Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5

2010-04-09 Thread Gerald Pfeifer
On Thu, 8 Apr 2010, Greg Larkin wrote: > I maintain the print/pdftk port, and lately it's been getting harder to > support compiling it with gcj42 from the lang/gcc42 port. If lang/gcc45 > is also installed on the machine, then gcj42 uses the wrong binutils and > hilarity ensues. Thanks for pushi

CFT: print/pdftk port compiled with Java compiler from gcc 4.5

2010-04-08 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everyone, I maintain the print/pdftk port, and lately it's been getting harder to support compiling it with gcj42 from the lang/gcc42 port. If lang/gcc45 is also installed on the machine, then gcj42 uses the wrong binutils and hilarity ensues. It