Bug#507365: "dh_installtex --flavor ..." doesn't work with recent debhelper
Package: tex-common
Version: 1.13
Severity: normal
Tags: patch
With recent debhelper (>= 7.1.0), debhelper programs like dh_installtex
need to define their own special options (e.g. --flavors) by passing a
hash to init(),
otherwise they won't get parsed and hence won't show up in e.g. $dh{FLAVORS}.
This breaks the build of e.g. context.
Fix attached.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.28-rc6 (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages tex-common depends on:
ii cdebconf 0.137 Debian Configuration Management Sy
ii debconf 1.5.24 Debian configuration management sy
ii dpkg 1.14.23 Debian package management system
ii ucf 3.009 Update Configuration File: preserv
tex-common recommends no packages.
Versions of packages tex-common suggests:
ii debhelper 7.1.0 helper programs for debian/rules
Versions of packages texlive-base depends on:
ii texlive-base-bin 2007.dfsg.2-4 TeX Live: Essential binaries
ii texlive-common 2007.dfsg.1-4 TeX Live: Base component
ii texlive-doc-base 2007.dfsg.1-1 TeX Live: Base documentation
-- debconf information:
tex-common/check_texmf_wrong:
tex-common/check_texmf_missing:
--- tex-common-1.13-ORIG/scripts/dh_installtex 2008-11-28 21:26:05.000000000 +0100
+++ tex-common-1.13/scripts/dh_installtex 2008-11-28 21:28:35.000000000 +0100
@@ -233,7 +233,9 @@
=cut
-init();
+init(options => {
+ "flavor=s" => \$dh{FLAVOR},
+});
Reply to: