[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#158953: dpkg-buildpackage: unchecked call to perl when setting sversion



Package: dpkg-dev
Version: 1.10.4
Severity: normal
Tags: patch

Without this, if the 'perl' command is a symlink to /bin/true (or any
other similar behaviour), you get a .changes called
pacakge__arch.changes and no errors. (No, I don't know why this could
happen, it's just paranoia).

With it, you get:
dpkg-buildpackage: source package is m4
dpkg-buildpackage: source version is 1.4-14
dpkg-buildpackage: source maintainer is Santiago Vila <sanvila@debian.org>
dpkg-buildpackage: host architecture is i386
dpkg-buildpackage: unable to determine source version without epoch

--- /usr/bin/dpkg-buildpackage	2002-07-14 21:19:49.000000000 +0100
+++ /home/aps100/dpkg-buildpackage	2002-08-31 04:08:36.000000000 +0100
@@ -153,7 +153,7 @@
 else
 	arch=source
 fi
-sversion=`echo "$version" | perl -pe 's/^\d+://'`
+mustsetvar sversion "`echo \"$version\" | perl -pe 's/^\d+://'`" "source version without epoch"
 pv="${package}_${sversion}"
 pva="${package}_${sversion}_${arch}"
 

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux cyclone 2.4.19 #7 Sat Aug 3 16:06:09 BST 2002 i686
Locale: LANG=C, LC_CTYPE=

Versions of packages dpkg-dev depends on:
ii  binutils                   2.13.90.0.4-1 The GNU assembler, linker and bina
ii  cpio                       2.5-1         GNU cpio -- a program to manage ar
ii  make                       3.79.1-14     The GNU version of the "make" util
ii  patch                      2.5.4-11      Apply a diff file to an original
ii  perl [perl5]               5.8.0-10      Larry Wall's Practical Extraction 
ii  perl-modules               5.8.0-10      Core Perl modules.

-- no debconf information


-- 
  .''`.  ** Debian GNU/Linux ** | Andrew Suffield
 : :' :  http://www.debian.org/ | Dept. of Computing,
 `. `'                          | Imperial College,
   `-             -><-          | London, UK



Reply to: