From patchwork Tue Jun 16 15:06:19 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_M=C3=BCtzel?= X-Patchwork-Id: 90213 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 87000CD98E3 for ; Tue, 16 Jun 2026 15:13:09 +0000 (UTC) Received: from mx1.emlix.com (mx1.emlix.com [178.63.209.131]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.156606.1781622404504386196 for ; Tue, 16 Jun 2026 08:06:45 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@emlix.com header.s=20250930 header.b=azoaoicZ; dkim=fail reason="dkim: body hash did not verify" header.i=@emlix.com header.s=20250930 header.b=azoaoicZ; spf=pass (domain: emlix.com, ip: 178.63.209.131, mailfrom: andreas.muetzel@emlix.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emlix.com; s=20250930; t=1781622402; bh=nFFd3diyuYwQdnd93HAqGSvEJ/rhLiJ8UQIUreWCJgE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=azoaoicZJWBxBUBFJdIMMSHeFKn4dxH0FYfnEib5MISBEK/HUEojQdMLDGi6YWcqG TkUmDAFisTdOKOBvbhS/xayObbwzOdiUTCNtxblrQh9e0Z+ITJp9cuESnx9o+8KhhP h3frzCeBuo9moVDrS943QGr3x/eXg+9f8EiYq/xh8faKRI4CVGt/DAKHLWc+BSLDLC rKxX+uwzC29dhMn5mj/TjqT99MnGyP9d3uBsizkm1vXtBNKdOrrEJmce5OljRWARRO efAg2MjcWXqZaf01/IE3u5C1iVI8EWufdQDfgRNwthdAtPorhWWJT7WuXgZbkZZZZM qFYr3xAm5wELA== Received: from mx1.emlix.com (localhost [127.0.0.1]) by mx1.emlix.com (Postfix) with ESMTP id 677D05F9D3 for ; Tue, 16 Jun 2026 17:06:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emlix.com; s=20250930; t=1781622402; bh=nFFd3diyuYwQdnd93HAqGSvEJ/rhLiJ8UQIUreWCJgE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=azoaoicZJWBxBUBFJdIMMSHeFKn4dxH0FYfnEib5MISBEK/HUEojQdMLDGi6YWcqG TkUmDAFisTdOKOBvbhS/xayObbwzOdiUTCNtxblrQh9e0Z+ITJp9cuESnx9o+8KhhP h3frzCeBuo9moVDrS943QGr3x/eXg+9f8EiYq/xh8faKRI4CVGt/DAKHLWc+BSLDLC rKxX+uwzC29dhMn5mj/TjqT99MnGyP9d3uBsizkm1vXtBNKdOrrEJmce5OljRWARRO efAg2MjcWXqZaf01/IE3u5C1iVI8EWufdQDfgRNwthdAtPorhWWJT7WuXgZbkZZZZM qFYr3xAm5wELA== Received: from mailer.emlix.com (p5098be52.dip0.t-ipconnect.de [80.152.190.82]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.emlix.com (Postfix) with ESMTPS id 4DC775F921 for ; Tue, 16 Jun 2026 17:06:42 +0200 (CEST) From: =?utf-8?q?Andreas_M=C3=BCtzel?= To: bitbake-devel@lists.openembedded.org Cc: =?utf-8?q?Andreas_M=C3=BCtzel?= Subject: [PATCH v2] fetch2: make unpack_tracer available when fetching mirror URLs Date: Tue, 16 Jun 2026 17:06:19 +0200 Message-ID: <20260616150704.3313786-1-andreas.muetzel@emlix.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: References: MIME-Version: 1.0 X-Virus-Scanned: ClamAV using ClamSMTP 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 ; Tue, 16 Jun 2026 15:13:09 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/19711 When building the FetchData for fetching from mirrors, pass any available unpack_tracer to the newly-created object. This is required to allow fetching repositories that use git-lfs from MIRRORS or PREMIRRORs and fixes the following failure in the git fetcher's unpack() method: AttributeError: 'FetchData' object has no attribute 'unpack_tracer' [YOCTO #15948]. Signed-off-by: Andreas Mützel --- lib/bb/fetch2/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py index 1a6ff25d4d..60bdd32681 100644 --- a/lib/bb/fetch2/__init__.py +++ b/lib/bb/fetch2/__init__.py @@ -1010,6 +1010,8 @@ def build_mirroruris(origud, mirrors, ld): newud = FetchData(newuri, ld) newud.ignore_checksums = True newud.setup_localpath(ld) + if hasattr(ud, 'unpack_tracer'): + newud.unpack_tracer = ud.unpack_tracer except bb.fetch2.BBFetchException as e: logger.debug("Mirror fetch failure for url %s (original url: %s)" % (newuri, origud.url)) logger.debug(str(e))