On Thu, 2025-10-30 at 11:36 +0900, Kazunori Kobayashi wrote:
> On 10/29/25 22:53, Florian Bezdeka wrote:
> > On Wed, 2025-10-29 at 10:43 +0900, Kazunori Kobayashi wrote:
> > > I assume Isar considers networking via proxy in such as downloading
> > > something in do_fetch, resolving dependencies in do_dpkg_build and
> > > package installation on the target root filesystem in do_rootfs_install.
> > > We can actually use it in such typical cases with no problem.
> > >
> > > This change has effect on a very limited case, where a self-built
> > > package fetching a source package via the apt:// scheme in SRC_URI is
> > > specified as a native package (<package>-native) to IMAGE_INSTALL or
> > > SDK_INSTALL. In this case, the source package is fetched via apt-get in
> > > schroot in do_fetch_common_source but proxy environment variables are
> > > not set in the executing shell function.
> > It seems that I missed that the apt:// fetcher is invoked quite late,
> > so already inside the schroot environment. That is done that way to use
> > the apt machinery of the target distribution already.
>
> Thank you for instructing me on the existing apt fetcher issue. If
> possible, I would like to understand how to fix the issue properly.
> Could you please roughly clarify it on the code base, if you don't mind?
>
> I found a different apt fetcher code from do_fetch_common_source in the
> following place and it seems to set proxy settings before fetching a apt
> source package inside the schroot environment.
>
>
https://github.com/ilbers/isar/blob/master/meta/lib/aptsrc_fetcher.py
package. It fetches the Debian source package from the (internal)
There are two apt-get commands here. The first one is local only, the
second one will talk to "upstream" / the network as well. This will
>
> Regards,
> Kazunori
> >
> > So yes, that seems correct.
> >
> > Thanks for the additional information. You could (if you like) send a
> > v2 with that information part of the commit message. Will help the
> > maintainers as well.
> >
> > Thanks for your contribution!
> >
> > Best regards,
> > Florian
>
>
> --
> Kazunori Kobayashi
> Cybertrust Japan Co., Ltd.
>
https://www.cybertrust.co.jp/
>