Received: from smtp5-g21.free.fr ([212.27.42.5]) by linuxtogo.org with esmtp (Exim 4.69) (envelope-from ) id 1OgQDq-0002jv-Ir for openembedded-devel@lists.openembedded.org; Wed, 04 Aug 2010 00:44:38 +0200 Received: from home.lan (unknown [81.57.214.146]) by smtp5-g21.free.fr (Postfix) with ESMTP id CB823D48042; Wed, 4 Aug 2010 00:44:26 +0200 (CEST) Received: from yann by home.lan with local (Exim 4.72) (envelope-from ) id 1OgQJX-0006PL-Ce; Wed, 04 Aug 2010 00:50:27 +0200 Date: Wed, 4 Aug 2010 00:50:27 +0200 From: Yann Dirson To: openembedded-devel@lists.openembedded.org Message-ID: <20100803225027.GH4752@home.lan> MIME-Version: 1.0 In-Reply-To: <1280792514-24843-2-git-send-email-ydirson@altern.org> X-Mailer: git-send-email 1.7.1 User-Agent: Mutt/1.5.20 (2009-06-14) X-SA-Exim-Connect-IP: 212.27.42.5 X-SA-Exim-Mail-From: ydirson@free.fr X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on discovery X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:20:07 +0000) X-SA-Exim-Scanned: Yes (on linuxtogo.org) Subject: [PATCH 2/3] git: split space-hungry rarely-used commands into -perltools and -large packages. X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Aug 2010 22:44:41 -0000 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --- 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 917b609..4973f05 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 = "r6.1" +PR = "r6.2" 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 += " \ + /usr/libexec/git-core/add--interactive \ + /usr/libexec/git-core/git-archimport \ + /usr/libexec/git-core/git-cvsexportcommit \ + /usr/libexec/git-core/git-cvsimport \ + /usr/libexec/git-core/git-cvsserver \ + /usr/bin/git-cvsserver \ + /usr/libexec/git-core/git-difftool \ + /usr/libexec/git-core/git-relink \ + /usr/libexec/git-core/git-send-email \ + /usr/libexec/git-core/git-svn \ + /usr/share/perl \ +" +RDEPENDS_${PN}-perltools = "${PN} perl perl-module-file-path findutils" + +PACKAGES =+ "${PN}-large" +FILES_${PN}-large += " \ + /usr/libexec/git-core/git-http-backend \ + /usr/libexec/git-core/git-daemon \ + /usr/libexec/git-core/git-http-push \ + /usr/libexec/git-core/git-quiltimport \ + /usr/libexec/git-core/git-request-pull \ + /usr/libexec/git-core/git-shell \ + /usr/bin/git-shell \ + /usr/libexec/git-core/git-instaweb \ + /usr/libexec/git-core/git-fast-import \ + /usr/libexec/git-core/git-imap-send \ +" +# those might be useful in a less-than-large package ? +FILES_${PN}-large += " \ + /usr/libexec/git-core/git-http-fetch \ + /usr/libexec/git-core/git-upload-pack \ + /usr/bin/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 += " \ +# /usr/libexec/git-core/git-remote-http \ +#" +RDEPENDS_${PN}-large = "${PN}" -- 1.7.1