-
-
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
python3Packages.watchdog: fix darwin-x86_64 build #171388
Conversation
@ofborg build python3Packages.watchdog |
5e4f5fa
to
c9851a8
Compare
@ofborg build python3Packages.watchdog |
1 similar comment
@ofborg build python3Packages.watchdog |
9032a5a
to
2e37657
Compare
@ofborg build python3Packages.watchdog |
is there an upstream PR? not much of this looks to be related to nix specifically |
ZHF: #172160. Also, as Jon said, please do consider making this an upstream PR and just fetchpatch'ing it. Then hopefully there's no need to update this patch every time the package is updated. Upstream looks quite active so I bet they're willing to take a patch and maybe test it on a Darwin machine. |
On macos 10.15:
|
Result of 6 packages marked as broken and skipped:
38 packages failed to build:
|
Please edit your comments in the future and append a space to trigger ofborg again. |
@@ -20,6 +20,10 @@ buildPythonPackage rec { | |||
sha256 = "sha256-P9R4FTU76cRO68lMwo/iaysMW9iJ2vxKWny9+SQUNIA="; | |||
}; | |||
|
|||
patches = lib.optionals (stdenv.isDarwin && !stdenv.isAarch64) [ |
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 make this unconditional?
Do we want to get this in for 22.05? It's possible my result is spurious and I don't think this breaks anything AFAIK. |
I won't have time to work on this for a week or two, and it sounds like there's some additional legwork to do, which in principle I agree should be done. @jonringer I believe this patch is related to nix. Nix doesn't support the late(r|st) macos sdk which this package requires to compile on macos machines with the later sdk. The package works fine on older sdks without the patch. |
May be unrelated, but I was unable to get the tests to pass on this package with darwin-aarch64 unless I explicitly disabled the fsevents test (among other things). |
Description of changes
This change allows the
watchdog
package to build on x86_64-darwin.It turns out that the use of the fsevents API isn't a hard requirement and
watchdog will fallback to a kqueue-based implementation of the equivalent
functionality on platforms that don't support fsevents or always, with the
included patch.
I don't have access to a macOS machine to test the functionality, so any help
there would be much appreciated.
Fixes: #113777
Closes: #156597
Things done
sandbox = true
set 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.sh
to update generated release notes