Subject: Bug#3707: Problems encountered while compiling "elm" on m68k arch

From: llucius <[email-masked]>
Date: Mon, 8 Jul 1996 17:57:33 -0500 (CDT)

Package: elm
Version: 2.4pl25-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.

The following patches correct these problems:

--- orig/elm-2.4pl25/debian.control	Sat Feb 24 18:02:02 1996
+++ elm-2.4pl25/debian.control	Mon Jul  8 16:46:13 1996
@@ -1,5 +1,6 @@
 Package: elm
 Version: VvV-DdD
+Architecture: AaA
 Maintainer: Carl Streeter <[email-masked]>
 Suggests: metamail, pgp
 Depends: mail-transport-agent, ncurses3.0, libc5
--- orig/elm-2.4pl25/debian.rules	Thu Feb 29 12:36:38 1996
+++ elm-2.4pl25/debian.rules	Mon Jul  8 16:45:50 1996
@@ -3,6 +3,7 @@
 package=elm
 version=2.4pl25
 debian=2
+arch=$(shell dpkg --print-architecture)
 
 programs = 
 manpages = 
@@ -38,7 +39,7 @@
 	install -d $(LIBDIR)
 	install -d $(COPYDIR)
 	install -d $(DOCDIR)
-	sed -e 's/VvV/$(version)/' -e 's/DdD/$(debian)/' \
+	sed -e 's/VvV/$(version)/' -e 's/DdD/$(debian)/' -e 's/AaA/$(arch)/' \
 	  debian.control > debian-tmp/DEBIAN/control
 	install -m 644 debian.README $(COPYDIR)/$(package)
 
@@ -76,7 +77,7 @@
 				$(BINDIR)
 
 	dpkg --build debian-tmp
-	mv debian-tmp.deb ../$(package)-$(version)-$(debian).deb
+	dpkg-name -o -s .. debian-tmp.deb
 
 define checkdir
 	test -f $(package).c