Package: devscripts
Version: 2.10.61ubuntu5
Severity: normal
Tags: patch

The debchange man page claims that --allow-lower-version and
DEBCHANGE_LOWER_VERSION_PATTERN are equivalent.  The difference is
that DEBCHANGE_LOWER_VERSION_PATTERN works, and --allow-lower-version
can't possibly work in the current code.

The point of these features is to allow setting a lower-comparing
version string if it matches a supplied match pattern.  Both features
set an internal variable that will be used for the pattern, but since
--allow-lower-version takes no option argument, it presumably sets the
variable to the integer 1, which is not very useful in the later match
expression.

I discovered this on Ubuntu Lucid, but the but appears to still be
present in latest git source.

Here is an incomplete patch (doesn't fix documentation) to fix the
bug:

diff --git a/scripts/debchange.pl b/scripts/debchange.pl
index 4b62eea..099cadb 100755
--- a/scripts/debchange.pl
+++ b/scripts/debchange.pl
@@ -129,7 +129,7 @@ Options:
   -b, --force-bad-version
          Force a version to be less than the current one (e.g., when
          backporting)
-  --allow-lower-version
+  --allow-lower-version=<pattern>
          Allow a version to be less than the current one (e.g., when
          backporting) if it matches a specified pattern
   --force-distribution
@@ -319,7 +319,7 @@ GetOptions("help|h" => \$opt_help,
           "package=s" => \$opt_package,
           "v|newversion=s" => \$opt_v,
           "b|force-bad-version" => \$opt_b,
-          "allow-lower-version" => \$opt_allow_lower,
+          "allow-lower-version=s" => \$opt_allow_lower,
           "force-distribution" => \$opt_force_dist,
           "d|fromdirname" => \$opt_d,
           "p" => \$opt_p,


-- Package-specific info:

--- /etc/devscripts.conf ---

--- ~/.devscripts ---
Not present

-- System Information:
Debian Release: squeeze/sid
  APT prefers lucid-updates
  APT policy: (500, 'lucid-updates'), (500, 'lucid-security'), (500, 'lucid')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-24-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages devscripts depends on:
ii  dpkg-dev               1.15.5.6ubuntu4.1 Debian package development tools
ii  libc6                  2.11.1-0ubuntu7.2 Embedded GNU C Library: Shared lib
ii  perl                   5.10.1-8ubuntu2   Larry Wall's Practical Extraction

Versions of packages devscripts recommends:
ii    3.1.11-1ubuntu5                        Delayed job execution and batch pr
ii    8.1.2-0.20090911cvs-2ubuntu1           simple mail user agent
ii    1:1.12.13-12ubuntu1                    Concurrent Versions System
ii    2.14                                   Command-line tools to process Debi
ii    0.9.5.1ubuntu1                         Debian package upload tool
ii    1.14.4-1ubuntu1                        Gives a fake root environment
ii    3.6.10+build1+nobinonly-0ubuntu0.10.04 safe and easy web browser from Moz
ii    1:1.7.0.4-1                            fast, scalable, distributed revisi
ii    1.4.10-2ubuntu1                        GNU privacy guard - a free PGP rep
ii    2.13-1                                 Authen::SASL - SASL Authentication
ii    2.005-2                                Easy OO parsing of Debian control-
ii    0.2-4build3                            Perl extension for retrieving term
ii    1.1900-1                               Time and date functions for Perl
ii    1.52-1                                 module to manipulate and access UR
ii    5.834-1ubuntu0.1                       Perl HTTP/WWW client/server librar
ii    2.3.4ubuntu2                           Debian package checker
ii    4.0-0ubuntu8                           Linux Standard Base version report
ii    2.8.8dev.2-1                           Text-mode WWW Browser with NLS sup
ii    4.43-14ubuntu2                         Compression method of 7z format in
ii    2.5.7-2                                on-line manual pager
ii    1:5.3p1-3ubuntu4                       secure shell (SSH) client, for sec
ii    2.6-2ubuntu1                           Apply a diff file to an original
ii    0.3.1-2build1                          Utilities to work with patches
ii    0.0.1ubuntu3                           Utilities for sensible alternative
ii    4.5.19-2                               A system call tracer
ii    1.6.6dfsg-2ubuntu1                     Advanced version control system
ii    6.0-1build1                            De-archiver for .zip files
ii    0.5.2-2.1ubuntu1.1                     WWW browsable pager with excellent
ii    0.5-19                                 Compares two files word by word
ii    1.12-1.1ubuntu2.1                      retrieves files from the web

Versions of packages devscripts suggests:
ii  build-essential       11.4build1         Informational list of build-essent
pn  cvs-buildpackage      <none>             (no description available)
pn  debian-keyring        <none>             (no description available)
pn  debian-maintainers    <none>             (no description available)
pn  devscripts-el         <none>             (no description available)
pn  equivs                <none>             (no description available)
pn  gnuplot               <none>             (no description available)
pn  libcrypt-ssleay-perl  <none>             (no description available)
pn  libfile-desktopentry- <none>             (no description available)
pn  libnet-smtp-ssl-perl  <none>             (no description available)
pn  libsoap-lite-perl     <none>             (no description available)
ii  libyaml-syck-perl     1.07-1build1       fast, lightweight YAML loader and
pn  mutt                  <none>             (no description available)
pn  svn-buildpackage      <none>             (no description available)
pn  ubuntu-dev-tools      <none>             (no description available)
ii  w3m                   0.5.2-2.1ubuntu1.1 WWW browsable pager with excellent

-- no debconf information




-- 
To unsubscribe, send mail to [email protected].

Reply via email to