Subject: Bug#3711: Problems encountered while compiling "uucp" on m68k arch

From: llucius <[email-masked]>
Date: Mon, 8 Jul 1996 18:02:38 -0500 (CDT)

Package: uucp
Version: 1.06.1-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 outdated "PACKAGE_REVISION" field.

The following patches correct these problems:

--- orig/uucp-1.06.1/debian.control	Wed Sep 13 20:01:10 1995
+++ uucp-1.06.1/debian.control	Mon Jul  8 16:58:56 1996
@@ -1,6 +1,6 @@
 Package: uucp
-Version: =V
-Package_Revision: =D
+Version: =V-=D
+Architecture: =A
 Maintainer: David H. Silber <[email-masked]>
 Recommended: smail | sendmail | mail-transport-agent
 Optional: news-transport-system
--- orig/uucp-1.06.1/debian.rules	Sun Feb 25 22:23:13 1996
+++ uucp-1.06.1/debian.rules	Mon Jul  8 16:59:53 1996
@@ -27,6 +27,8 @@
 v = 1.06.1
 # The Debian revision of the package (for example, `2').
 d = 2
+# The target architecture
+a = $(shell dpkg --print-architecture)
 
 build:
 # Builds the binary package.
@@ -120,7 +122,7 @@
 #	#rm -f debian-tmp/usr/info/$(p).info*.gz
 	gzip -9f debian-tmp/usr/info/$(p).info*
 	#
-	sed -e '2s/=V/$(v)/' -e '3s/=D/$(d)/' debian.control \
+	sed -e '2s/=V-=D/$(v)-$(d)/' -e '3s/=A/$(a)/' debian.control \
 	  > debian-tmp/DEBIAN/control
 	chmod 644 debian-tmp/DEBIAN/control
 	install -g root -m 644 -o root debian.conffiles \
@@ -137,7 +139,7 @@
 	find debian-tmp -name *.old -exec rm {} \; -print
 	#
 	dpkg --build debian-tmp
-	mv debian-tmp.deb ../$(p)-$(v)-$(d).deb
+	dpkg-name -o -s .. debian-tmp.deb
 
 source:
 # Makes a source package.