[WIP] fhs-userenv-bubblewrap: Support ld.so.conf/cache #102178
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation for this change
This is an effort to fix compatibility with the new steam runtime. See also #100655
There are currently 2 parts to this:
bin
-->usr/bin
, ...). This is to allow things like bind-mounting another/usr
inside to work like they would on another distribution with a "usr-merge" implemented and also overwrite the things in/bin
./etc/ld.so.conf
and/etc/ld.so.cache
to function with our glibc. This should make our current setting ofLD_LIBRARY_PATH
obsolete as well and improves compatibility e.g. with games that incorrectly overwrite that instead of appending to it.There is still a bit more testing needed until the linked issue is fully resolved. However as far as I can currently tell these changes are all that is necessarily NixOS specific.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)