[yocto] [PATCH] msbuild: add ca-certificates for curl

Jef Driesen jef.driesen at niko.eu
Mon Sep 24 05:16:41 PDT 2018


The msbuild bootstrap scripts uses curl to download some pre-build files. The
ca-certificates are required in order to support https. The CURL_CA_BUNDLE is
used to override the built-in path, because this is hardcoded to curl's own
sysroot, which may already be removed when building msbuild.

Signed-off-by: Jef Driesen <jef.driesen at niko.eu>
---
 recipes-mono/msbuild/msbuild_git.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/recipes-mono/msbuild/msbuild_git.bb b/recipes-mono/msbuild/msbuild_git.bb
index 8a89543..6a6761a 100644
--- a/recipes-mono/msbuild/msbuild_git.bb
+++ b/recipes-mono/msbuild/msbuild_git.bb
@@ -4,7 +4,7 @@ SECTION = "console/apps"
 LICENSE = "MIT"
 DEPENDS = " \
 			coreutils-native findutils-native curl-native \
-			unzip-native mono-native \
+			unzip-native mono-native ca-certificates-native \
 		"
 
 LIC_FILES_CHKSUM = "file://LICENSE;md5=768c552053144071f8ef7e5621714b0a"
@@ -23,7 +23,7 @@ SRC_URI = " \
 S = "${WORKDIR}/git"
 
 do_compile () {
-	./cibuild.sh --scope Compile --host Mono --target Mono --config Release --bootstrap-only
+	CURL_CA_BUNDLE=${STAGING_DIR_NATIVE}/etc/ssl/certs/ca-certificates.crt ./cibuild.sh --scope Compile --host Mono --target Mono --config Release --bootstrap-only
 }
 
 do_install () {
-- 
2.7.4



More information about the yocto mailing list