[oe-commits] Yann Dirson : git: split space-hungry rarely-used commands into -perltools and -large packages .
git version control
git at git.openembedded.org
Wed Sep 22 06:06:05 UTC 2010
Module: openembedded.git
Branch: master
Commit: 287f5ec79cf223238652ad8cfd9e004fd08305e5
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=287f5ec79cf223238652ad8cfd9e004fd08305e5
Author: Yann Dirson <ydirson at altern.org>
Date: Wed Sep 15 11:27:47 2010 +0000
git: split space-hungry rarely-used commands into -perltools and -large packages.
This trims the main package by ~75%, and split of all perl scripts allows
to spare the installation of perl, which is no small bargain either.
Note that git-remote-http triggers a strange bug (OE#5465), so it is not
split out for now.
Also drop cpio dependency, which has been unneeded since a number of git
revisions.
Tested rapidly on shr/testing: seen no problem doing clone/commit/amend/reset/
revert/log/status/diff/rebase -i/conflict resolution.
Signed-off-by: Yann Dirson <ydirson at altern.org>
Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
recipes/git/git_1.7.0.2.bb | 46 ++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 44 insertions(+), 2 deletions(-)
diff --git a/recipes/git/git_1.7.0.2.bb b/recipes/git/git_1.7.0.2.bb
index 0ca44b5..b1ccd6c 100644
--- a/recipes/git/git_1.7.0.2.bb
+++ b/recipes/git/git_1.7.0.2.bb
@@ -9,12 +9,12 @@ EXTRA_OECONF += "ac_cv_snprintf_returns_bogus=no ac_cv_c_c99_format=yes"
DEPENDS = "openssl curl zlib expat"
-RDEPENDS_${PN} = "perl perl-module-file-path cpio findutils sed"
+RDEPENDS_${PN} = "findutils sed"
# Dropbear ssh needs a wrapper script, so install openssh-ssh to make it work out of the box
RRECOMMENDS_${PN} = "openssh-ssh"
-PR = "r8"
+PR = "r9"
do_install_append() {
# Fix broken hardlinks
@@ -30,3 +30,45 @@ do_install_append() {
}
FILES_${PN}-dbg += "${libexecdir}/git-core/.debug"
+
+PACKAGES =+ "${PN}-perltools"
+FILES_${PN}-perltools += " \
+ ${libexecdir}/git-core/git-add--interactive \
+ ${libexecdir}/git-core/git-archimport \
+ ${libexecdir}/git-core/git-cvsexportcommit \
+ ${libexecdir}/git-core/git-cvsimport \
+ ${libexecdir}/git-core/git-cvsserver \
+ ${bindir}/git-cvsserver \
+ ${libexecdir}/git-core/git-difftool \
+ ${libexecdir}/git-core/git-relink \
+ ${libexecdir}/git-core/git-send-email \
+ ${libexecdir}/git-core/git-svn \
+ ${datadir}/perl \
+"
+RDEPENDS_${PN}-perltools = "${PN} perl perl-module-file-path findutils"
+
+PACKAGES =+ "${PN}-large"
+FILES_${PN}-large += " \
+ ${libexecdir}/git-core/git-http-backend \
+ ${libexecdir}/git-core/git-daemon \
+ ${libexecdir}/git-core/git-http-push \
+ ${libexecdir}/git-core/git-quiltimport \
+ ${libexecdir}/git-core/git-request-pull \
+ ${libexecdir}/git-core/git-shell \
+ ${bindir}/git-shell \
+ ${libexecdir}/git-core/git-instaweb \
+ ${libexecdir}/git-core/git-fast-import \
+ ${libexecdir}/git-core/git-imap-send \
+"
+# those might be useful in a less-than-large package ?
+FILES_${PN}-large += " \
+ ${libexecdir}/git-core/git-http-fetch \
+ ${libexecdir}/git-core/git-upload-pack \
+ ${bindir}/git-upload-pack \
+"
+# same here, but adding it causes git to depend on git-large(!)
+# see http://bugs.openembedded.net/show_bug.cgi?id=5465
+#FILES_${PN}-large += " \
+# ${libexecdir}/git-core/git-remote-http \
+#"
+RDEPENDS_${PN}-large = "${PN}"
More information about the Openembedded-commits
mailing list