Browse Source

scripts/dpkg-source.pl: fix error in error message
utils/Makefile.in: set top_builddir
Makefile.in: spell version-nr correctly
scripts/dpkg-source.pl: modify how we handle the dscformat: we now
assume all major versions are upwards and backwards compatibly. This
allows us to add new fields without breaking older versions of
dpkg-source

Wichert Akkerman 25 years ago
parent
commit
8f587ecd19
5 changed files with 20 additions and 4 deletions
  1. 13 0
      ChangeLog
  2. 1 1
      Makefile.in
  3. 1 0
      debian/changelog
  4. 4 3
      scripts/dpkg-source.pl
  5. 1 0
      utils/Makefile.in

+ 13 - 0
ChangeLog

@@ -1,3 +1,16 @@
+Thu Feb  1 18:22:05 EST 2001 Wichert Akkerman <wakkerma@debian.org>
+
+  * scripts/dpkg-source.pl: fix error in error message
+  * utils/Makefile.in: set top_builddir
+  * Makefile.in: spell version-nr correctly
+
+Sun Jan 28 22:38:02 EST 2001 Wichert Akkerman <wakkerma@debian.org>
+
+  * scripts/dpkg-source.pl: modify how we handle the dscformat: we now
+    assume all major versions are upwards and backwards compatibly. This
+    allows us to add new fields without breaking older versions of 
+    dpkg-source
+
 Sun Jan 21 20:09:36 SGT 2001 Wichert Akkerman <wakkerma@debian.org>
 
   * scripts/dpkg-divert.pl: only allow absolute filenames

+ 1 - 1
Makefile.in

@@ -2,7 +2,7 @@ VPATH		= @srcdir@
 srcdir		= @srcdir@
 top_srcdir	= @top_srcdir@
 
-VERSION		= $(shell cat verion-nr)
+VERSION		= $(shell cat version-nr)
 
 GENFILES	= version.h
 

+ 1 - 0
debian/changelog

@@ -12,6 +12,7 @@ dpkg (1.9.0) unstable; urgency=low
     optlib, for non-GNU systems.
   * dpkg-divert only allows absolute filenames now. Closes: Bug#82419
   * Handle diffs from non-existing files to existing files. Closes: Bug#82708
+  * Small fixes to the buildsystem. Closes: Bug#84361
 
  -- Wichert Akkerman <wakkerma@debian.org>  UNRELEASED
 

+ 4 - 3
scripts/dpkg-source.pl

@@ -494,8 +494,9 @@ if ($opmode eq 'build') {
 
     if (defined $fi{'S Format'}) {
         $dscformat=$fi{'S Format'};
-	$dscformat != "1.0" &&
+	if (not $dscformat =~ /^1\./) {
 	    &error("Unsupported format of .dsc file ($dscformat)");
+	}
     }
     $sourcepackage =~ m/[^.0-9]/ &&
         &error("dsc format contains illegal character \`$&'");
@@ -935,7 +936,7 @@ sub extracttar {
     defined($c2= fork) || &syserr("fork for tar -xkf -");
     if (!$c2) {
         chdir("$dirchdir") || &syserr("cannot chdir to \`$dirchdir' for tar extract");
-        open(STDIN,"<&GZIP") || &syserr("reopen gzip for cpio -i");
+        open(STDIN,"<&GZIP") || &syserr("reopen gzip for tar -xkf -");
         &cpiostderr;
         exec('tar','-xkf','-'); &syserr("exec tar -xkf -");
     }
@@ -966,7 +967,7 @@ sub extracttar {
 
 sub cpiostderr {
     open(STDERR,"| egrep -v '^[0-9]+ blocks\$' >&2") ||
-        &syserr("reopen stderr for cpio to grep out blocks message");
+        &syserr("reopen stderr for tar to grep out blocks message");
 }
 
 sub setfile {

+ 1 - 0
utils/Makefile.in

@@ -2,6 +2,7 @@
 VPATH		= @srcdir@
 srcdir		= @srcdir@
 top_srcdir	= @top_srcdir@
+top_builddir	= ..
 
 include ../Makefile.conf