Date: Wed, 22 Dec 2010 15:28:09 +0100 From: Torfinn Ingolfsen <tingox@gmail.com> To: FreeBSD Ports ML <freebsd-ports@freebsd.org>, sylvio@freebsd.org Subject: Re: gscan2pdf 0.9.31 doesn't work Message-ID: <AANLkTimyzbGzUXd5DWrb6jucgG-qmOtCOSSHFJd%2Bxt0=@mail.gmail.com> In-Reply-To: <AANLkTinLzuk9Tff3=p4bm4uQuGHAsQB-9uWy8qoLQ34W@mail.gmail.com> References: <AANLkTi=7Ku53cKwKBJESYZv4cywNPdq0vhk=L40CS%2B1m@mail.gmail.com> <AANLkTi=01Lv_Mq4RmXJKFAYnEyBDtyyJ5C3J-OOQMn7w@mail.gmail.com> <AANLkTi=iBrzP2w=A4-bZQCPMt4=RsxwJ8G0g8-vFvuhZ@mail.gmail.com> <AANLkTinLzuk9Tff3=p4bm4uQuGHAsQB-9uWy8qoLQ34W@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Now reported as ports/153370: http://www.freebsd.org/cgi/query-pr.cgi?pr=3D= 153370 On Wed, Dec 22, 2010 at 12:42 PM, Torfinn Ingolfsen <tingox@gmail.com> wrot= e: > Ok, well, I can't believe I overlooked this: there is a line in the > Makefile of the ports which specifically deletes a few lines from the > gscan2pdf perl script (probably from an older version). Simply remove > that, and gscan2pdf can be started again. > Here's a diff: > root@kg-v2# diff -u Makefile.org Makefile > --- Makefile.org =A0 =A0 =A0 =A02010-10-16 01:04:38.000000000 +0200 > +++ Makefile =A0 =A02010-12-22 12:42:18.000000000 +0100 > @@ -65,6 +65,5 @@ > =A0 =A0 =A0 =A0@${REINPLACE_CMD} -e > 's/--parents/-p/g;s|$$sharedir/man|${MANPREFIX}/man|g;s|1p|1|g'\ > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0-e '/SITEPREFIX/s|/usr|${PREFIX}|' ${WRKSR= C}/Makefile.PL > =A0 =A0 =A0 =A0@${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|g' > ${WRKSRC}/bin/${PORTNAME} > - =A0 =A0 =A0 @${REINPLACE_CMD} -e '8745,8748d' ${WRKSRC}/bin/${PORTNAME} > > =A0.include <bsd.port.mk> > > HTH > > On Wed, Dec 22, 2010 at 10:02 AM, Torfinn Ingolfsen <tingox@gmail.com> wr= ote: >> Hello, >> There has been an update (a commit on Oct 12th, 2010 which touches >> this port) but things haven't improved for gscan2pdf: >> tingo@kg-v2$ uname -a >> FreeBSD kg-v2.kg4.no 8.1-STABLE FreeBSD 8.1-STABLE #3: Thu Sep 16 >> 22:18:48 CEST 2010 =A0 =A0 root@kg-v2.kg4.no:/usr/obj/usr/src/sys/GENERI= C >> amd64 >> >> tingo@kg-v2$ gscan2pdf >> Constant subroutine main::LC_CTYPE redefined at >> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >> =A0at /usr/local/bin/gscan2pdf line 165 >> Prototype mismatch: sub main::LC_CTYPE () vs none at >> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >> =A0at /usr/local/bin/gscan2pdf line 165 >> Constant subroutine main::LC_NUMERIC redefined at >> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >> =A0at /usr/local/bin/gscan2pdf line 165 >> Prototype mismatch: sub main::LC_NUMERIC () vs none at >> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >> =A0at /usr/local/bin/gscan2pdf line 165 >> Constant subroutine main::LC_TIME redefined at >> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >> =A0at /usr/local/bin/gscan2pdf line 165 >> Prototype mismatch: sub main::LC_TIME () vs none at >> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >> =A0at /usr/local/bin/gscan2pdf line 165 >> Constant subroutine main::LC_COLLATE redefined at >> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >> =A0at /usr/local/bin/gscan2pdf line 165 >> Prototype mismatch: sub main::LC_COLLATE () vs none at >> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >> =A0at /usr/local/bin/gscan2pdf line 165 >> Constant subroutine main::LC_MONETARY redefined at >> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >> =A0at /usr/local/bin/gscan2pdf line 165 >> Prototype mismatch: sub main::LC_MONETARY () vs none at >> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >> =A0at /usr/local/bin/gscan2pdf line 165 >> Constant subroutine main::LC_MESSAGES redefined at >> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >> =A0at /usr/local/bin/gscan2pdf line 165 >> Prototype mismatch: sub main::LC_MESSAGES () vs none at >> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >> =A0at /usr/local/bin/gscan2pdf line 165 >> Constant subroutine main::LC_ALL redefined at >> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >> =A0at /usr/local/bin/gscan2pdf line 165 >> Prototype mismatch: sub main::LC_ALL () vs none at >> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >> =A0at /usr/local/bin/gscan2pdf line 165 >> Bareword found where operator expected at /usr/local/bin/gscan2pdf >> line 8849, near "'button" >> =A0(Might be a runaway multi-line '' string starting on line 8723) >> =A0 =A0 =A0 =A0(Missing operator before button?) >> syntax error at /usr/local/bin/gscan2pdf line 8849, near "'button" >> Bad name after event' at /usr/local/bin/gscan2pdf line 8849. >> >> Am I the only one using gscan2pdf under FreeBSD? >> If not, are anyone else having problem? >> Or better, if anyone has a clue on fixing this, please sound up! >> >> On Sat, Sep 25, 2010 at 6:15 PM, Torfinn Ingolfsen <tingox@gmail.com> wr= ote: >>> New test, the machine is now upgraded to FreeBSD 8.1-stable: >>> tingo@kg-v2$ uname -a >>> FreeBSD kg-v2.kg4.no 8.1-STABLE FreeBSD 8.1-STABLE #3: Thu Sep 16 22:18= :48 >>> CEST 2010=A0=A0=A0=A0 root@kg-v2.kg4.no:/usr/obj/usr/src/sys/GENERIC=A0= amd64 >>> Perl is upgraded to 5.10 (and all ports depnding on it reinstalled as p= er >>> /usr/ports/UPDATING): >>> root@kg-v2# portversion -v | grep ^perl >>> perl-5.10.1_2=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D=A0 up-to-da= te with port >>> perltidy-20090616=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D=A0 up-to-date with = port >>> >>> the latest version of gsnan2pdf is installed: >>> root@kg-v2# portversion -v | grep gscan2pdf >>> gscan2pdf-0.9.31=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D=A0 up-to-date wit= h port >>> >>> When I start gscan2pdf, I get this: >>> tingo@kg-v2$ gscan2pdf >>> Constant subroutine main::LC_CTYPE redefined at >>> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >>> =A0at /usr/local/bin/gscan2pdf line 165 >>> Prototype mismatch: sub main::LC_CTYPE () vs none at >>> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >>> =A0at /usr/local/bin/gscan2pdf line 165 >>> Constant subroutine main::LC_NUMERIC redefined at >>> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >>> =A0at /usr/local/bin/gscan2pdf line 165 >>> Prototype mismatch: sub main::LC_NUMERIC () vs none at >>> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >>> =A0at /usr/local/bin/gscan2pdf line 165 >>> Constant subroutine main::LC_TIME redefined at >>> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >>> =A0at /usr/local/bin/gscan2pdf line 165 >>> Prototype mismatch: sub main::LC_TIME () vs none at >>> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >>> =A0at /usr/local/bin/gscan2pdf line 165 >>> Constant subroutine main::LC_COLLATE redefined at >>> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >>> =A0at /usr/local/bin/gscan2pdf line 165 >>> Prototype mismatch: sub main::LC_COLLATE () vs none at >>> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >>> =A0at /usr/local/bin/gscan2pdf line 165 >>> Constant subroutine main::LC_MONETARY redefined at >>> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >>> =A0at /usr/local/bin/gscan2pdf line 165 >>> Prototype mismatch: sub main::LC_MONETARY () vs none at >>> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >>> =A0at /usr/local/bin/gscan2pdf line 165 >>> Constant subroutine main::LC_MESSAGES redefined at >>> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >>> =A0at /usr/local/bin/gscan2pdf line 165 >>> Prototype mismatch: sub main::LC_MESSAGES () vs none at >>> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >>> =A0at /usr/local/bin/gscan2pdf line 165 >>> Constant subroutine main::LC_ALL redefined at >>> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >>> =A0at /usr/local/bin/gscan2pdf line 165 >>> Prototype mismatch: sub main::LC_ALL () vs none at >>> /usr/local/lib/perl5/5.10.1/Exporter.pm line 67. >>> =A0at /usr/local/bin/gscan2pdf line 165 >>> Bareword found where operator expected at /usr/local/bin/gscan2pdf line >>> 8849, near "'button" >>> =A0 (Might be a runaway multi-line '' string starting on line 8723) >>> =A0=A0=A0 (Missing operator before button?) >>> syntax error at /usr/local/bin/gscan2pdf line 8849, near "'button" >>> Bad name after event' at /usr/local/bin/gscan2pdf line 8849. >>> >>> Does nayone know how to fix this? >>> >>> Have a nice day. >>> -- >>> Regards, >>> Torfinn Ingolfsen >>> >> >> And if wish you all stress-free preparations for the holidays. >> -- >> Regards, >> Torfinn Ingolfsen >> > > > > -- > mvh > Torfinn > --=20 mvh Torfinn
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimyzbGzUXd5DWrb6jucgG-qmOtCOSSHFJd%2Bxt0=>