nodePackages: fix builds on x86_64-darwin#193533
Conversation
|
@ofborg build bitwarden-cli epgstation joplin mastodon-bot theLoungePlugins.plugins.giphy |
a26f0aa to
4af48fa
Compare
Follow-up to NixOS#193337 to fix several x86_64-darwin build failures due to missing xcrun/xcodebuild
4af48fa to
2a61392
Compare
|
@ofborg build bitwarden-cli epgstation joplin mastodon-bot theLoungePlugins.plugins.giphy |
|
Result of 1 package failed to build:
4 packages built:
|
|
FYI, we have a patch for Node 14 to disable the use of xcbuild (no clue why it wasn't applied to any future versions). As part of my work on buildNpmPackage, I was going to port it to newer versions, which would (hopefully) mean that it's not required for these packages. If you'd like to do it instead, let me know -- no need to duplicate work :) |
@veprbl, do you have logs for that epgstation failure? It works in OfBorg
Ah, that would explain why it suddenly became required then! I was wondering but didn't really dive into it because I'm not too familiar with the Node.js ecosystem and just kinda wanted node2nix/nodePackages working again. I'll see if I can forward-port that patch real quick and test whether it fixes these builds as an alternative to adding (Also the buildNpmPackage stuff looks lovely and I can't wait for it to be available) |
|
Result of 5 packages built:
|
|
The failure was due to a known nix bug with sandboxing. |
Just for posterity, logs/what bug? (I'd build myself but I can't at the moment and figure you have them on hand :) |
|
Could either of you run That branch is effectively @winterqt's suggestion above, but I don't have a Mac to test it on |
This one NixOS/nix#2311 |
|
@winterqt, I tested out my branch in the macOS runner in GitHub Actions and it does look like just forward-porting that patch will work to remove the need for xcbuild in these packages It also looks like the Also, I'm assuming a PR to patch Node.js to avoid the need for xcbuild would have to go to staging, since touching Edit: I also did not see any reason that patch was dropped for the v16 update in #120008 |
It looks like the patches you talk about are ancient (introduced in 822abc4), so that doesn't surprise me. We can definitely drop them in favor of version-specific patches, IMO.
The high amount of rebuilds was caused by your nodePackages change, I presume. I think that's a candidate for staging then, yes. (@vcunat can confirm, though.)
Yeah, I assume it was just forgotten about. 😔 |
Yes, sounds like |
|
@lilyinstarlight Your nodePackages PR added, at most, 500 packages to this rebuild count -- any clue what the other 500+ packages that would be affected by the Node change would be? I'd really only think it would be nodePackages at the most (at least now, since it's not using Node 14), though we also have assorted web apps and such. |
|
OfBorg lists all rebuilt packages if you click on "Details" on the "ofborg-eval" line. |
Somehow I forgot this... thanks. |
|
I've opened #193759 targeting staging with the change to patch nodejs as before and reverted some of the changes from this PR that added |
Description of changes
Follow-up to #193337 to fix several x86_64-darwin build failures due to missing
xcrun/xcodebuild(see https://hydra.nixos.org/eval/1782541#tabs-now-fail)I'm waiting on OfBorg to build these because I do not personally have access to any darwin systems. It probably also fixes aarch64-darwin errors, but those are additionally failing because the nodejs build had a transient failure (and the failure has been since cached - see #193331)
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)nixos/doc/manual/md-to-db.shto update generated release notes