On 7/15/2022 8:01, Johannes Meixner wrote:
On 2022-07-15 15:33, Dan Čermák wrote:
If two flatpaks use the same version of the runtime, then you'll get it only once. If they depend on different versions, then you'll obviously have duplicates, but we should set policies in place to prevent this from happening.
Huh?
Perhaps I misunderstand what is meant with "runtime" here but isn't it the whole idea behind something like Flatpak that applications come with all their needed libraries and so on to make it possible that applications can run within a different runtime environment compared to what is installed on the host system?
Yes, "runtime" in terms of flatpak means a packaged set of some dependencies that can be shared between flatpaks. So a flatpak "can" come with all the needed libraries, but in that case every library would be duplicated for every app. So instead they can depend on a flatpak "runtime" which has a set of the base dependencies and only a few libraries in the app's flatpak. The idea then is to have policies which allow a "proper" mix of runtimes to allow for needed flexibility, but not so many that everything is getting duplicated over and over again. And I think finding that balance is much easier said than done. Especially when we are talking about these flatpaks being used on everything from SLES to ALP to Tumbleweed. -- Jason Craig