Source: po-debconf Version: 1.0.16+nmu2 Severity: wishlist Tags: patch As the subject says: the attached patch allows for bootstrapping po-debconf in a situation where po4a is not yet available.
(Context: my pbuildd project has the aim of being able to bootstrap the Debian archive from source packages, starting from a minimal debootstrap chroot. As po-debconf is a binary dependency of debhelper, that makes it crucial to bootstrap po-debconf very early in the process, whereas the complex dependencies of po4a make it less viable to bootstrap that so early.) -- Daniel Schepler
diff -urN po-debconf-1.0.16+nmu2.old/debian/rules po-debconf-1.0.16+nmu2/debian/rules --- po-debconf-1.0.16+nmu2.old/debian/rules 2011-12-29 08:33:42.000000000 -0800 +++ po-debconf-1.0.16+nmu2/debian/rules 2013-05-23 13:02:42.431492819 -0700 @@ -31,12 +31,16 @@ install -m 0755 debconf-updatepo po2debconf debconf-gettextize $(CURDIR)/debian/po-debconf/usr/bin/ install -m 0755 podebconf-display-po podebconf-report-po $(CURDIR)/debian/po-debconf/usr/bin/ install -m 0644 encodings pot-header $(CURDIR)/debian/po-debconf/usr/share/po-debconf +ifneq ($(DEB_BUILD_PROFILE),stage1) install -m 0644 doc/vi/*.html $(CURDIR)/debian/po-debconf/usr/share/doc/po-debconf/manpages.vi +endif for t in translators translators-po submit submit-po call call-po; do \ install -m 0644 podebconf-report-po_templates/$$t \ $(CURDIR)/debian/po-debconf/usr/share/po-debconf/templates; \ done +ifneq ($(DEB_BUILD_PROFILE),stage1) dh_installman doc/en/*.[1-7] doc/de/*.de.[1-7] doc/fr/*.fr.[1-7] doc/pt/*.pt.[1-7] doc/ru/*.ru.[1-7] doc/vi/*.vi.[1-7] +endif dh_installchangelogs dh_compress dh_link diff -urN po-debconf-1.0.16+nmu2.old/doc/Makefile po-debconf-1.0.16+nmu2/doc/Makefile --- po-debconf-1.0.16+nmu2.old/doc/Makefile 2011-12-29 08:23:44.000000000 -0800 +++ po-debconf-1.0.16+nmu2/doc/Makefile 2013-05-23 13:01:35.662125720 -0700 @@ -7,6 +7,7 @@ po-debconf.7 default: +ifneq ($(DEB_BUILD_PROFILE),stage1) po4a -v --previous --rm-backups \ --package-name po-debconf \ --package-version $(VERSION) \ @@ -42,8 +43,11 @@ test -f vi/$$m.pod || continue; \ pod2html --quiet --noindex vi/$$m.pod > vi/$$m.html; \ done +endif clean: +ifneq ($(DEB_BUILD_PROFILE),stage1) po4a --previous --rm-translations --rm-backups po4a/po-debconf.cfg +endif -rm -f de/*.? en/*.? fr/*.? pt/*.? ru/*.? vi/*.? vi/*.?.html pod2htmd.tmp pod2htmi.tmp

