Subject: Bug#3708: Problems encountered while compiling "libobjects" on m68k arch

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

Package: libobjects
Version: 0.1.19-2

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/libobjects-0.1.19/debian.control	Tue Jun  4 09:43:50 1996
+++ libobjects-0.1.19/debian.control	Mon Jul  8 17:01:56 1996
@@ -1,6 +1,6 @@
 Package: libobjects
 Version: =V-D
-Architecture: i386
+Architecture: =A
 Section: devel
 Maintainer: Karl R. Sackett <[email-masked]>
 Depends: libc5
--- orig/libobjects-0.1.19/debian.rules	Tue Jun  4 10:58:05 1996
+++ libobjects-0.1.19/debian.rules	Mon Jul  8 17:03:39 1996
@@ -3,7 +3,7 @@
 p = libobjects
 v = 0.1.19
 d = 2
-a = i386
+a = $(shell dpkg --print-architecture)
 
 OS = linux
 CC = gcc
@@ -57,7 +57,8 @@
 	$(INSTALL_DIR) $(copydir)
 	$(INSTALL_DATA) debian.README $(copydir)/$(p)
 	$(INSTALL_DIR) $(debdir)
-	sed -e '2s/=V-D/$(v)-$(d)/' debian.control > $(debdir)/control
+	sed -e '2s/=V-D/$(v)-$(d)/' -e '3s/=A/$(a)/' \
+		debian.control > $(debdir)/control
 	chmod 644 $(debdir)/control
 # conf and inst files
 #	$(INSTALL_PROGRAM) debian.preinst $(debdir)/preinst
@@ -112,7 +113,7 @@
 	-gzip -9fr $(exampdir)
 # build the package
 	dpkg --build debian-tmp
-	mv debian-tmp.deb ../$(p)-$(v)-$(d).$(a).deb
+	dpkg-name -o -s .. debian-tmp.deb
 
 # Makes a source package.
 source: