-
-
Notifications
You must be signed in to change notification settings - Fork 14k
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
rsync: Fix enable*
options breaking build if disabled
#152354
Conversation
Rsync's configure script now complains if these on-by-default dependencies cannot be found; example: Configure found the following issues: - Failed to find openssl/md4.h and openssl/md5.h for openssl crypto lib support. - Failed to find xxhash.h for xxhash checksum support. See the INSTALL file for hints on how to install the missing libraries and/or how to generate (or fetch) man pages: https://github.com/WayneD/rsync/blob/master/INSTALL.md To disable one or more features, the relevant configure options are: --disable-openssl --disable-xxhash This commit passes the flags as required. Example to test (with `pkgsStatic`): NIX_PATH=nixpkgs=. nix-build --no-out-link --expr 'with import <nixpkgs> {}; pkgsStatic.rsync.override (old: { enableOpenSSL = false; enableXXHash = false; })'
this looks fine, not sure if we should point this to staging since it seems to rebuild all of darwin? |
Result of 478 packages marked as broken and skipped:
1723 packages failed to build:
22 packages built:
|
Please rebase |
This comment was marked as off-topic.
This comment was marked as off-topic.
@nh2 I merged to fix the conflict, but could you instead rebase? |
++ lib.optional (!enableACLs) "--disable-acl-support" | ||
++ lib.optional (!enableOpenSSL) "--disable-openssl" | ||
++ lib.optional (!enableXXHash) "--disable-xxhash" | ||
++ lib.optional (!enableZstd) "--disable-zstd" | ||
++ lib.optional (!enableLZ4) "--disable-lz4" |
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.
We should use lib.enableFeature here
# The following PR should fix the cross-compilation issue. | ||
# Test using `nix-build -A pkgsCross.aarch64-multiplatform.rsync`. | ||
# https://github.com/WayneD/rsync/commit/b7fab6f285ff0ff3816b109a8c3131b6ded0b484 | ||
++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "--enable-simd=no" |
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.
Sounds like we want to use canExecute here
|
||
# Work around issue with cross-compilation: | ||
# configure.sh: error: cannot run test program while cross compiling | ||
# Remove once 3.2.4 or more recent is released. |
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.
We are using 3.2.7 already
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.
Also please remove the merge commit from the PR. That can cause massive and painful issues when fixing merge conflicts.
Closing as stale |
Rsync's configure script now complains if these on-by-default dependencies
cannot be found; example:
This commit passes the flags as required.
Example to test (with
pkgsStatic
):Motivation for this change
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