From 989b3dce4d4d273f609395fa0daa08839e2bd312 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 16 Feb 2010 14:52:06 -0500 Subject: [PATCH] dh: Disable option bundling to avoid mis-parsing bundled options such as "-Bpython-support". Closes: #570039 --- Debian/Debhelper/Dh_Getopt.pm | 9 ++++----- debian/changelog | 7 +++++++ dh | 2 ++ 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/Debian/Debhelper/Dh_Getopt.pm b/Debian/Debhelper/Dh_Getopt.pm index f536487..f3649fc 100644 --- a/Debian/Debhelper/Dh_Getopt.pm +++ b/Debian/Debhelper/Dh_Getopt.pm @@ -70,6 +70,10 @@ sub getoptions { my $array=shift; my %params=@_; + if (! exists $params{bundling} || $params{bundling}) { + Getopt::Long::config("bundling"); + } + my @test; my %options=( "v" => \$dh{VERBOSE}, @@ -276,9 +280,4 @@ sub parseopts { @ARGV=@{$dh{ARGV}} if exists $dh{ARGV}; } -sub import { - # Enable bundling of short command line options. - Getopt::Long::config("bundling"); -} - 1 diff --git a/debian/changelog b/debian/changelog index 29c1a2e..77f1844 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +debhelper (7.4.14) unstable; urgency=low + + * dh: Disable option bundling to avoid mis-parsing bundled options such + as "-Bpython-support". Closes: #570039 + + -- Joey Hess Tue, 16 Feb 2010 14:47:10 -0500 + debhelper (7.4.13) unstable; urgency=low * dh_compress: Avoid compressing images in /usr/share/info. Closes: #567586 diff --git a/dh b/dh index cf0baa5..2b60be5 100755 --- a/dh +++ b/dh @@ -246,6 +246,8 @@ init(options => { # Disable complaints about unknown options; they are passed on the # debhelper commands. ignore_unknown_options => 1, + # Bundling does not work well since there are unknown options. + bundling => 0, ); inhibit_log(); -- 2.39.5