path: root/debian/rules
diff options
authorRyan Anderson <>2005-07-23 19:26:32 (GMT)
committerJunio C Hamano <>2005-07-27 05:23:19 (GMT)
commita977d2cf589c8e4d66e53e9399a61ef08a8ddcad (patch)
tree2d652d8b9a8d2457a6e7de7060c6077014fed767 /debian/rules
parentbdf25142aaac016f4d992001f336d53ab4fbc75e (diff)
Deb Packaging fixes: Build against Mozilla libs for Debian, conflict with "git"
This patch includes two fixes to the git-core Debian package: * Conflict with the GNU Interactive Tools package, which _also_ wants to install /usr/bin/git. * Compile against the unencumbered Mozilla SHA1 code, instead of the iffy OpenSSL code, as much as possible. This makes it easier to get the package included for distribution with Debian. This has been based upon the original patch by Sebastian Kuzminsky <>, but has been fixed up based upon feedback. Signed-off-by: Ryan Anderson <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'debian/rules')
1 files changed, 14 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index aff43b8..67830b0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,6 +12,20 @@ else
export CFLAGS
+# On PowerPC we compile against the hand-crafted assembly, on all
+# other architectures we compile against GPL'ed sha1 code lifted
+# from Mozilla. OpenSSL is strangely licensed and best avoided
+# in Debian.
+HOST_ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH)
+ifeq (${HOST_ARCH},powerpc)
+ export PPC_SHA1=YesPlease
+ export MOZILLA_SHA1=YesPlease
PREFIX := /usr
MANDIR := /usr/share/man/