Subject: Bug#3715: Problems encountered while compiling "pmake" on m68k arch.

From: llucius <[email-masked]>
Date: Mon, 8 Jul 1996 13:37:10 -0500 (CDT)

Package: pmake
Version: 1.0-12

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" contained hardcoded architecture.
4)  "debian.control" contained outdated "PACKAGE_REVISION" field.

The following patches correct these problems:

--- orig/pmake-1.0/debian.control	Fri May 24 04:34:47 1996
+++ pmake-1.0/debian.control	Mon Jul  8 00:01:48 1996
@@ -1,9 +1,8 @@
 PACKAGE: pmake
 DESCRIPTION: 4.4BSD make (pmake).
 MAINTAINER: Ian Murdock <[email-masked]>
-VERSION: =V
-PACKAGE_REVISION: =D
+VERSION: =V-=D
 DEPENDS: libc5
 PRIORITY: optional
 SECTION: devel
-ARCHITECTURE: i386
+ARCHITECTURE: =A
--- orig/pmake-1.0/debian.rules	Fri May 24 04:41:31 1996
+++ pmake-1.0/debian.rules	Mon Jul  8 00:02:44 1996
@@ -26,6 +26,8 @@
 v = 1.0
 # The Debian revision of the package (for example, `2').
 d = 12
+# The target architecture.
+a = $(shell dpkg --print-architecture)
 
 build:
 # Builds the binary package.
@@ -59,11 +61,11 @@
 	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 '8s/=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).i386.deb
+	dpkg-name -o -s .. debian-tmp.deb
 
 source:
 # Makes a source package.