Subject: Bug#3533: Problems encountered while building "rc" on m68k arch

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

Package: rc
Version: 1.4-2

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/rc-1.4//debian.control	Sun Mar 17 17:20:23 1996
+++ rc-1.4/debian.control	Thu Jul  4 19:32:16 1996
@@ -1,6 +1,6 @@
 PACKAGE: rc
 DESCRIPTION: An implementation of the AT&T Plan 9 shell.
 MAINTAINER: Ian Murdock <[email-masked]>
-VERSION: =V
-PACKAGE_REVISION: =D
+VERSION: =V-=D
+ARCHITECTURE: =A
 DEPENDS: libc5
--- orig/rc-1.4//debian.rules	Sun Mar 17 10:54:10 1996
+++ rc-1.4/debian.rules	Thu Jul  4 19:33:22 1996
@@ -26,6 +26,8 @@
 v = 1.4
 # The Debian revision of the package (for example, `2').
 d = 2
+# The target architecture.
+a = $(shell dpkg --print-archtiecture)
 
 build:
 # Builds the binary package.
@@ -52,11 +54,10 @@
 	install -d -g root -m 755 -o root debian-tmp/usr/doc/copyright
 	install -g root -m 644 -o root debian.README \
 	  debian-tmp/usr/doc/copyright/$(p)
-	sed -e '4s/=V/$(v)/' -e '5s/=D/$(d)/' debian.control \
+	sed -e '4s/=V-=D/$(v)-$(d)/' -e '5s/=A/$(a)/' debian.control \
 	  > debian-tmp/DEBIAN/control
 	chmod 644 debian-tmp/DEBIAN/control
-	dpkg --build debian-tmp
-	mv debian-tmp.deb ../$(p)-$(v)-$(d).deb
+	dpkg --build debian-tmp && dpkg-name -o -s .. debian-tmp.deb
 
 source:
 # Makes a source package.