Yocto Project Discussions
 help / color / mirror / Atom feed
* Yocto Binary Distro
@ 2024-10-07  5:03 Aleksandar Nikolic
  2024-10-07 11:31 ` [yocto] " Alexander Kanavin
  0 siblings, 1 reply; 12+ messages in thread
From: Aleksandar Nikolic @ 2024-10-07  5:03 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 4192 bytes --]

Greetings!

After watching a talk from Michael Opdenacker from this year's OSS Europe about Yocto Binary Distros (see [1]), I've been experimenting with installing pre-built packages directly onto the target and I have a few questions regarding this topic, maybe someone more experienced could chime in:

1) When I build a recipe previously not installed in my image and want to install it during runtime, the dnf install command fails, saying that the package's dependencies are not met (see [2] for more info). This is fine, as I can see that the tmp/deploy/rpm directory does not contain all of the package's dependencies nor the dependencies' WORKDIRs contain the deploy-rpms directory. Is this behavior correct? Shouldn't building a recipe also lead that all of its dependencies are not just built but also packaged and put into the tpm/deploy/rpm directory (the same as with building the image containing the package in question)?

2) Is there an official, stable, and not some hacky way to install already pre-built packages during the build and not later during runtime? So instead of building from source or from the sstate-cache, to provide a URL to a webserver holding packages, which would then be pulled and installed (if I am not wrong Isar does this)?

3) Is enabling and using the package runtime management recommended and encouraged when it comes to Yocto running on actual devices and not during a development phase? IMHO we are talking about embedded devices here, with little or no user interaction, with secure boot enabled, atomic updates, etc. and having a package management system such as dnf or apt is cool, but is also kind of brittle (a simple power off during apt update can break the system).

Thanks.
Aleksandar

[1] Building and Maintaining Binary Distributions with Yocto - Michael Opdenacker, Root Commit - YouTube ( https://www.youtube.com/watch?v=UdJZ0xz-QLk&list=PLbzoR-pLrL6rC7SpO7MJCZm22Qp5ns3p-&index=66 )

[2]
# building the image
bitbake core-image-minimal
bitbake package-index

# building the recipe which is not in the image
bitbake vim
bitbake package-index

# trying to install the recipe in core-image-minimal fails
root@qemux86-64:~# dnf install vim
OE Remote Repo: rpm core2_64                                                                                                                                                                                                                 970 kB/s | 476 kB     00:00
OE Remote Repo: rpm qemux86_64                                                                                                                                                                                                               238 kB/s |  62 kB     00:00
Error:
Problem: conflicting requests
- nothing provides libXt.so.6()(64bit) needed by vim-9.1.0698-r0.core2_64 from oe-remote-repo-rpm-core2_64
- nothing provides libgdk-3.so.0()(64bit) needed by vim-9.1.0698-r0.core2_64 from oe-remote-repo-rpm-core2_64
- nothing provides libgdk_pixbuf-2.0.so.0()(64bit) needed by vim-9.1.0698-r0.core2_64 from oe-remote-repo-rpm-core2_64
- nothing provides libgtk-3.so.0()(64bit) needed by vim-9.1.0698-r0.core2_64 from oe-remote-repo-rpm-core2_64
- nothing provides libpango-1.0.so.0()(64bit) needed by vim-9.1.0698-r0.core2_64 from oe-remote-repo-rpm-core2_64
- nothing provides libpangocairo-1.0.so.0()(64bit) needed by vim-9.1.0698-r0.core2_64 from oe-remote-repo-rpm-core2_64
- nothing provides libgdk-pixbuf-2.0-0 >= 2.42.12 needed by vim-9.1.0698-r0.core2_64 from oe-remote-repo-rpm-core2_64
- nothing provides libgtk-3.0 >= 3.24.43 needed by vim-9.1.0698-r0.core2_64 from oe-remote-repo-rpm-core2_64
- nothing provides libxt6 >= 1.3.0 needed by vim-9.1.0698-r0.core2_64 from oe-remote-repo-rpm-core2_64
- nothing provides pango >= 1.54.0 needed by vim-9.1.0698-r0.core2_64 from oe-remote-repo-rpm-core2_64
(try to add '--skip-broken' to skip uninstallable packages)

[-- Attachment #2: Type: text/html, Size: 5564 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-10-08 12:16 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-07  5:03 Yocto Binary Distro Aleksandar Nikolic
2024-10-07 11:31 ` [yocto] " Alexander Kanavin
2024-10-07 14:43   ` Aleksandar Nikolic
2024-10-07 19:07   ` Dmitry Baryshkov
2024-10-07 19:27     ` Alexander Kanavin
2024-10-07 19:29       ` Dmitry Baryshkov
2024-10-07 20:34         ` Aleksandar Nikolic
2024-10-07 23:25           ` Dmitry Baryshkov
2024-10-08  8:30             ` Aleksandar Nikolic
2024-10-08  8:53               ` Mikko Rapeli
2024-10-08 12:09                 ` Aleksandar Nikolic
2024-10-08 12:16                   ` Mikko Rapeli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox