From patchwork Thu Apr 4 13:29:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mikko Rapeli X-Patchwork-Id: 41990 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 48E88CD1299 for ; Thu, 4 Apr 2024 13:29:34 +0000 (UTC) Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) by mx.groups.io with SMTP id smtpd.web10.38099.1712237369894762266 for ; Thu, 04 Apr 2024 06:29:30 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=uEHdPS+e; spf=pass (domain: linaro.org, ip: 209.85.208.175, mailfrom: mikko.rapeli@linaro.org) Received: by mail-lj1-f175.google.com with SMTP id 38308e7fff4ca-2d717603aa5so12708231fa.0 for ; Thu, 04 Apr 2024 06:29:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712237368; x=1712842168; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=XfrDYMAILq/pB2lp1+U6FJZjpa67MskOwZxYz/+GesM=; b=uEHdPS+e8Nj4OA7n4lpRIHDtbq65JEdxcX4+WHtDqdwi6Su4JLzFk9TnfdF/Y8/yOA HGpU8sxBFNFu8O07LurWgPfunrocem7+CcsgiG4V4Q0FhcyB1dMta7AuWNNGhJ6gdcVB glQ7eES1p6FRKeyP8rQVv4CeqiGJ29sLeC9MYHxkFChRo2OFrfBHiWjkuUGE7+u33LG2 ip729budbSmv2CJKbgZMuLw416GdGfF0tyhxr/eQxs7b1O/haCgpopZbicr2LyJIAxfN KKaF0Jfr6drIwFYMTOPJcPafZc895y1BQ0RRjOByOY5bPVcA9+/L7wkDme8ezK03dJF0 NAlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712237368; x=1712842168; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XfrDYMAILq/pB2lp1+U6FJZjpa67MskOwZxYz/+GesM=; b=aSbV9IaLLTSKCKeFlH877djxFbeeHtvcudcixL2ma65wjg4z56W6r+btPBwMXU1E6X piPJyzH5+jR5wV0xsJndkFLoU68N722ttHyW48KBF1W4QUMJv51/BRDioo4oJnNrcGi0 0L3uILZIPHGXYXH+pb5YucCa0JrhxmYJgFfafq29ZuinYyMGQL1fNDc+N+xThD8ciKtc XLUVX0KjiFLTJFhwmSj/Cn+Znee2If6STRN9m1Pr/L2JrUMrpzvvhOg849nHFyzELr15 Db5aIQZ6FgyxdZs4IBoImBrCRA4WpCcpCnMe4dwQVsR5FUbQfl1xpCfptCzRZWYjGziR 7uaw== X-Gm-Message-State: AOJu0Yxxs/c/o250xuseYLnpZlMm+C2/snuI96xyetbuSNThlEbPlOQ/ mQUMtJCoAhLHYFheafT9G4QBlYAtVO7Kd51oeyHKqfrsYEm9fEP8iWIeH9QACMu4vSajyoMNM4W 4MP0= X-Google-Smtp-Source: AGHT+IFEApEMcSbZwMLZtyHOGmAqiAEWaHzMIoFmaMKVXU3eQ9eWSLwOwmGtQgt6tKRceSW3nGy93A== X-Received: by 2002:a2e:9058:0:b0:2d4:9201:d4ff with SMTP id n24-20020a2e9058000000b002d49201d4ffmr1875790ljg.5.1712237367990; Thu, 04 Apr 2024 06:29:27 -0700 (PDT) Received: from localhost.localdomain (drt4d6yywjht56pm8q3st-3.rev.dnainternet.fi. [2001:14ba:7430:3d00:1239:a19d:315c:6ddf]) by smtp.gmail.com with ESMTPSA id c2-20020a2ea1c2000000b002d70a5defa5sm2095299ljm.7.2024.04.04.06.29.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 06:29:27 -0700 (PDT) From: Mikko Rapeli To: openembedded-core@lists.openembedded.org Cc: Mikko Rapeli , Mathieu Poirier Subject: [PATCH 2/2] curl: disable ca-certificates.crt path setting for native build Date: Thu, 4 Apr 2024 16:29:02 +0300 Message-Id: <20240404132902.68631-2-mikko.rapeli@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240404132902.68631-1-mikko.rapeli@linaro.org> References: <20240404132902.68631-1-mikko.rapeli@linaro.org> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 04 Apr 2024 13:29:34 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/197964 If linux-yocto-dev is compiled without specific SRCREV, it uses AUTOREV which tries to update to latest available commit. This is currently failing with these steps: $ rm -rf tmp*/work/*/linux-yocto-dev && \ bitbake -c do_configure mc:machine:linux-yocto-dev ; \ bitbake -c do_clean mc:machine:linux-yocto-dev ... Parsing recipes...WARNING: /home/builder/src/base/build/../poky/meta/recipes-kernel/linux/linux-yocto-dev.bb: Exception during build_dependencies for fetcher_hashes_dummyfunc WARNING: /home/builder/src/base/build/../poky/meta/recipes-kernel/linux/linux-yocto-dev.bb: Error during finalise of /home/builder/src/base/build/../poky/meta/recipes-kernel/linux/linux-yocto-dev.bb WARNING: /home/builder/src/base/build/../poky/meta/recipes-kernel/linux/linux-yocto-dev.bb: Exception during build_dependencies for fetcher_hashes_dummyfunc WARNING: /home/builder/src/base/build/../poky/meta/recipes-kernel/linux/linux-yocto-dev.bb: Error during finalise of mc:poky:/home/builder/src/base/build/../poky/meta/recipes-kernel/linux/linux-yocto-dev.bb ERROR: ExpansionError during parsing /home/builder/src/base/build/../poky/meta/recipes-kernel/linux/linux-yocto-dev.bb Traceback (most recent call last): File "/home/builder/src/base/poky/bitbake/lib/bb/fetch2/__init__.py", line 1245, in srcrev_internal_helper(ud=, d=, name='machine'): d.setVar("__BBAUTOREV_ACTED_UPON", True) > srcrev = ud.method.latest_revision(ud, d, name) File "/home/builder/src/base/poky/bitbake/lib/bb/fetch2/__init__.py", line 1667, in Git.latest_revision(ud=, d=, name='machine'): except KeyError: > revs[key] = rev = self._latest_revision(ud, d, name) return rev File "/home/builder/src/base/poky/bitbake/lib/bb/fetch2/git.py", line 850, in Git._latest_revision(ud=, d=, name='machine'): > output = self._lsremote(ud, d, "") # Tags of the form ^{} may not work, need to fallback to other form File "/home/builder/src/base/poky/bitbake/lib/bb/fetch2/git.py", line 833, in Git._lsremote(ud=, d=, search=''): bb.fetch2.check_network_access(d, cmd, repourl) > output = runfetchcmd(cmd, d, True) if not output: File "/home/builder/src/base/poky/bitbake/lib/bb/fetch2/__init__.py", line 957, in runfetchcmd(cmd='export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/15818/bus"; export PATH="/home/builder/src/base/build/tmp_poky/sysroots-uninative/x86_64-linux/usr/bin:/home/builder/src/base/poky/scripts:/home/builder/src/base/build/tmp_poky/work/poky-poky-linux/linux-yocto-dev/6.8+git/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/home/builder/src/base/build/tmp_poky/work/poky-poky-linux/linux-yocto-dev/6.8+git/recipe-sysroot/usr/bin/crossscripts:/home/builder/src/base/build/tmp_poky/work/poky-poky-linux/linux-yocto-dev/6.8+git/recipe-sysroot-native/usr/sbin:/home/builder/src/base/build/tmp_poky/work/poky-poky-linux/linux-yocto-dev/6.8+git/recipe-sysroot-native/usr/bin:/home/builder/src/base/build/tmp_poky/work/poky-poky-linux/linux-yocto-dev/6.8+git/recipe-sysroot-native/sbin:/home/builder/src/base/build/tmp_poky/work/poky-poky-linux/linux-yocto-dev/6.8+git/recipe-sysroot-native/bin:/home/builder/src/base/poky/bitbake/bin:/home/builder/src/base/build/tmp_poky/hosttools"; export HOME="/home/builder"; git -c gc.autoDetach=false -c core.pager=cat -c safe.bareRepository=all ls-remote https://git.yoctoproject.org/linux-yocto-dev.git ', d=, quiet=True, cleanup=[], log=None, workdir=None): > raise FetchError(error_message) bb.data_smart.ExpansionError: Failure expanding variable fetcher_hashes_dummyfunc[vardepvalue], expression was ${@bb.fetch.get_hashvalue(d)} which triggered exception FetchError: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/15818/bus"; export PATH="/home/builder/src/base/build/tmp_poky/sysroots-uninative/x86_64-linux/usr/bin:/home/builder/src/base/poky/scripts:/home/builder/src/base/build/tmp_poky/work/poky-poky-linux/linux-yocto-dev/6.8+git/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/home/builder/src/base/build/tmp_poky/work/poky-poky-linux/linux-yocto-dev/6.8+git/recipe-sysroot/usr/bin/crossscripts:/home/builder/src/base/build/tmp_poky/work/poky-poky-linux/linux-yocto-dev/6.8+git/recipe-sysroot-native/usr/sbin:/home/builder/src/base/build/tmp_poky/work/poky-poky-linux/linux-yocto-dev/6.8+git/recipe-sysroot-native/usr/bin:/home/builder/src/base/build/tmp_poky/work/poky-poky-linux/linux-yocto-dev/6.8+git/recipe-sysroot-native/sbin:/home/builder/src/base/build/tmp_poky/work/poky-poky-linux/linux-yocto-dev/6.8+git/recipe-sysroot-native/bin:/home/builder/src/base/poky/bitbake/bin:/home/builder/src/base/build/tmp_poky/hosttools"; export HOME="/home/builder"; git -c gc.autoDetach=false -c core.pager=cat -c safe.bareRepository=all ls-remote https://git.yoctoproject.org/linux-yocto-dev.git failed with exit code 128, output: fatal: unable to access 'https://git.yoctoproject.org/linux-yocto-dev.git/': error setting certificate file: /home/builder/src/base/build/tmp_poky/work/x86_64-linux/curl-native/8.6.0/recipe-sysroot-native/etc/ssl/certs/ca-certificates.crt The variable dependency chain for the failure is: fetcher_hashes_dummyfunc[vardepvalue] ERROR: Parsing halted due to errors, see error messages above Summary: There were 6 WARNING messages. Summary: There were 2 ERROR messages, returning a non-zero exit code. This state is not recoverable with bitbake calls. All of them fail from now on. "rm -rf tmp/work/*/linux-yocto-dev" recovers the situation and bitbake commands work again. Root cause is curl-native, dependency of git-native, which has --with-ca-bundle=${sysconfdir}/ssl/certs/ca-certificates.crt which for native build target is wrong and points to curl-native build directory path /home/builder/src/base/build/tmp_poky/work/x86_64-linux/curl-native/8.6.0/recipe-sysroot-native/etc/ssl/certs/ca-certificates.crt Since git is a build time host package dependency listed in https://docs.yoctoproject.org/dev/singleindex.html#build-host-packages then its dependencies like curl and ca-certificates are too, it should be safe for curl-native to use the default host ca-certificates path instead of the one in recipe specific sysroots which would need to be set with complicated environment variables. Set non-default ca-certificates path only for target and nativesdk builds. Reported-by: Mathieu Poirier Signed-off-by: Mikko Rapeli --- meta/recipes-support/curl/curl_8.6.0.bb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/meta/recipes-support/curl/curl_8.6.0.bb b/meta/recipes-support/curl/curl_8.6.0.bb index 49ba0cb4a7..da5571ca14 100644 --- a/meta/recipes-support/curl/curl_8.6.0.bb +++ b/meta/recipes-support/curl/curl_8.6.0.bb @@ -73,11 +73,16 @@ PACKAGECONFIG[zstd] = "--with-zstd,--without-zstd,zstd" EXTRA_OECONF = " \ --disable-libcurl-option \ --disable-ntlm-wb \ - --with-ca-bundle=${sysconfdir}/ssl/certs/ca-certificates.crt \ --without-libpsl \ --enable-optimize \ ${@'--without-ssl' if (bb.utils.filter('PACKAGECONFIG', 'gnutls mbedtls openssl', d) == '') else ''} \ " +EXTRA_OECONF:class-target = " \ + --with-ca-bundle=${sysconfdir}/ssl/certs/ca-certificates.crt \ +" +EXTRA_OECONF:class-nativesdk = " \ + --with-ca-bundle=${sysconfdir}/ssl/certs/ca-certificates.crt \ +" fix_absolute_paths () { # cleanup buildpaths from curl-config