-
-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include /app/lib/<arch>-linux-gnu directory in LD_LIBRARY_PATH #452
Comments
I would like to work on this, but I would also like to know first what do you think. cc @alexlarsson |
I don't think hardcoding things like that really helps. In particular multilib things, because multilib is not really very useful for flatpak because each arch can just use /lib. That said, per-arch finish-args seem very useful. |
OK. What do you think about the following syntax?
BTW, my other use case for per-arch finish-args is to use different binaries/packages in --extra-data for every architecture. |
finish-options can contain per-architecture finish-args with the following syntax: "finish-options": { "arch": { "x86_64": [...], "i386": [...] } } The main use case is to be able to define different extra data for each architecture, i.e. to fetch different propertiary binaries for different archs. Fixes flatpak#452
finish-options can contain per-architecture finish-args with the following syntax: "finish-options": { "arch": { "x86_64": [...], "i386": [...] } } The main use case is to be able to define different extra data for each architecture, i.e. to fetch different propertiary binaries for different archs. Fixes flatpak#452
finish-options can contain per-architecture finish-args with the following syntax: "finish-options": { "arch": { "x86_64": [...], "i386": [...] } } The main use case is to be able to define different extra data for each architecture, i.e. to fetch different propertiary binaries for different archs. Fixes flatpak#452
Flatpak supports extending
LD_LIBRARY_PATH
variable with--env
argument - this is a good solution for adding directories like/app/lib/GL
.However, in case of directories like
/app/lib/x86_64-linux-gnu
or/app/lib/i386-linux-gnu
, the problem in extending environment infinish-args
is that we lose architecture agnosticism.finish-args
cannot be set for a specific architecture.I have two potential ideas of solving thit issue:
/app/lib/<arch>-linux-gnu
dir by default toLD_LIBRARY_PATH
hereflatpak/common/flatpak-run.c
Line 2678 in f6d1a06
finish-args
per architectureI prefer the first solution, because the case of
<arch>-linux-gnu
directories is so common, that a lot of flatpaks would end with hacking around adding this directory.The text was updated successfully, but these errors were encountered: