You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ncurses is unusable in ld.so.cache (buildFHSUserEnv) #218534
0.kind: bugSomething is broken2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
When we want a FHS User Env we often want to be able to run commands without LD_LIBRARY_PATH. That requires ldconfig, like buildFHSUserEnvBubblewrap.
But ldconfig builds ld.so.cache only by looking at the declared soname in so objects.
Therefore, the tricks in the ncurses expression to save space (symlinks of postFixup) break this; therefore those ncurses libraries only work through LD_LIBRARY_PATH.
Also, the --with-termlib is required if we want libtinfo.so.5 without the symlink tricks.
Steps To Reproduce
Try to use ncurses in a buildFHSUserEnvBubblewrap without using LD_LIBRARY_PATH.
Expected behavior
The ncurses libs are found. That includes libtinfo.so.5 (requires the not provided --with-termlib in expression).
changed the title [-]ncurses5 is unusable in ld.so.cache (buildFHSUserEnv)[/-][+]ncurses is unusable in ld.so.cache (buildFHSUserEnv)[/+]on Feb 27, 2023
0.kind: bugSomething is broken2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
Activity
[-]ncurses5 is unusable in ld.so.cache (buildFHSUserEnv)[/-][+]ncurses is unusable in ld.so.cache (buildFHSUserEnv)[/+]viric commentedon May 27, 2023
Any guidance how to proceed?
I have to use a nixpkgs local patch to overcome this:
Then I call pkgs.buildFHSUserEnvBubblewrap with this:
nixos-discourse commentedon Nov 20, 2023
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/fhs-env-for-installing-xilinx/13150/22