[packages/debhelper] Rel 3
arekm
arekm at pld-linux.org
Thu May 21 22:44:37 CEST 2026
commit 9ff21dcf3130f41ece47962705d1634e73a5897d
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu May 21 22:44:20 2026 +0200
Rel 3
debhelper-po4a-keep.patch | 29 +++++++++++++++++++++++++++++
debhelper.spec | 4 +++-
2 files changed, 32 insertions(+), 1 deletion(-)
---
diff --git a/debhelper.spec b/debhelper.spec
index a597d1b..726af2e 100644
--- a/debhelper.spec
+++ b/debhelper.spec
@@ -6,11 +6,12 @@ Summary: Helper programs for debian/rules
Summary(pl.UTF-8): Programy pomocnicze dla debian/rules
Name: debhelper
Version: 9.20160814
-Release: 2
+Release: 3
License: GPL v2+
Group: Development/Tools
Source0: http://ftp.debian.org/debian/pool/main/d/debhelper/%{name}_%{version}.tar.xz
# Source0-md5: 2e6a77d0f969d2421260f3f75a2cf1ff
+Patch0: %{name}-po4a-keep.patch
URL: http://joeyh.name/code/debhelper/
BuildRequires: dpkg
BuildRequires: fakeroot
@@ -42,6 +43,7 @@ pakietu z systemem menu Debiana, debconfem, doc-base itp.
%prep
%setup -qc
mv %{name}/* .
+%patch -P 0 -p1
%build
%{!?with_tests:DEB_BUILD_OPTIONS=nocheck} \
diff --git a/debhelper-po4a-keep.patch b/debhelper-po4a-keep.patch
new file mode 100644
index 0000000..957fd7b
--- /dev/null
+++ b/debhelper-po4a-keep.patch
@@ -0,0 +1,29 @@
+Pass --keep 0 to po4a so that translations below the default 80% threshold
+do not cause the build to fail. Newer po4a (>= 0.55) tries to discard low-
+coverage translations; with --keep 0 every translation is kept.
+
+Also tolerate po4a's exit code and missing per-language directories.
+po4a 0.70 has a bug where its Pod.pm imports symbols from TransTractor,
+which does not inherit from Exporter; the resulting warning corrupts $?
+and the script exits 25 even after a partly-successful run. With this
+same po4a, the fr and pt translations are silently skipped (encoding
+mismatches in TransTractor), so we must not iterate through unwritten
+man/<lang> dirs either.
+
+--- debhelper-9.20160814/Makefile.orig
++++ debhelper-9.20160814/Makefile
+@@ -53,11 +53,13 @@
+ find . -maxdepth 1 -type f -perm /100 -name "dh*" \
+ -exec $(POD2MAN) {} {}.1 \;
+ ifneq ($(USE_NLS),no)
+- po4a --previous -L UTF-8 man/po4a/po4a.cfg
++ po4a --previous --keep 0 -L UTF-8 man/po4a/po4a.cfg || :
+ set -e; \
+ for lang in $(LANGS); do \
+ dir=man/$$lang; \
++ [ -d $$dir ] || continue; \
+ for file in $$dir/dh*.pod; do \
++ [ -e $$file ] || continue; \
+ prog=`basename $$file | sed 's/.pod//'`; \
+ $(POD2MAN) $$file $$prog.$$lang.1; \
+ done; \
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/debhelper.git/commitdiff/9ff21dcf3130f41ece47962705d1634e73a5897d
More information about the pld-cvs-commit
mailing list