You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-text/po4a/files/0.41-po4a-build.patch

17 lines
589 B

--- a/Po4aBuilder.pm
+++ b/Po4aBuilder.pm
@@ -29,7 +29,12 @@
my $self = shift;
$self->depends_on('binpo');
$self->make_files_writable("po/pod");
- system("./share/po4a-build -f po4a-build.conf") && die;
+ { # Fix for massive slowdown/Memory consumption
+ open( my $fh, '-|', qw( ./share/po4a-build -f po4a-build.conf )) or die;
+ while( defined ( my $line = <$fh> ) ){
+ print $line;
+ }
+ }
File::Path::mkpath( File::Spec->catdir( 'blib', 'manl10n' ), 0, oct(777) );
system ("cp -R _build/po4a/man/* blib/manl10n") && die;
}