Subject: Bug#3728: Problems while compiling "ee" for m68k arch.

From: llucius <[email-masked]>
Date: Sun, 7 Jul 1996 18:00:50 -0500 (CDT)

Package: ee
Version: 126.1.89-1

The following problems were encountered while building on m68k arch:

1)  "debian.rules" contained hardcoded architecture.
2)  "debian.rules" created improperly named .deb binaries (new standard).
3)  "debian.control" file contained hardcoded architecture.

The following patches correct these problems:

--- orig/ee-126.1.89/debian.control	Fri Apr 12 18:35:01 1996
+++ ee-126.1.89/debian.control	Sun Jul  7 11:51:06 1996
@@ -2,7 +2,7 @@
 VERSION: =V-=D
 SECTION:  editors
 DEPENDS:  libc5
-ARCHITECTURE: i386
+ARCHITECTURE: =A
 MAINTAINER: Bill Mitchell <[email-masked]>
 DESCRIPTION: An "easy editor" for novices and compuphobics
  The editor 'ee' (easy editor) is intended to be a simple, easy to use 
--- orig/ee-126.1.89/debian.rules	Fri Apr 12 18:23:15 1996
+++ ee-126.1.89/debian.rules	Sun Jul  7 11:51:48 1996
@@ -16,7 +16,7 @@
 
 CC = gcc 
 CFLAGS = -O2 -DHAS_UNISTD  -DHAS_STDLIB -DHAS_CTYPE -DHAS_SYS_IOCTL -DHAS_SYS_WAIT -s
-ARCH=i386
+ARCH=$(shell dpkg --print-architecture)
 
 # The name of the package (for example, `emacs').
 p = ee
@@ -53,10 +53,11 @@
 	  debian-tmp/usr/doc/copyright/ee
 	sed -e 's/=V/$(v)/' \
             -e 's/=D/$(d)/' \
+            -e 's/=A/$(a)/' \
             <debian.control >debian-tmp/DEBIAN/control
 	chmod 644 debian-tmp/DEBIAN/control
 	dpkg --build debian-tmp
-	mv debian-tmp.deb ../ee-$(v)-$(d).$(ARCH).deb
+	dpkg-name -o -s .. debian-tmp.deb
 
 source: clean
 # Makes a source package.