[oe] [RFC] Update git/git-native

Denys Dmytriyenko denis at denix.org
Sat Nov 15 00:56:54 UTC 2008


Hi,

I'd like to propose to update the git recipe (specifically, the native one) to 
something newer than 1.5.3, currently used. The problem with that particular 
version is that it does not work reliably through the proxy. Here is the 
symptom:

$ GIT_PROXY_COMMAND=~/git-proxy.sh /OE/tmp/staging/i686-linux/usr/bin/git --version
git version 1.5.3

$ GIT_PROXY_COMMAND=~/git-proxy.sh /OE/tmp/staging/i686-linux/usr/bin/git clone git://git.infradead.org/mtd-utils.git
Initialized empty Git repository in /tmp/mtd-utils/.git/
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack died with error code 128
fetch-pack from 'git://git.infradead.org/mtd-utils.git' failed.

The first version to work reliably with GIT_PROXY_COMMAND is 1.5.4:

$ GIT_PROXY_COMMAND=~/git-proxy.sh /OE/tmp/staging/i686-linux/usr/bin/git --version
git version 1.5.4

$ GIT_PROXY_COMMAND=~/git-proxy.sh /OE/tmp/staging/i686-linux/usr/bin/git clone git://git.infradead.org/mtd-utils.git
Initialized empty Git repository in /tmp/mtd-utils/.git/
remote: Counting objects: 2308, done.
remote: Compressing objeremote: cts: 100% (676/676), done.
remote: Total 2308 (delta 1592), reused 2308 (delta 1592)
Receiving objects: 100% (2308/2308), 942.42 KiB | 595 KiB/s, done.
Resolving deltas: 100% (1592/1592), done.

I'm not sure if there is some requirement to stick with 1.5.x version of git, 
if not the latest stable version is 1.6.0.4 - I am attaching patches for both 
just in case, with corresponding ticket #4835.

Please provide any comments.

-- 
Denys
-------------- next part --------------
>From cb6e360408e35711170614c4a1c05628d11a5df7 Mon Sep 17 00:00:00 2001
From: Denys Dmytriyenko <denis at denix.org>
Date: Fri, 14 Nov 2008 19:33:40 -0500
Subject: [PATCH] git: move version specific git-gui-install-mode-arg-spaces.patch from .inc

---
 packages/git/git-native_1.5.2.3.bb |    3 ++-
 packages/git/git-native_1.5.3.bb   |    3 +++
 packages/git/git.inc               |    1 -
 packages/git/git_1.5.3.bb          |    4 +++-
 4 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/packages/git/git-native_1.5.2.3.bb b/packages/git/git-native_1.5.2.3.bb
index 7ddfee0..34fa87e 100644
--- a/packages/git/git-native_1.5.2.3.bb
+++ b/packages/git/git-native_1.5.2.3.bb
@@ -1,6 +1,7 @@
-
 inherit native
 require git_${PV}.bb
 
+SRC_URI += "file://git-gui-install-mode-arg-spaces.patch;patch=1"
+
 DEPENDS = "openssl-native curl-native zlib-native expat-native"
 RDEPENDS = ""
diff --git a/packages/git/git-native_1.5.3.bb b/packages/git/git-native_1.5.3.bb
index 1ef8eaf..6b9dacb 100644
--- a/packages/git/git-native_1.5.3.bb
+++ b/packages/git/git-native_1.5.3.bb
@@ -1,4 +1,7 @@
 require git.inc
+
+SRC_URI += "file://git-gui-install-mode-arg-spaces.patch;patch=1"
+
 inherit native
 DEPENDS = "openssl-native curl-native zlib-native expat-native"
 PR = "r2"
diff --git a/packages/git/git.inc b/packages/git/git.inc
index de63c54..fb88fd4 100644
--- a/packages/git/git.inc
+++ b/packages/git/git.inc
@@ -4,7 +4,6 @@ LICENSE = "GPL"
 
 SRC_URI = "http://www.kernel.org/pub/software/scm/git/git-${PV}.tar.bz2 \
            file://autotools.patch;patch=1 \
-           file://git-gui-install-mode-arg-spaces.patch;patch=1 \
 	   "
 S = "${WORKDIR}/git-${PV}"
 
