Repository navigation
fcron: fix Darwin build - #574126
Merged
Merged
fcron: fix Darwin build#574126
Conversation
Contributor
✅
|
Gordon01
approved these changes
Nov 16, 2026
Gordon01
left a comment
Contributor
There was a problem hiding this comment.
I've built it on aarch64-darwin mac. Binaries fcron and fcrontab work, although I haven't checked an actual functionality. I assume it works.
Patch looks decent, no upstream responce yet.
I believe it should be merged for #584347
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #563742.
macOS has an fdatasync in its standard library, but doesn't declare it. Apple Clang suppresses the resulting warning/error, but upstream Clang doesn't. This patch tests for fdatasync support, and falls back to fsync.
I submitted a PR for this upstream as yo8192/fcron#55, and am using that commit as a patch here. This fix can be removed if that gets merged.
Things done
darwin.linux-builderVM.x86_64-darwin), and can't test this. However, I've been using the equivalent of this as an overlay onnixpkgs-26.05-darwinsuccessfully../result/bin/.nixpkgs-reviewon this PR. See nixpkgs-review usage.passthru.tests.