From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: sivakumar.bs@gmail.com, bitbake-devel@lists.openembedded.org
Cc: randy.macleod@windriver.com, Oliver Feilner <oliver.feilner@yaskawa.eu>
Subject: Re: [bitbake-devel][PATCH] fetch2: give every FetchData a default unpack_tracer
Date: Fri, 03 Jul 2026 13:30:46 +0100 [thread overview]
Message-ID: <ced86d752a6d62c374f8d2db03adc1787b4c79fa.camel@linuxfoundation.org> (raw)
In-Reply-To: <20260703110612.294043-1-sivakumar.bs@gmail.com>
On Fri, 2026-07-03 at 16:36 +0530, Siva Balasubramanian via lists.openembedded.org wrote:
> Fetch() sets an unpack_tracer attribute on the FetchData objects it
> manages, but the per-mirror FetchData objects created in
> build_mirroruris() are constructed directly and never get one. When a
> mirror is used for a git recipe that needs Git LFS, git.py's download()
> performs a checkout (via Git.unpack()) on the mirror's FetchData to
> materialise the LFS objects, and that unpack path dereferences
> ud.unpack_tracer, failing with:
>
> AttributeError: 'FetchData' object has no attribute 'unpack_tracer'
>
> so PREMIRRORS/MIRRORS fetching is broken for git-lfs sources.
>
> Fix this at the source by initialising unpack_tracer to a
> DummyUnpackTracer in FetchData.__init__(), so the attribute always
> exists. Fetch() still overrides it with the real (possibly
> user-configured via BB_UNPACK_TRACER_CLASS) tracer for the URLs it
> manages; the mirror FetchData objects only perform an internal,
> throwaway checkout that should not be traced anyway.
>
> Add a MirrorUriTest regression test asserting the mirror FetchData
> objects carry an unpack_tracer.
>
> Reported-by: Oliver Feilner <oliver.feilner@yaskawa.eu>
>
> [YOCTO #15948]
>
> Signed-off-by: Siva Balasubramanian <sivakumar.bs@gmail.com>
Wasn't this already fixed by:
https://git.openembedded.org/bitbake/commit/?id=f0c9cf8d3885c5b1c2ba448f064421dae476fcd0
?
We don't want to add a dummy one everywhere, only add one when needed
as the patch avove does...
Cheers,
Richard
next prev parent reply other threads:[~2026-07-03 12:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-03 11:06 [bitbake-devel][PATCH] fetch2: give every FetchData a default unpack_tracer Siva Balasubramanian
2026-07-03 12:30 ` Richard Purdie [this message]
2026-07-03 12:39 ` Siva Kumar Balasubramanian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ced86d752a6d62c374f8d2db03adc1787b4c79fa.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=bitbake-devel@lists.openembedded.org \
--cc=oliver.feilner@yaskawa.eu \
--cc=randy.macleod@windriver.com \
--cc=sivakumar.bs@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.