summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2024-03-11 07:37:11 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-03-18 12:21:45 +0000
commit421083c46c97bf758496b8c58402aea5d74aa097 (patch)
tree1813739523d26624c20fc9b2f649be93245675f4 /meta/recipes-devtools
parent7f4aa8e6a31b1a5a0c3b4db58d7fc183d6b9a03d (diff)
downloadpoky-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/recipes-devtools')
-rw-r--r--meta/recipes-devtools/git/git_2.44.0.bb3
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
4SECTION = "console/utils" 4SECTION = "console/utils"
5LICENSE = "GPL-2.0-only & GPL-2.0-or-later & BSD-3-Clause & MIT & BSL-1.0 & LGPL-2.1-or-later" 5LICENSE = "GPL-2.0-only & GPL-2.0-or-later & BSD-3-Clause & MIT & BSL-1.0 & LGPL-2.1-or-later"
6DEPENDS = "openssl zlib" 6DEPENDS = "openssl zlib"
7DEPENDS:class-native += "ca-certificates"
7 8
8PROVIDES:append:class-native = " git-replacement-native" 9PROVIDES:append:class-native = " git-replacement-native"
9 10
@@ -95,6 +96,7 @@ perl_native_fixup () {
95 96
96REL_GIT_EXEC_PATH = "${@os.path.relpath(libexecdir, bindir)}/git-core" 97REL_GIT_EXEC_PATH = "${@os.path.relpath(libexecdir, bindir)}/git-core"
97REL_GIT_TEMPLATE_DIR = "${@os.path.relpath(datadir, bindir)}/git-core/templates" 98REL_GIT_TEMPLATE_DIR = "${@os.path.relpath(datadir, bindir)}/git-core/templates"
99REL_GIT_SSL_CAINFO = "${@os.path.relpath(sysconfdir, bindir)}/ssl/certs/ca-certificates.crt"
98 100
99do_install:append:class-target () { 101do_install:append:class-target () {
100 perl_native_fixup 102 perl_native_fixup
@@ -103,6 +105,7 @@ do_install:append:class-target () {
103do_install:append:class-native() { 105do_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