-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
slang: respect TERMINFO_DIRS and ignore FHS paths #50976
Conversation
Success on aarch64-linux (full log) Attempted: slang Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: slang Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: slang Partial log (click to expand)
|
5416342
to
688d769
Compare
Rebased on staging due to linux mass-rebuild. |
Success on x86_64-linux (full log) Attempted: slang Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: slang Partial log (click to expand)
|
Timed out, unknown build status on x86_64-darwin (full log) Attempted: slang Partial log (click to expand)
|
I wonder if anyone needs those FHS paths? On NixOS they don't exist, but on some Nix systems they could be useful. I suppose we can just have everyone that needs it set them in TERMINFO_DIRS. |
It's possible that someone might need them. If they do, I suggest adding them to TERMINFO_DIRS in their env, which gets them searched. Not removing them from the source makes it impossible to achieve the purer behaviour, while removing them doesn't completely prevent host system terminfo from being detected, so I'm not in favour of adding them back. |
688d769
to
1e5c61b
Compare
Documented this rationale in the commit message. |
Success on x86_64-linux (full log) Attempted: slang Partial log (click to expand)
|
Failure on x86_64-darwin (full log) Attempted: slang Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: slang Partial log (click to expand)
|
Darwin failure seems to be unrelated to my changes, looks like resource exhaustion or something on the build machine. |
Can you try to get the |
I can, but don't have the time currently. I'm fairly sure upstream won't accept it as is since it's quite a break from their coding standards (whatever they may be) and likely disregards some compatibility issues which we don't care about because we don't run on obscure unix platforms. |
well |
I have sent it to the author. |
I meant compatibility as in portability of the C code, not appropriateness of the behaviour. Thanks though! |
I got a response today.
|
Oh nice, thanks! |
Maybe one day a version with the fix will be released 🤣 |
We could also just pull their patch in this case. |
Motivation for this change
Makes whiptail, nmtui and others work correctly in nonstandard terminals like alacritty.
cc @tilpner who was complaining about this not working, @Fuuzetsu maintainer
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)