Revert "nixos/stub-ld: init module"#287246
Conversation
|
Reverting seems extreme. Problems appear to be rather rare, and do have solutions for those having them, even if they aren't particularly ergonomic. If nothing else, this is always an option: { lib, modulesPath, ... }:
{
disabledModules = [ (modulesPath + "/config/ldso.nix") ];
options.environment.ldso = lib.mkOption { type = lib.types.unspecified; };
options.environment.ldso32 = lib.mkOption { type = lib.types.unspecified; };
}Also, keep in mind that reverting would break the config of anyone who explicitly disabled it when it came out, since the option would cease to exist. Finally, this isn't even the right commit to revert. It's the |
d983bf0 to
f7dbb33
Compare
f7dbb33 to
e7c8273
Compare
|
This has to be fixed one way or another. The error is hard to debug; I don't expect most users to be able to bisect their nixpkgs to find where the problem was introduced. I wouldn't be so adamant if it were a leaf module, but this is core to the OS. The issue has been standing for two months. I pushed a partial revert to be more graceful with the change. If you have a fix, then I won't push for that revert. |
This is rather difficult to fix. Adding an option to more easily disable the relevant functionality is easy enough, but it doesn't actually solve this part. I'm open to suggestions about how to do so. I currently still don't actually know much about the circumstances that cause issues here except that (probably) using nixos with a musl-based stdenv (on x86_64) causes an issue, though that doesn't give the same error message you quoted. "I got an error message, so let's nuke the commit it bisects to" isn't exactly a constructive approach. Can we focus on what's actually going wrong, what circumstances it can happen in, and how best to fix it for everyone?
I'd like to point out here that no actual issue was ever filed (and still hasn't been), no reproducer, information about the circumstances of the error, or useful part of the trace was given, and you never followed up on the request for more information, or showed any further interest in solving the problem. Nor did anyone else report a similar issue afaik. It's not unreasonable that nothing happened until someone else came along with more useful information a week ago. And I still don't have enough information to feel certain if your issue is actually the same as theirs. It's clear the misbehavior is confined to an extremely narrow portion of the userbase. Yoyo-ing functionality for everyone for that still seems unwarranted to me. Let's just get it diagnosed and fixed as quick as we can. The basic question is: What should we change |
Remove the `environment.ldso32` option until it can be better thought
out.
The option creates a new instance of nixpkgs and doesn't work on all
architectures.
Fixes:
error: i686 Linux package set can only be used with the x86 family.
e7c8273 to
a98e860
Compare
|
Same, I'd rather put the energy towards a fix than argue. Fundamentally, we have to avoid creating new instances of nixpkgs. I haven't benchmarked it, but they tend to be pretty expensive eval-wise. And both issues are related to this. Anyways, I found a better compromise in #288509. |
This reverts commit 0863f6d introduced in #269551.
Fixes:
Description of changes
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.