Source: quilt Version: 0.61-1 Severity: wishlist Tags: patch
quilt is unfortunately still needed comparatively early in the Debian bootstrap process, as for example python2.7 Build-Depends on it. At this stage of bootstrapping, lynx and especially hevea would be very difficult to bootstrap on their own. So, the attached patch makes it possible to bootstrap the package without its docs, without hevea or lynx installed. -- Daniel Schepler
diff -urN quilt-0.61.old/debian/rules quilt-0.61/debian/rules --- quilt-0.61.old/debian/rules 2013-12-08 16:02:32.000000000 -0800 +++ quilt-0.61/debian/rules 2014-02-07 12:05:32.101587273 -0800 @@ -22,11 +22,15 @@ dh_auto_build # Build a HTML/txt copy of the documentation mkdir -p doc/tmp +ifeq (,$(findstring stage1,$(DEB_BUILD_PROFILES))) cd doc/tmp; LC_ALL=C hevea ../main.tex ; LC_ALL=C hevea ../main.tex; LC_ALL=C hevea ../main.tex perl -pe 'if (/\\sh{.*}/) {s:\\sh{(.*)}:<I>$$1</I>:}' \ < doc/tmp/main.html > doc/quilt.html LC_ALL=C perl -e '$$/ = undef; $$f=<>; $$f =~ s|<A[^>]*?HREF="[^"]*#[^"]*">(.*?)</A>|$$1|msg; print $$f;' < doc/tmp/main.html > doc/tmp/tmp.html LC_ALL=C lynx doc/tmp/tmp.html -dump > doc/quilt.txt +else + touch doc/quilt.html doc/quilt.txt +endif rm -rf doc/tmp pod2man -c Debhelper debian/dh_quilt_patch debian/dh_quilt_patch.1 pod2man -c Debhelper debian/dh_quilt_unpatch debian/dh_quilt_unpatch.1