diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2024-03-11 07:37:11 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-03-18 12:21:45 +0000 |
commit | 421083c46c97bf758496b8c58402aea5d74aa097 (patch) | |
tree | 1813739523d26624c20fc9b2f649be93245675f4 /meta | |
parent | 7f4aa8e6a31b1a5a0c3b4db58d7fc183d6b9a03d (diff) | |
download | poky-421083c46c97bf758496b8c58402aea5d74aa097.tar.gz |
git: git-replacement-native: depend on ca-certificate
git is delegating webacces for URLs using TLS to libcurl.
However our native libcurl build does not find a ca-certificate.crt
unless its curl-native work dir still exists and thus git will
fail.
If a recipe uses AUTOREV with a git repo using https as its protocol
parsing of that recipe will fail fetching the latest HEAD.
Fix that by depending on ca-certificate and give its location
to libcurl via git's envrironment variable GIT_SSL_CAINFO.
(From OE-Core rev: 2e99ffda70fd95b5eab3de47048032349cd66f4b)
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/git/git_2.44.0.bb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-devtools/git/git_2.44.0.bb b/meta/recipes-devtools/git/git_2.44.0.bb index e6d1470873..90e555eba7 100644 --- a/meta/recipes-devtools/git/git_2.44.0.bb +++ b/meta/recipes-devtools/git/git_2.44.0.bb | |||
@@ -4,6 +4,7 @@ DESCRIPTION = "Git is a free and open source distributed version control system | |||
4 | SECTION = "console/utils" | 4 | SECTION = "console/utils" |
5 | LICENSE = "GPL-2.0-only & GPL-2.0-or-later & BSD-3-Clause & MIT & BSL-1.0 & LGPL-2.1-or-later" | 5 | LICENSE = "GPL-2.0-only & GPL-2.0-or-later & BSD-3-Clause & MIT & BSL-1.0 & LGPL-2.1-or-later" |
6 | DEPENDS = "openssl zlib" | 6 | DEPENDS = "openssl zlib" |
7 | DEPENDS:class-native += "ca-certificates" | ||
7 | 8 | ||
8 | PROVIDES:append:class-native = " git-replacement-native" | 9 | PROVIDES:append:class-native = " git-replacement-native" |
9 | 10 | ||
@@ -95,6 +96,7 @@ perl_native_fixup () { | |||
95 | 96 | ||
96 | REL_GIT_EXEC_PATH = "${@os.path.relpath(libexecdir, bindir)}/git-core" | 97 | REL_GIT_EXEC_PATH = "${@os.path.relpath(libexecdir, bindir)}/git-core" |
97 | REL_GIT_TEMPLATE_DIR = "${@os.path.relpath(datadir, bindir)}/git-core/templates" | 98 | REL_GIT_TEMPLATE_DIR = "${@os.path.relpath(datadir, bindir)}/git-core/templates" |
99 | REL_GIT_SSL_CAINFO = "${@os.path.relpath(sysconfdir, bindir)}/ssl/certs/ca-certificates.crt" | ||
98 | 100 | ||
99 | do_install:append:class-target () { | 101 | do_install:append:class-target () { |
100 | perl_native_fixup | 102 | perl_native_fixup |
@@ -103,6 +105,7 @@ do_install:append:class-target () { | |||
103 | do_install:append:class-native() { | 105 | do_install:append:class-native() { |
104 | create_wrapper ${D}${bindir}/git \ | 106 | create_wrapper ${D}${bindir}/git \ |
105 | GIT_EXEC_PATH='`dirname $''realpath`'/${REL_GIT_EXEC_PATH} \ | 107 | GIT_EXEC_PATH='`dirname $''realpath`'/${REL_GIT_EXEC_PATH} \ |
108 | GIT_SSL_CAINFO='`dirname $''realpath`'/${REL_GIT_SSL_CAINFO} \ | ||
106 | GIT_TEMPLATE_DIR='`dirname $''realpath`'/${REL_GIT_TEMPLATE_DIR} | 109 | GIT_TEMPLATE_DIR='`dirname $''realpath`'/${REL_GIT_TEMPLATE_DIR} |
107 | } | 110 | } |
108 | 111 | ||