Subject: Bug#3714: Problems encountered while compiling 'term' on m68k arch

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

Package: term
Version: 2.3.5-5

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.
5)  "configure" script forces static binaries since it looks for "dll tools".
    I'm not really sure if this should be changed or not, so I didn't
    include a patch.

The following patches correct these problems:

--- orig/term-2.3.5/debian.control	Fri Jun  2 06:29:09 1995
+++ term-2.3.5/debian.control	Sun Jul  7 22:08:03 1996
@@ -1,6 +1,6 @@
 PACKAGE: term
-VERSION: =V
-PACKAGE_REVISION: =D
+VERSION: =V-=D
+ARCHITECTURE: =A
 MAINTAINER: Jim Robinson <[email-masked]>
 DESCRIPTION: a serial-line multiplexer. 
  Term allows you to make a SLIP-like connection to another host via
--- orig/term-2.3.5/debian.rules	Fri Jun  2 06:40:34 1995
+++ term-2.3.5/debian.rules	Sun Jul  7 22:09:33 1996
@@ -22,6 +22,8 @@
 v = 2.3.5
 # The Debian revision of the package (for example, `2').
 d = 5
+# The target architecture.
+a = $(shell dpkg --print-architecture)
 
 build:
 # Builds the binary package.
@@ -66,7 +68,7 @@
 	cp TERMRC debian-tmp/usr/doc/examples/$(p)
 	gzip -9f debian-tmp/usr/doc/examples/$(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 \
 	  > debian-tmp/DEBIAN/control
 	#install -g root -m 644 -o root debian.conffiles \
 	#  debian-tmp/DEBIAN/conffiles
@@ -81,7 +83,7 @@
 	chown -R root.root debian-tmp/
 	chmod -R a+r debian-tmp/
 	dpkg --build debian-tmp
-	mv debian-tmp.deb ../$(p)-$(v)-$(d).deb
+	dpkg-name -o -s .. debian-tmp.deb
 
 source:
 # Makes a source package.