From 4f65cecd453709aae763e08ccc985ec8db432507 Mon Sep 17 00:00:00 2001 From: Lin Jian Date: Tue, 4 Oct 2022 02:53:55 +0800 Subject: [PATCH] emacs: remove warning of xargs when doing AOT native-comp Before, there is a warning: xargs: warning: options --max-args and --replace/-I/-i are mutually exclusive, ignoring previous --max-args value According to the manual[1], swap -I and -n can remove this warning. [1]: https://www.gnu.org/software/findutils/manual/html_node/find_html/Conflicting-xargs-options.html --- pkgs/build-support/emacs/generic.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/emacs/generic.nix b/pkgs/build-support/emacs/generic.nix index 1b81dbcf9ed7..e3d1505dde87 100644 --- a/pkgs/build-support/emacs/generic.nix +++ b/pkgs/build-support/emacs/generic.nix @@ -85,7 +85,7 @@ stdenv.mkDerivation ({ addEmacsVars "$out" find $out/share/emacs -type f -name '*.el' -print0 \ - | xargs -0 -n 1 -I {} -P $NIX_BUILD_CORES sh -c \ + | xargs -0 -I {} -n 1 -P $NIX_BUILD_CORES sh -c \ "emacs --batch --eval '(setq large-file-warning-threshold nil)' -f batch-native-compile {} || true" ''; }