From patchwork Thu Feb 5 02:45:02 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Yiding X-Patchwork-Id: 80495 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 5F6DCE91283 for ; Thu, 5 Feb 2026 07:03:09 +0000 (UTC) Received: from esa8.hc1455-7.c3s2.iphmx.com (esa8.hc1455-7.c3s2.iphmx.com [139.138.61.253]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.12318.1770259513665693629 for ; Wed, 04 Feb 2026 18:45:14 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@fujitsu.com header.s=fj2 header.b=bxmNDXDM; spf=pass (domain: fujitsu.com, ip: 139.138.61.253, mailfrom: liuyd.fnst@fujitsu.com) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=fujitsu.com; i=@fujitsu.com; q=dns/txt; s=fj2; t=1770259511; x=1801795511; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=B25GpftxO6zjvXJHUOfMCKNqezG9VqiUW9b7kOWCREc=; b=bxmNDXDMT/6dm9SsMznE6Nfky+qbko6/nqdXdMrfqkXndD5TNg4dTzVS 7+sa505nrvT8CJ9lHKL1ON2LATQF54mZdMQTOoFz8CvXh1mq+NGFtBbD/ FSNJdOBpiJgeanfxPYo9A9kgH9Rg3vFYNtPYQzE/M15wH4FxRYwMa6Bph yirqCgNpNUQpMMmrNBmUamvY48/r7QNCPrBUPvfRJjirVrP7nH4donOEQ 2hfynCqlUsu+K/SQ+pGm1WID/s6wDdrbMDeAaPO6VlDxDEjmTNNLTLaoR 1kXPcCFChLBHXTIYOvApoPU0+yqABhxGegspogaOY9UmSoXJCEN4PFml9 g==; X-CSE-ConnectionGUID: iv4JIECHQCaB9cStGm4moA== X-CSE-MsgGUID: vJqMH20HSACnUt4b3JFq1Q== X-IronPort-AV: E=McAfee;i="6800,10657,11691"; a="216523887" X-IronPort-AV: E=Sophos;i="6.21,273,1763391600"; d="scan'208";a="216523887" Received: from unknown (HELO mail.fujitsu.com) ([51.138.80.169]) by esa8.hc1455-7.c3s2.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2026 11:45:10 +0900 Received: from az2uksmgm4.o.css.fujitsu.com (unknown [10.151.22.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by az2nlsmgr4.fujitsu.com (Postfix) with ESMTPS id DB04142A31C for ; Thu, 5 Feb 2026 02:45:11 +0000 (UTC) Received: from az2uksmom2.o.css.fujitsu.com (az2uksmom2.o.css.fujitsu.com [10.151.22.203]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by az2uksmgm4.o.css.fujitsu.com (Postfix) with ESMTPS id 81BF21407342 for ; Thu, 5 Feb 2026 02:45:11 +0000 (UTC) Received: from G08FNSTD190101.g08.fujitsu.local (unknown [10.193.135.3]) by az2uksmom2.o.css.fujitsu.com (Postfix) with ESMTP id 42E1A1400128 for ; Thu, 5 Feb 2026 02:45:08 +0000 (UTC) From: "Yiding Liu (Fujitsu)" To: bitbake-devel@lists.openembedded.org Subject: [OE-core][PATCH] bitbake-setup: Add strip to dldir Date: Thu, 5 Feb 2026 10:45:02 +0800 Message-ID: <20260205024502.2382-1-liuyd.fnst@fujitsu.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 05 Feb 2026 07:03:09 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/18960 If user add "" to dl-dir as DL_DIR, it will show FetchError as following. raise FetchError("Unable to fetch URL from any source.", u) bb.fetch2.FetchError: Fetcher failure for URL: 'git://git.openembedded.org/bitbake;protocol=https;rev=master;branch=master;destsuffix=bitbake'. Unable to fetch URL from any source. But from this log, user can't locate the real reason which is that the path "/aa/bb" is invalid. So I make this fix, even if user add "" to dl-dir, the dl-dir will be the valid path. Signed-off-by: Liu Yiding --- bin/bitbake-setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/bitbake-setup b/bin/bitbake-setup index abe7614c8..2ea5a5f3b 100755 --- a/bin/bitbake-setup +++ b/bin/bitbake-setup @@ -41,7 +41,7 @@ def cache_dir(top_dir): return os.path.join(top_dir, '.bitbake-setup-cache') def init_bb_cache(top_dir, settings, args): - dldir = settings["default"]["dl-dir"] + dldir = settings["default"]["dl-dir"].strip('"') bb_cachedir = os.path.join(cache_dir(top_dir), 'bitbake-cache') d = bb.data.init()