Skip to contentSkip to conversation

debian packaging fixes

PATCH New Sebastian Kuzminsky 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 debian packaging fixes

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. This makes it easier to get the package included for distribution with Debian.

Note: Assumes that Ryan Anderson's patch "Deb packages should include the binaries" has been applied.

---

 changelog |   11 +++++++++++
 control   |    3 ++-
 rules     |   14 ++++++++++++++
 3 files changed, 27 insertions(+), 1 deletion(-)
debian/changelog +11 -0
@@ -1,3 +1,14 @@
+git-core (0.99.1-1) unstable; urgency=low
+
+  * Conflict with the GNU Interactive Tools package, which also installs
+    /usr/bin/git.
+  * Dont compile against the OpenSSL SHA1 code, it's problematically
+    licensed.  Instead use the PPC assembly on PPC, and the code ripped
+    from Mozilla everywhere else.
+  * Minor tweaks to the Build-Depends.
+
+ -- Sebastian Kuzminsky <[email protected]>  Thu, 21 Jul 2005 01:28:35 -0600
+
 git-core (0.99-1) unstable; urgency=low
 
   * Update deb package support to build correctly. 
debian/control +2 -1
@@ -7,7 +7,8 @@
 
 Package: git-core
 Architecture: any
-Depends: ${shlibs:Depends}, shellutils, diff, rysnc, rcs
+Depends: ${shlibs:Depends}, patch, diff, rsync, rcs, wget, rsh-client
+Conflicts: git
 Description: The git content addressable filesystem
  GIT comes in two layers. The bottom layer is merely an extremely fast
  and flexible filesystem-based database designed to store directory trees
debian/rules +14 -0
@@ -12,6 +12,20 @@
 endif
 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
+else
+	export MOZILLA_SHA1=YesPlease
+endif
+
+
 PREFIX := /usr
 MANDIR := /usr/share/man/
 
Signature · 1 line
Sebastian Kuzminsky