Source: debhelper
Version: 9.20130518
Severity: wishlist
Tags: patch

With the attached patch, I can run "USE_NLS=no dpkg-buildpackage -d -b -uc" on 
the debhelper source package without po4a installed.

(The context: in my pbuildd project, I'm trying to make it possible to 
bootstrap the Debian archive from source packages, starting from a minimal 
debootstrap chroot.  Of course, debhelper is one of the first things that has 
to be bootstrapped, while po4a has a lot of dependencies which are much harder 
to bootstrap at such an early stage.)
-- 
Daniel Schepler
diff -urN debhelper-9.20130518.old/Makefile debhelper-9.20130518/Makefile
--- debhelper-9.20130518.old/Makefile	2013-02-09 13:34:26.000000000 -0800
+++ debhelper-9.20130518/Makefile	2013-05-23 10:31:15.088107685 -0700
@@ -80,7 +80,9 @@
 
 clean:
 	rm -f *.1 *.7 Debian/Debhelper/Dh_Version.pm
+ifneq ($(USE_NLS),no)
 	po4a --previous --rm-translations --rm-backups man/po4a/po4a.cfg
+endif
 	for lang in $(LANGS); do \
 		if [ -e man/$$lang ]; then rmdir man/$$lang; fi; \
 	done;

Reply via email to