Package: dh-make
Version: 0.39
Severity: normal
Tags: patch

There is a typo in /usr/bin/dh_make and lack bzip2 options to
uncompress bzip2 archive. So the bz2->gz function wouldn't work
at all.

Please see attached patch. Thanks.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.8-2-686
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages dh-make depends on:
ii  debhelper                     4.9.1      helper programs for debian/rules
ii  dpkg-dev                      1.13.9     Package building tools for Debian
ii  make                          3.80-9     The GNU version of the "make" util
ii  perl                          5.8.7-3    Larry Wall's Practical Extraction 

dh-make recommends no packages.

-- no debconf information
diff -Naur dh-make-0.39.orig/dh_make dh-make-0.39/dh_make
--- dh-make-0.39.orig/dh_make   2005-05-18 23:28:50.000000000 +1200
+++ dh-make-0.39/dh_make        2005-06-19 16:02:53.581516176 +1200
@@ -402,9 +402,9 @@
           system('cp', '-a', "$source_file", 
"../$package_name\_$version.orig.tar.gz");
        } elsif ($source_file =~ /bz2$/ )
        {
-         if ( -x '/usr/bin/bzip2' && -x '/usr/bin/gizp' )
+         if ( -x '/usr/bin/bzip2' && -x '/bin/gzip' )
          {
-           system("/usr/bin/bzip2 $source_file | /usr/bin/gzip > 
../$package_name\_$version.orig.tar.gz");
+           system("/usr/bin/bzip2 -cd $source_file | /bin/gzip > 
../$package_name\_$version.orig.tar.gz");
          } else {
            die('Source file is a bz2 but bzip2 or gzip not available');
          }

Reply via email to