Subject: Bug#3543: Problems encountered while compiling "git" for m68k arch

From: llucius <[email-masked]>
Date: Sat, 6 Jul 1996 20:11:58 -0500 (CDT)

Package: git
Version: 4.3.9-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/git-4.3.9/debian.control	Tue Mar 26 19:10:10 1996
+++ git-4.3.9/debian.control	Sat Jul  6 16:21:48 1996
@@ -2,7 +2,7 @@
 VERSION: =V-=D
 SECTION:  misc
 DEPENDS:  libc5, ncurses3.0
-ARCHITECTURE: i386
+ARCHITECTURE: =A
 MAINTAINER: Bill Mitchell <[email-masked]>
 DESCRIPTION: GNU Interactive Tools
  git is a file system browser with some shell facilities
--- orig/git-4.3.9/debian.rules	Tue May 14 20:36:42 1996
+++ git-4.3.9/debian.rules	Sat Jul  6 16:23:17 1996
@@ -18,7 +18,7 @@
 CFLAGS = -O2 -Wall -I..
 LDFLAGS = -s
 PREFIX = /usr
-ARCH=i386
+ARCH=$(shell dpkg --print-architecture)
 
 # The name of the package (for example, `emacs').
 p = git
@@ -114,13 +114,13 @@
 	install -d -g root -m 755 -o root debian-tmp/DEBIAN
 	sed -e 's/=V/$(v)/' \
             -e 's/=D/$(d)/' \
+            -e 's/=A/$(ARCH)/' \
             <debian.control >debian-tmp/DEBIAN/control
 	chmod 644 debian-tmp/DEBIAN/control
 	install -g root -m 755 -o root debian.postinst debian-tmp/DEBIAN/postinst
 	install -g root -m 755 -o root debian.postrm debian-tmp/DEBIAN/postrm
 	#
-	dpkg --build debian-tmp
-	mv debian-tmp.deb ../$(p)-$(v)-$(d).$(ARCH).deb
+	dpkg --build debian-tmp && dpkg-name -o -s .. debian-tmp.deb
 
 source: clean
 # Makes a source package.