Subject: Bug#3535: Problems encountered while building "taper" on m68k arch

From: [email-masked] (Yambo)
Date: Fri, 5 Jul 96 23:48 CDT

Package: taper
Version: 6.2-1

The following problems were encountered while building on m68k arch:

1)  "debian.rules" did not support different architectures.
2)  "debian.rules" created improperly named .deb binaries (new standard).
3)  "debian.control" did not contain architecture field.
4)  "debian.control" contained obsolete "PACKAGE_REVISION" field.

The following patches correct these problems:

--- orig/taper-6.2/debian.control	Tue Feb  6 21:00:41 1996
+++ taper-6.2/debian.control	Thu Jul  4 23:21:21 1996
@@ -1,7 +1,7 @@
 PACKAGE: taper
 DESCRIPTION: Full-screen backup/restore utility
 MAINTAINER: Joe Kirby <[email-masked]>
-VERSION: =V
-PACKAGE_REVISION: =D
+VERSION: =V-=D
+ARCHITECTURE: =A
 DEPENDS: libc5, ncurses3.0
 RECOMMENDS: ftape
--- orig/taper-6.2/debian.rules	Tue Feb  6 21:17:47 1996
+++ taper-6.2/debian.rules	Thu Jul  4 23:22:13 1996
@@ -42,6 +42,8 @@
 v = 6.2
 # The Debian revision of the package (for example, `2').
 d = 1
+# The target architecture.
+a = $(shell dpkg --print-architecture)
 
 T = debian-tmp
 DIRECTORIES = $T/DEBIAN \
@@ -65,11 +67,10 @@
 	install -o root -g root -m 644 taper.8 $T/usr/man/man8/taper.8
 	install -o root -g root -m 644 debian.README \
 	  $T/usr/doc/copyright/$(p)
-	sed -e 's/=V/$(v)/' -e 's/=D/$(d)/' debian.control \
+	sed -e 's/=V-=D/$(v)-$(d)/' -e 's/=A/$(a)/' debian.control \
 	  > $T/DEBIAN/control
 	chmod 644 $T/DEBIAN/control
-	dpkg --build $T
-	mv $T.deb ../$(p)-$(v)-$(d).deb
+	dpkg --build $T && dpkg-name -o -s .. $T.deb
 
 source:
 # Makes a source package