-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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: fix build on Darwin #346967
rpm: fix build on Darwin #346967
Conversation
Finally, macOS Nix users can have a decent package manager. |
8e3843a
to
c612018
Compare
183877a
to
1fd30e4
Compare
c612018
to
dfa8932
Compare
d95fa89
to
565daea
Compare
a1adff0
to
e3f2829
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.
Could you try bumping to 4.20 instead, which includes these fixes? Otherwise we need to adjust the commit hashes.
# Resolves `error: expected expression` on clang | ||
# See: https://github.com/rpm-software-management/rpm/issues/2435. | ||
(fetchpatch2 { | ||
url = "https://github.com/rpm-software-management/rpm/commit/3b7cc5b5362fc22cb6f96180741e2701e703844d.diff?full_index=1"; | ||
hash = "sha256-pBKYQK97RkK9bigroNVgeDrR37poFSUBdEpB/RjwK5A="; | ||
}) |
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.
This is included in 4.19 and 4.20; we should probably bump the version instead. If not, we should at least point to b960c0b43a080287a7c13533eeb2d9f288db1414
, which is the version of the commit that was landed and won’t get GC’d.
(fetchpatch2 { | ||
url = "https://github.com/rpm-software-management/rpm/commit/f07875392a09228b1a25c1763a50bbbd0f6798c2.diff?full_index=1"; | ||
hash = "sha256-DLpzMApRCgI9zqheglFtqL8E1vq9X/aQa0HMnIAQgk8="; | ||
}) | ||
(fetchpatch2 { | ||
url = "https://github.com/rpm-software-management/rpm/commit/b2e67642fd8cb64d8cb1cca9e759396c1c10807d.diff?full_index=1"; | ||
hash = "sha256-q3fIBfiUJVmw6Vi2/Bo/zX6/cqTM7aFnskKfMVK3DlU="; | ||
}) |
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.
This PR was also rebased for merge and is in 4.20.
0f3443f
to
945c5d8
Compare
# Support for darwin was removed in https://github.com/NixOS/nixpkgs/pull/196350. | ||
# This can be re-enables for apple_sdk.version >= 13.0. | ||
badPlatforms = platforms.darwin; | ||
platforms = platforms.linux ++ platforms.darwin; |
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.
BTW, I’m guessing this can be platforms.unix
.
RPM 4.20 is a non-trivial effort to package. That’s way beyond what I want to do to update it for Darwin. If this isn’t mergable, I’d rather leave Darwin marked broken. |
I think it’s fine to merge this and let someone else handle RPM 4.20 as long as we can point the fetches to the copies of the commits that were actually merged rather than the potentially ephemeral ones from the PRs. |
945c5d8
to
65e7ac1
Compare
I fixed the commit to be the one from the repo. |
The other PR needs its commits changing too (it seems like they do rebase merges). |
RPM needs a 13.x SDK or newer.
65e7ac1
to
7187419
Compare
No changes except I retargeted to master due to the low number of rebuilds. I’ll merge once all checks finish (except for the slow, aarch64-darwin one). |
@emilazy Is this good to merge? It’s blocked currently. |
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.
Forgot I had a blocking review on this, sorry. Seems fine, hopefully someone else can figure out the new build system another time.
RPM needs a 13.x SDK or newer.
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/
)Add a 👍 reaction to pull requests you find important.