Skip to content

rsync: fix checkPhase on sandboxed Darwin#422649

Closed
al3xtjames wants to merge 2 commits intoNixOS:stagingfrom
al3xtjames:rsync-darwin
Closed

rsync: fix checkPhase on sandboxed Darwin#422649
al3xtjames wants to merge 2 commits intoNixOS:stagingfrom
al3xtjames:rsync-darwin

Conversation

@al3xtjames
Copy link
Contributor

@al3xtjames al3xtjames commented Jul 5, 2025

The test scripts try to access directories which are inaccessible outside of the sandbox (/etc and /) which causes the tests to fail. Add a patch to make the test scripts use an accessible directory (the source root) instead.

Also add fakeroot to checkInputs enable the currently-skipped chown and device tests (as it now works on Darwin).

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • Nixpkgs 25.11 Release Notes (or backporting 25.05 Nixpkgs Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
  • NixOS 25.11 Release Notes (or backporting 25.05 NixOS Release notes)
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other contributing documentation in corresponding paths.

Add a 👍 reaction to pull requests you find important.

@ofborg ofborg bot added the 6.topic: darwin Running or building packages on Darwin label Jul 5, 2025
@nix-owners nix-owners bot requested a review from ivan July 5, 2025 08:19
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 501-1000 This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. labels Jul 5, 2025
@al3xtjames al3xtjames changed the base branch from master to staging July 7, 2025 02:54
@nixpkgs-ci nixpkgs-ci bot closed this Jul 7, 2025
@nixpkgs-ci nixpkgs-ci bot reopened this Jul 7, 2025
@nixpkgs-ci nixpkgs-ci bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Jul 9, 2025
The test scripts try to access directories which are inaccessible
outside of the sandbox (/etc and /) which causes the tests to fail [1].
Add a patch to make the test scripts use an accessible directory (the
source root) instead.

[1]: https://gist.github.com/al3xtjames/698ce795e308a18ca1fa85bd883ed661
8e8f7c7 ("rsync: unblock tests on darwin") removed fakeroot from
rsync's checkInputs on Darwin. fakeroot has since been fixed on Darwin
in d4a746a608b4 ("fakeroot: add patches for Darwin"). Re-add fakeroot to
enable the currently-skipped chown and device tests.
@al3xtjames
Copy link
Contributor Author

Addressed by #431202.

@al3xtjames al3xtjames closed this Aug 16, 2025
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 10.rebuild-darwin: 501-1000 This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 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.

2 participants