Repository navigation
rsync: fix pkgsStatic itemize test failure - #537498
Conversation
22d2d8d to
b6f68f1
Compare
b6f68f1 to
69f1f4a
Compare
Review dismissed automatically
nixpkgs-reviewWorkflow run (x86_64-linux via lucasew/nixcfg): https://github.com/lucasew/nixcfg/actions/runs/28536382271 Status: failure (infra, not package) No Locally on this change: |
r-burns
left a comment
There was a problem hiding this comment.
Looks great, confirmed this fixes static builds, and doesn't break other cross targets, e.g. pkgsCross.aarch64-multiplatform.
| preConfigure = | ||
| lib.optionalString (stdenv.hostPlatform.isLinux && stdenv.hostPlatform != stdenv.buildPlatform) | ||
| '' | ||
| export rsync_cv_can_hardlink_symlink=yes |
There was a problem hiding this comment.
Can you instead provide this as a conditional configureFlag? That'll avoid rebuilds for unaffected platforms. For example:
nixpkgs/pkgs/by-name/ap/apr/package.nix
Lines 38 to 42 in 9778ed5
There was a problem hiding this comment.
Did that. I think I can go back to master now. Good catch!
69f1f4a to
6b0f86f
Compare
When cross-compiling (e.g. pkgsStatic), configure cannot run the link()-hardlinks-symlinks probe and defaults to no. On Linux that leaves hardlink_symlinks false while --copy-dest/--link-dest still itemize identical symlinks with blank attribute flags, so testsuite/itemize.test fails. Set rsync_cv_can_hardlink_symlink=yes for Linux cross builds. Resolves: NixOS#537437 Assisted-by: Grok (xAI)
6b0f86f to
c1f215a
Compare
nixpkgs-reviewWorkflow run (x86_64-linux via lucasew/nixcfg): https://github.com/lucasew/nixcfg/actions/runs/28676777025 Args: Status: failure (workflow / eval — not a demonstrated package regress) Re-dispatched after removing Magic Nix Cache (prior run: https://github.com/lucasew/nixcfg/actions/runs/28675918254). Same symptom without the cache action. What the runner did
Uploaded Actions report: Local (x86_64-linux)
|
|
@ofborg build pkgsStatic.rsync |
Resolves #537437
pkgsStatic.rsyncfailed intestsuite/itemize.testbecause configuredefaults
rsync_cv_can_hardlink_symlinktonowhen cross-compiling(cannot run the probe). On Linux, hardlinking symlinks works, and with
matching attrs
--copy-dest/--link-deststill itemize identicalsymlinks as
cLwith blank attribute flags. The test only expects thatoutput when
hardlink_symlinksis true (otherwise it expectscLc.t......).Set the configure cache variable for Linux cross builds so capability
detection matches the host kernel and the itemize expectations agree.
Assisted-by: Grok (xAI) — investigation, patch, and PR text; human reviews
and submits.
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.