network in build

7 views
Skip to first unread message

Stephen Ecker

unread,
Jun 24, 2025, 10:41:14 AM6/24/25
to isar-users
one of the packages I'm attempting to install downloads files and is unable to resolve the hostnames...  does the build environment not have access to networking?  How can I make this work? 

The package is ttf-mscorefonts-installer

thanks

Heinisch, Alexander

unread,
Jun 24, 2025, 11:35:52 AM6/24/25
to stephen...@gmail.com, isar-...@googlegroups.com
On Tue, 2025-06-24 at 07:41 -0700, Stephen Ecker wrote:
> one of the packages I'm attempting to install downloads files and is
> unable to resolve the hostnames...  does the build environment not
> have access to networking?  How can I make this work? 

Network in the build system is only available for do_fetch by default.
You can enable it for a specific task by setting do_mytask[network] =
'1'

from the bitbake manual [1]:
```
[network]: When set to “1”, allows a task to access the network. By
default, only the do_fetch task is granted network access. Recipes
shouldn’t access the network outside of do_fetch as it usually
undermines fetcher source mirroring, image and licence manifests,
software auditing and supply chain security.
```

[1]: https://docs.yoctoproject.org/bitbake/dev/singleindex.html

BR Alexander

>
> The package is ttf-mscorefonts-installer
>
> thanks

--
Alexander Heinisch
Siemens AG
www.siemens.com
Reply all
Reply to author
Forward
0 new messages