Deb Packaging fixes: Build against Mozilla libs for Debian, conflict with "git"
PATCH 1/1 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. 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.
(Note - I fixed up the conflicts against my earlier packaging fixes -- Ryan)
---
debian/changelog | 11 +++++++++++ debian/control | 3 ++- debian/rules | 14 ++++++++++++++ 3 files changed, 27 insertions(+), 1 deletions(-)
c651cdc175712c26d4b9c8b75b44a89eb1b74752
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 @@ Standards-Version: 3.6.1 Package: git-core Architecture: any -Depends: ${misc:Depends}, shellutils, diff, rsync, rcs +Depends: ${misc: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 @@ else 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 · 2 lines
Ryan Anderson sometimes Pug Majere
debian/changelog line 8
Quoted 4 lines · Ryan Anderson
debian/changelog +1
-0+ * Minor tweaks to the Build-Depends.
This is a nit and not the reason for NACK, but I do not see any change to Build-Depends.
debian/changelog
Quoted 2 lines
debian/changelog +1
-1-Depends: ${misc:Depends}, shellutils, diff, rsync, rcs +Depends: ${misc:Depends}, patch, diff, rsync, rcs, wget, rsh-client
This is primarily my fault, but this new Depends line is already obsolete. Darrin Thompson removed the last remaining use of wget and it is my understanding that we do not depend on wget anymore; instead we now depend on curl executable.
I do not offhand remember where we use rsh-client. The rsh-client I know of is this one, which claims to offer rsh, rcp and rlogin but I do not think we use any of them. Did you mean "ssh" package?
Package: rsh-client
Priority: extra
Section: net
Maintainer: Alberto Gonzalez Iniesta <[email protected]>
Source: netkit-rsh
Version: 0.17-13
Description: rsh clients.
This package contains rsh, rcp and rlogin.
Perhaps (I am not sure about the rsh-client vs ssh):
Quoted 1 line
+Depends: ${misc:Depends}, patch, diff, rsync, rcs, curl, ssh
Both the use of mozilla SHA1 library and conflicting with the other GIT, which are the primary points of this patch, sound sensible, relative to the Debian poli(cies|tics), but as long as we are touching the Depends: line, let's make sure we get it right (the current one is obviously obsolete).
Quoted 10 lines · Junio C Hamano
debian/changelog line 8
Quoted 4 lines · Ryan Anderson
debian/changelog +1
-0+ * Minor tweaks to the Build-Depends.This is a nit and not the reason for NACK, but I do not see any change to Build-Depends.
Quoted 2 lines
debian/changelog
Quoted 2 lines
debian/changelog +1
-1-Depends: ${misc:Depends}, shellutils, diff, rsync, rcs +Depends: ${misc:Depends}, patch, diff, rsync, rcs, wget, rsh-client
Just to be clear - I was forwarding Sebastian's patch on, after fixing up the conflict I got applying it, so I didn't edit the comments, other than to add my Signed-off-by line.
Quoted 9 lines
This is primarily my fault, but this new Depends line is already obsolete. Darrin Thompson removed the last remaining use of wget and it is my understanding that we do not depend on wget anymore; instead we now depend on curl executable.
I do not offhand remember where we use rsh-client. The rsh-client I know of is this one, which claims to offer rsh, rcp and rlogin but I do not think we use any of them. Did you mean "ssh" package?
ssh Provides rsh-client.
I suspect that was the thinking. I think the way we use ssh should be compatible with rsh, and that was the underlying reason for doing it this way.
Quoted 5 lines
Both the use of mozilla SHA1 library and conflicting with the other GIT, which are the primary points of this patch, sound sensible, relative to the Debian poli(cies|tics), but as long as we are touching the Depends: line, let's make sure we get it right (the current one is obviously obsolete).
I have no issue with the hunk being dropped or just doing a followup to fix things up. I'll wait until Linus settles back in and our massive backlog is fully committed or commented on.
Signature · 2 lines
Ryan Anderson sometimes Pug Majere
Quoted 4 lines · Ryan Anderson
* 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 that this is just not true.
We still use openssl for the bignum stuff in epoch.c, so using the mozilla SHA1 libraries just doesn't make any difference at all from an openssl standpoint. You'd have to disable the "--merge-order" flag entirely to get rid of the openssl dependency, methinks.
Linus
Quoted 8 lines · Linus Torvalds
Quoted 4 lines · Ryan Anderson
* 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.
Quoted 6 lines
Note that this is just not true.
We still use openssl for the bignum stuff in
epoch.c, so using the mozilla SHA1 libraries just doesn't make any difference at all from an openssl standpoint. You'd have to disable the "--merge-order" flag entirely to get rid of the openssl dependency, methinks.
I think that's going a bit far for the purpose of this packaging.
I reworked the comments in the changelog to make it clear that the elimination of OpenSSL is not complete, and also address the comments Junio made.
I'll reply to this email with that updated patch, but I've got this and all the other pending Debian packaging fixes in rsync://h4x0r5.com/git-ryan.git/
Signature · 2 lines
Ryan Anderson sometimes Pug Majere
PATCH 1/1 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 <[email protected]>, but has been fixed up based upon feedback.
---
changelog | 10 ++++++++++ control | 3 ++- rules | 14 ++++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-)
debian/changelog +10 -0
@@ -1,3 +1,13 @@ +git-core (0.99-2) unstable; urgency=low + + * Conflict with the GNU Interactive Tools package, which also installs + /usr/bin/git. + * Use the Mozilla SHA1 code and/or the PPC assembly in preference to + OpenSSL. This is only a partial fix for the license issues with OpenSSL. + * Minor tweaks to the Depends. + + -- Ryan Anderson <[email protected]> Sat, 23 Jul 2005 14:15:00 -0400 + git-core (0.99-1) unstable; urgency=low * Update deb package support to build correctly.
debian/control +2 -1
@@ -7,7 +7,8 @@ Standards-Version: 3.6.1 Package: git-core Architecture: any -Depends: ${misc:Depends}, shellutils, diff, rsync, rcs +Depends: ${misc:Depends}, patch, diff, rsync, rcs, ssh +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 @@ else 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 · 2 lines
Ryan Anderson sometimes Pug Majere
debian/control Standards-Version: 3.6.1 · line 10
Quoted 2 lines · Satturday, 23 July 2005 23:26 Ryan Anderson wrote:
debian/control +1
-1-Depends: ${misc:Depends}, shellutils, diff, rsync, rcs +Depends: ${misc:Depends}, patch, diff, rsync, rcs, ssh
Did I missed something or you forgot about libcurl3 dependency?
Signature · 2 lines
Respectfully Alexey Nezhdanov
Quoted 4 lines · Alexey Nezhdanov
Review
Quoted 2 lines · Satturday, 23 July 2005 23:26 Ryan Anderson wrote:
(quoted diff) +1
-1-Depends: ${misc:Depends}, shellutils, diff, rsync, rcs +Depends: ${misc:Depends}, patch, diff, rsync, rcs, sshDid I missed something or you forgot about libcurl3 dependency?
I think you are right. In the build process, dh_shlibdeps is used and shlib:Depends is created to include the libcurl3 (among other things) in debian/git-core.substvars, but it is not actually used in the resulting binary package because the line misses ${shlibs:Depends} there.
Ryan, would this change be enough? I do not know what I am doing (${misc:Depends} is new to me), but this patch seems to fix it on my box.
------------
Make sure binary debian package depends on shlibs it uses.
The "Depends:" line in debian/control lacked ${shlibs:Depends}, which caused the resulting binary package not to depend on libcurl3 nor even libc6 ;-).
---
# - linus: Fix up applymbox script for the addition of "git-" prefix # + (working tree)
debian/control +1 -1
@@ -7,7 +7,7 @@ Standards-Version: 3.6.1 Package: git-core Architecture: any -Depends: ${misc:Depends}, shellutils, diff, rsync, rcs +Depends: ${shlibs:Depends} ${misc:Depends}, shellutils, diff, rsync, rcs 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
Quoted 13 lines · Junio C Hamano
Quoted 4 lines · Alexey Nezhdanov
Review
Quoted 2 lines · Satturday, 23 July 2005 23:26 Ryan Anderson wrote:
(quoted diff) +1
-1-Depends: ${misc:Depends}, shellutils, diff, rsync, rcs +Depends: ${misc:Depends}, patch, diff, rsync, rcs, sshDid I missed something or you forgot about libcurl3 dependency?
I think you are right. In the build process,
dh_shlibdepsis used and shlib:Depends is created to include the libcurl3 (among other things) in debian/git-core.substvars, but it is not actually used in the resulting binary package because the line misses ${shlibs:Depends} there.
Quoted 3 lines
Ryan, would this change be enough? I do not know what I am doing (${misc:Depends} is new to me), but this patch seems to fix it on my box.
Yes - this looks like the right idea - but you're missing a comma between the two variables. (That will cause the *entire* depends line to get dropped, btw.)
I changed it from shlibs:Depends to misc:Depends because I saw something when I was tracking down exactly what I needed to put into debian/compat (in fact, man debhelper, then search for "compat" and look under V4), but I misread "supplements" to be something else.
So, Acked-By: me, if you put the comma in. :)
Quoted 32 lines
------------
Make sure binary debian package depends on shlibs it uses.The "Depends:" line in debian/control lacked ${shlibs:Depends}, which caused the resulting binary package not to depend on libcurl3 nor even libc6 ;-).
Signed-off-by Junio C Hamano <[email protected]>---
# - linus: Fix up applymbox script for the addition of "git-" prefix # + (working tree)
debian/control +1
-2@@ -7,7 +7,7 @@ Standards-Version: 3.6.1 Package: git-core Architecture: any -Depends: ${misc:Depends}, shellutils, diff, rsync, rcs +Depends: ${shlibs:Depends} ${misc:Depends}, shellutils, diff, rsync, rcs 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 -To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 2 lines
Ryan Anderson sometimes Pug Majere