Skip to content

fcron: fix Darwin build - #574126

Merged
Aleksanaa merged 1 commit into
NixOS:masterfrom
Rhys-T:fix-fcron-darwin
Nov 16, 2026
Merged

Aleksanaa merged 1 commit into
NixOS:masterfrom
Rhys-T:fix-fcron-darwin

Conversation

@Rhys-T

@Rhys-T Rhys-T commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.
  • Follows the automation/AI policy.
  • Built on platform:
    • x86_64-linux
      • Note: Under darwin.linux-builder VM.
    • aarch64-linux
    • aarch64-darwin
      • Note: I'm still on an Intel Mac (x86_64-darwin), and can't test this. However, I've been using the equivalent of this as an overlay on nixpkgs-26.05-darwin successfully.
  • Tested, as applicable:
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 7.no default reviewers This PR targets a package or module with no existing maintainers; roving reviewers, take pity! labels Oct 14, 2026
@ofborg ofborg Bot added the 6.topic: darwin Running or building packages on Darwin label Oct 17, 2026
@iedame

iedame commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

✅ nixpkgs-review result

Generated using nixpkgs-review-gha (44e9141)

Command: nixpkgs-review pr 574126
Commit: 54c2dbecc1c0d87c861eca9f30d98d61216693af (subsequent changes)
Merge: 151e419bb23c6284437af0b7fcc054e96060d498

Logs: https://github.com/iedame/nixpkgs-review-gha/actions/runs/39152881924/attempts/1


x86_64-linux

✅ 1 package built:
  • fcron

aarch64-linux

✅ 1 package built:
  • fcron

x86_64-darwin

✅ No rebuilds


aarch64-darwin (sandbox = relaxed)

✅ 1 package built:
  • fcron

@Gordon01 Gordon01 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. and removed 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Nov 16, 2026
@Aleksanaa
Aleksanaa added this pull request to the merge queue Nov 16, 2026
Merged via the queue into NixOS:master with commit 2e88c32 Nov 16, 2026
40 of 42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: darwin Running or building packages on Darwin 7.no default reviewers This PR targets a package or module with no existing maintainers; roving reviewers, take pity! 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants