diff options
author | Rasmus Villemoes <rasmus.villemoes@prevas.dk> | 2022-03-30 12:46:15 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-31 17:52:58 +0100 |
commit | 767a6fb13336afad00da693d4364e06d8b478da3 (patch) | |
tree | bc3aeaec94c60f5e582b5d9f965aa3c8df52ce71 /meta/recipes-devtools/git | |
parent | 65c43b6894422f99b359ace63d898cdf81c86ede (diff) | |
download | poky-767a6fb13336afad00da693d4364e06d8b478da3.tar.gz |
git: make expat and curl into PACKAGECONFIG items
It can be useful to use git on target (e.g. with some wrapper like
etckeeper for keeping track of changes to /etc), and for such cases,
it is likely one has no need for pulling from/pushing to http[s]
repositories. From the INSTALL file:
- "libcurl" library ... If you do not use http:// or https://
repositories, and do not want to put patches into an IMAP
mailbox, you do not have to have them (use NO_CURL).
- "expat" library; git-http-push uses it for remote lock
management over DAV. Similar to "curl" above, this is
optional (with NO_EXPAT).
Setting --without-expat and --without-curl reduces the size of the
installed "git" package from 18M to 12M, in addition to avoiding
pulling those libraries into the rootfs.
(From OE-Core rev: 49f81198c5d233a9a2612c3b8366681dd85bea59)
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/git')
-rw-r--r-- | meta/recipes-devtools/git/git_2.35.1.bb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/recipes-devtools/git/git_2.35.1.bb b/meta/recipes-devtools/git/git_2.35.1.bb index 0cff3ce100..47c2211864 100644 --- a/meta/recipes-devtools/git/git_2.35.1.bb +++ b/meta/recipes-devtools/git/git_2.35.1.bb | |||
@@ -3,7 +3,7 @@ HOMEPAGE = "http://git-scm.com" | |||
3 | DESCRIPTION = "Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency." | 3 | DESCRIPTION = "Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency." |
4 | SECTION = "console/utils" | 4 | SECTION = "console/utils" |
5 | LICENSE = "GPL-2.0-only" | 5 | LICENSE = "GPL-2.0-only" |
6 | DEPENDS = "openssl curl zlib expat" | 6 | DEPENDS = "openssl zlib" |
7 | 7 | ||
8 | PROVIDES:append:class-native = " git-replacement-native" | 8 | PROVIDES:append:class-native = " git-replacement-native" |
9 | 9 | ||
@@ -18,10 +18,12 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=7c0d7ef03a7eb04ce795b0f60e68e7e1" | |||
18 | 18 | ||
19 | CVE_PRODUCT = "git-scm:git" | 19 | CVE_PRODUCT = "git-scm:git" |
20 | 20 | ||
21 | PACKAGECONFIG ??= "" | 21 | PACKAGECONFIG ??= "expat curl" |
22 | PACKAGECONFIG[cvsserver] = "" | 22 | PACKAGECONFIG[cvsserver] = "" |
23 | PACKAGECONFIG[svn] = "" | 23 | PACKAGECONFIG[svn] = "" |
24 | PACKAGECONFIG[manpages] = ",,asciidoc-native xmlto-native" | 24 | PACKAGECONFIG[manpages] = ",,asciidoc-native xmlto-native" |
25 | PACKAGECONFIG[curl] = "--with-curl,--without-curl,curl" | ||
26 | PACKAGECONFIG[expat] = "--with-expat,--without-expat,expat" | ||
25 | 27 | ||
26 | EXTRA_OECONF = "--with-perl=${STAGING_BINDIR_NATIVE}/perl-native/perl \ | 28 | EXTRA_OECONF = "--with-perl=${STAGING_BINDIR_NATIVE}/perl-native/perl \ |
27 | --without-tcltk \ | 29 | --without-tcltk \ |