ToolsTreePackages=
vs BuildPackages=
#2390
-
Is there any guidelines on when to prefer which? For example I am not sure if there might be better distinction when compiling e.g. C where header files play a role but to me it is not clear what to use when - or is it really that in my case it does not really matter? PS: One advantage of installing dependencies in Maybe this is also a sign that mkosi modeling of building software reaches its limits here as it is mostly focus on C where the dependencies are usually bundled by the distro and slowly changing. Whereas for Python, NodeJS, and also kinda Rust, this is less the case and a two-stage build might be preferred, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@septatrix You do have access to the sources in the prepare script, every script has access to the sources. You use build packages if you want/need to chroot into the image to install stuff. Everything that is installed as a tools tree package needs to have a |
Beta Was this translation helpful? Give feedback.
@septatrix You do have access to the sources in the prepare script, every script has access to the sources.
You use build packages if you want/need to chroot into the image to install stuff. Everything that is installed as a tools tree package needs to have a
--root
option or equivalent to be able to operate on the image.