summaryrefslogtreecommitdiff
path: root/system/po4a/disable-stats.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2022-05-07 20:31:50 -0500
committerZach van Rijn <me@zv.io>2022-05-07 23:19:07 -0500
commit89e905cb908f6773fdd1035b450806e046b9e349 (patch)
treedfdec455e75ddd19103d3394ec132161e21412ad /system/po4a/disable-stats.patch
parent0bc72ec228c3f88c523dfeb27bd3bcd0c3768aca (diff)
downloadpackages-89e905cb908f6773fdd1035b450806e046b9e349.tar.gz
packages-89e905cb908f6773fdd1035b450806e046b9e349.tar.bz2
packages-89e905cb908f6773fdd1035b450806e046b9e349.tar.xz
packages-89e905cb908f6773fdd1035b450806e046b9e349.zip
system/po4a: Update to 0.66
* Remove -lang as we don't package the Perl gettext bindings. * Add more notes about tests; about 200/300 pass.
Diffstat (limited to 'system/po4a/disable-stats.patch')
-rw-r--r--system/po4a/disable-stats.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/system/po4a/disable-stats.patch b/system/po4a/disable-stats.patch
new file mode 100644
index 000000000..765a38520
--- /dev/null
+++ b/system/po4a/disable-stats.patch
@@ -0,0 +1,22 @@
+gettext-tiny msgfmt(1) does not support --statistics.
+
+If we try to generate statistics anyway (purely cosmetic), we receive:
+
+ po/bin (pot: 32912)
+ Unparsable content
+ Illegal division by zero at Po4aBuilder.pm line 297.
+
+This is because stdout/stderr is empty.
+
+--- po4a-0.66/Po4aBuilder.pm.old 2022-01-01 18:10:18.000000000 -0600
++++ po4a-0.66/Po4aBuilder.pm 2022-05-07 19:42:25.316006467 -0500
+@@ -15,7 +15,8 @@
+ $self->depends_on('docs');
+ $self->depends_on('distmeta'); # regenerate META.yml
+ $self->depends_on('man');
+- $self->depends_on('postats');
++ # We don't need to show stats at the end.
++ # $self->depends_on('postats');
+ }
+
+ sub make_files_writable {