-
-
Notifications
You must be signed in to change notification settings - Fork 14.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
rpm: declare darwin as badPlatform #268572
rpm: declare darwin as badPlatform #268572
Conversation
94586e0
to
767a95e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good from a Darwin perspective.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we explain why this is even needed? AFAIK it's acting transitively
$ nix eval -f. --argstr system x86_64-darwin apkg.outPath
error: Package ‘rpm-4.18.1’ in pkgs/tools/package-management/rpm/default.nix:72 is not available on the requested hostPlatform:
@vcunat Maybe I understood things wrong. I'm trying to fix these evaluation errors thrown by hydra:
|
Right, the amount of eval warnings is a long-standing problem. I don't know off the top of my head what's the best approach here. Maybe this PR really is the best one. |
This is incorrect, the proper way seems to be setting |
Thanks @Artturin, this looks like the thing I want to do. Do I also need to add darwin back under |
767a95e
to
7846bf6
Compare
There should be a comment about when darwin can be readded |
7846bf6
to
7e2206c
Compare
Successfully created backport PR for |
Let's see if it works but we should not do this for each individual package which isn't supported on some platform. Instead, the root issue should be fixed. |
@Artturin So what is/was the root cause in your opinion? And how could a more general solution look like? |
Seems like the fix didn't work, the evaluation errors are still there: https://hydra.nixos.org/eval/1802300#tabs-errors |
It's been a while and I'm vaguely sorry to necromance this PR, but I am just doing some digging into what it would take to get microdnf to compile again on darwin and this is probably one of the best places for people to find this information :) Upstream RPM can be built on darwin again starting with 4.19.1.1: So if this gets upgraded, this might be build-able again. Maybe I can convince some of my colleagues to take a look. |
It’s possible, but it may also still require a newer SDK than is available currently in nixpkgs. I’m going to be working on a refactor and update for 24.11, but that’s not ready (or started) yet. |
Description of changes
Support by rpm for darwin got removed in #196350.
This will be fixed once apple_sdk > 13.0 is available and we can check for that version.
Not sure if I got every package that (transitively) depends on rpm. Is there any good way to check this?
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)