summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2017-08-29 23:21:14 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-31 17:57:12 +0100
commitabc1771306d73020170d95e3104ca98df1f98d2d (patch)
tree7f064498f48727d98019fc559ffd2b7b6e30212e /meta
parent6f5b49ba2245e1d4d6de48ce96018afb6446e490 (diff)
downloadpoky-abc1771306d73020170d95e3104ca98df1f98d2d.tar.gz
git: Do not install git cvsserver and git svn by default
These git commands require Perl modules that do not exist in OE-Core. Add PACKAGECONFIGs to enable them. Be aware though that if you enable them you must also provide the missing dependencies. (From OE-Core rev: a803938407ee5a55fb40a6940bb6680ba21909b0) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/git/git.inc21
1 files changed, 21 insertions, 0 deletions
diff --git a/meta/recipes-devtools/git/git.inc b/meta/recipes-devtools/git/git.inc
index 9b0d328bad..5c12ca8d4c 100644
--- a/meta/recipes-devtools/git/git.inc
+++ b/meta/recipes-devtools/git/git.inc
@@ -13,6 +13,10 @@ S = "${WORKDIR}/git-${PV}"
13 13
14LIC_FILES_CHKSUM = "file://COPYING;md5=7c0d7ef03a7eb04ce795b0f60e68e7e1" 14LIC_FILES_CHKSUM = "file://COPYING;md5=7c0d7ef03a7eb04ce795b0f60e68e7e1"
15 15
16PACKAGECONFIG ??= ""
17PACKAGECONFIG[cvsserver] = ""
18PACKAGECONFIG[svn] = ""
19
16EXTRA_OECONF = "--with-perl=${STAGING_BINDIR_NATIVE}/perl-native/perl \ 20EXTRA_OECONF = "--with-perl=${STAGING_BINDIR_NATIVE}/perl-native/perl \
17 --without-tcltk \ 21 --without-tcltk \
18" 22"
@@ -54,6 +58,23 @@ perl_native_fixup () {
54 mkdir -p ${D}${libdir} 58 mkdir -p ${D}${libdir}
55 mv ${D}${exec_prefix}/lib/perl-native/perl ${D}${libdir} 59 mv ${D}${exec_prefix}/lib/perl-native/perl ${D}${libdir}
56 rmdir -p ${D}${exec_prefix}/lib/perl-native || true 60 rmdir -p ${D}${exec_prefix}/lib/perl-native || true
61
62 if [ ! "${@bb.utils.filter('PACKAGECONFIG', 'cvsserver', d)}" ]; then
63 # Only install the git cvsserver command if explicitly requested
64 # as it requires the DBI Perl module, which does not exist in
65 # OE-Core.
66 rm ${D}${libexecdir}/git-core/git-cvsserver \
67 ${D}${bindir}/git-cvsserver
68 fi
69
70 if [ ! "${@bb.utils.filter('PACKAGECONFIG', 'svn', d)}" ]; then
71 # Only install the git svn command and all Git::SVN Perl modules
72 # if explicitly requested as they require the SVN::Core Perl
73 # module, which does not exist in OE-Core.
74 rm -r ${D}${libexecdir}/git-core/git-svn \
75 ${D}${libdir}/perl/site_perl/*/Git/SVN*
76 sed -i -e '/SVN/d' ${D}${libdir}/perl/site_perl/*/auto/Git/.packlist
77 fi
57} 78}
58 79
59REL_GIT_EXEC_PATH = "${@os.path.relpath(libexecdir, bindir)}/git-core" 80REL_GIT_EXEC_PATH = "${@os.path.relpath(libexecdir, bindir)}/git-core"