Subject: Bug#3534: Problems encountered while building "unarj" on m68k arch

From: [email-masked] (Yambo)
Date: Fri, 5 Jul 96 23:48 CDT

Package: unarj
Version: 2.41a-4

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 obsolete "PACKAGE_REVISION" field.

The following patches correct these problems:

--- orig/unarj-2.41a/debian.control	Sun Jun 30 10:38:07 1996
+++ unarj-2.41a/debian.control	Thu Jul  4 19:22:29 1996
@@ -1,10 +1,9 @@
 PACKAGE: unarj
 MAINTAINER: Karl Ferguson <[email-masked]>
-VERSION: =V
-PACKAGE_REVISION: =D
+VERSION: =V-=D
+ARCHITECTURE: =A
 DEPENDS: libc5
 SECTION: misc
-ARCHITECTURE: i386
 PRIORITY: optional
 DESCRIPTION: Unarj unarchive utility.
  Unarj de-compresses the ARJ compressed archives.  It is only available under
--- orig/unarj-2.41a/debian.rules	Sun Jun 30 10:44:18 1996
+++ unarj-2.41a/debian.rules	Thu Jul  4 19:23:32 1996
@@ -17,7 +17,7 @@
 # in the parent directory.
 
 CC = gcc
-CFLAGS = -O2 -m486 -fomit-frame-pointer -ansi -pedantic -Wall -DUNIX
+CFLAGS = -O2 -fomit-frame-pointer -ansi -pedantic -Wall -DUNIX
 LDFLAGS = -s
 
 # The name of the package (for example, `emacs').
@@ -26,6 +26,8 @@
 v = 2.41a
 # The Debian revision of the package (for example, `2').
 d = 4
+# The target architecture
+a = $(shell dpkg --print-architecture)
 
 build:
 # Builds the binary package.
@@ -54,11 +56,10 @@
 	install -g root -m 644 -o root README.gz debian-tmp/usr/doc/unarj
 	install -g root -m 644 -o root debian.README \
 	  debian-tmp/usr/doc/copyright/$(p)
-	sed -e '3s/=V/$(v)/' -e '4s/=D/$(d)/' debian.control \
+	sed -e '3s/=V-=D/$(v)-$(d)/' -e '4s/=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).deb
+	dpkg --build debian-tmp && dpkg-name -o -s .. debian-tmp.deb
 
 source:
 # Makes a source package.

---

From: [email-masked] (Karl Ferguson)
Date: Mon, 8 Jul 1996 02:44:48 +0800 (WST)

> 4)  "debian.control" contained obsolete "PACKAGE_REVISION" field.

Fixed in the next release - closing the bug.

...Karl
--
Karl Ferguson, 
Tower Networking Pty Ltd (ACN: 072 322 760)          [email-masked]
t/a STAR Online Services                             [email-masked]
Tel: +61-9-455-3446  Fax: +61-9-455-2776