diff --git a/packages/git/git_1.5.3.bb b/packages/git/git_1.5.3.bb
index f250bd5..491bb3f 100644
--- a/packages/git/git_1.5.3.bb
+++ b/packages/git/git_1.5.3.bb
@@ -1,5 +1,7 @@
 require git.inc
+
+SRC_URI += "file://git-gui-install-mode-arg-spaces.patch;patch=1"
+
 DEPENDS = "openssl curl zlib expat"
 RDEPENDS = "perl perl-module-file-path cpio findutils sed"
 PR = "r2"
-
-- 
1.5.6.4

-------------- next part --------------
>From b312b30ca9804ba8852feef213de0afc68f56aa4 Mon Sep 17 00:00:00 2001
From: Denys Dmytriyenko <denis at denix.org>
Date: Fri, 14 Nov 2008 19:36:05 -0500
Subject: [PATCH] git: add version 1.5.4

---
 packages/git/git-native_1.5.4.bb |    4 ++++
 packages/git/git_1.5.4.bb        |    4 ++++
 2 files changed, 8 insertions(+), 0 deletions(-)
 create mode 100644 packages/git/git-native_1.5.4.bb
 create mode 100644 packages/git/git_1.5.4.bb

diff --git a/packages/git/git-native_1.5.4.bb b/packages/git/git-native_1.5.4.bb
new file mode 100644
index 0000000..b5bfa02
--- /dev/null
+++ b/packages/git/git-native_1.5.4.bb
@@ -0,0 +1,4 @@
+require git.inc
+inherit native
+DEPENDS = "openssl-native curl-native zlib-native expat-native"
+PR = "r3"
diff --git a/packages/git/git_1.5.4.bb b/packages/git/git_1.5.4.bb
new file mode 100644
index 0000000..e06a4b2
--- /dev/null
+++ b/packages/git/git_1.5.4.bb
@@ -0,0 +1,4 @@
+require git.inc
+DEPENDS = "openssl curl zlib expat"
+RDEPENDS = "perl perl-module-file-path cpio findutils sed"
+PR = "r3"
-- 
1.5.6.4

-------------- next part --------------
>From 8146efb42306c21afb5b591e009241a574922489 Mon Sep 17 00:00:00 2001
From: Denys Dmytriyenko <denis at denix.org>
Date: Fri, 14 Nov 2008 19:36:56 -0500
Subject: [PATCH] git: add version 1.6.0.4

---
 packages/git/git-native_1.6.0.4.bb |    4 ++++
 packages/git/git_1.6.0.4.bb        |    4 ++++
 2 files changed, 8 insertions(+), 0 deletions(-)
 create mode 100644 packages/git/git-native_1.6.0.4.bb
 create mode 100644 packages/git/git_1.6.0.4.bb

diff --git a/packages/git/git-native_1.6.0.4.bb b/packages/git/git-native_1.6.0.4.bb
new file mode 100644
index 0000000..b5bfa02
--- /dev/null
+++ b/packages/git/git-native_1.6.0.4.bb
@@ -0,0 +1,4 @@
+require git.inc
+inherit native
+DEPENDS = "openssl-native curl-native zlib-native expat-native"
+PR = "r3"
diff --git a/packages/git/git_1.6.0.4.bb b/packages/git/git_1.6.0.4.bb
new file mode 100644
index 0000000..e06a4b2
--- /dev/null
+++ b/packages/git/git_1.6.0.4.bb
@@ -0,0 +1,4 @@
+require git.inc
+DEPENDS = "openssl curl zlib expat"
+RDEPENDS = "perl perl-module-file-path cpio findutils sed"
+PR = "r3"
-- 
1.5.6.4



More information about the Openembedded-devel mailing list