Gentoo Archives: gentoo-commits

From: "Torsten Veller (tove)" <tove@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-text/po4a/files: po4a-fix-io-capture.patch
Date: Sat, 05 Sep 2009 07:02:37
Message-Id: E1MjpIC-0008DA-7R@stork.gentoo.org
1 tove 09/09/05 07:02:36
2
3 Added: po4a-fix-io-capture.patch
4 Log:
5 Version bump. Workaround (269650#c7) for the perl hangs bug (#275268). Thanks to Kent Fredric
6 (Portage version: 2.2_rc40/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 app-text/po4a/files/po4a-fix-io-capture.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/po4a/files/po4a-fix-io-capture.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/po4a/files/po4a-fix-io-capture.patch?rev=1.1&content-type=text/plain
13
14 Index: po4a-fix-io-capture.patch
15 ===================================================================
16 http://bugs.gentoo.org/show_bug.cgi?id=269650#c7
17 from Kent Fredric
18 --- po4a-0.36.4/Build.PL
19 +++ po4a-0.36.4/Build.PL
20 @@ -127,8 +127,14 @@
21 my %options;
22 $options{utf8} = 1;
23 my $parser = Pod::Man->new (%options);
24 -
25 - system("PERL5LIB=lib perl po4a --previous po/pod.cfg") and die;
26 + { # Fix for massive slowdown/Memory consumption
27 + local %ENV = %ENV;
28 + $ENV{PERL5LIB}='lib';
29 + open( my $fh, '-|', qw( perl po4a --previous po/pod.cfg )) or die;
30 + while( defined ( my $line = <$fh> ) ){
31 + print $line;
32 + }
33 + }
34 system("mkdir -p blib/man/man7") and die;
35 system("mkdir -p blib/man/man1") and die;
36 system("cp doc/po4a.7.pod blib/man/man7") and die;