forked from mirrors/nixpkgs
Fixed a /bin/echo reference
svn path=/nixpkgs/trunk/; revision=8995
This commit is contained in:
parent
4b33c46279
commit
eb1bfefa91
pkgs/tools/misc/findutils
12
pkgs/tools/misc/findutils/change_echo_path.patch
Normal file
12
pkgs/tools/misc/findutils/change_echo_path.patch
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
diff -Naur findutils-4.2.30/xargs/xargs.c findutils-4.2.30_new/xargs/xargs.c
|
||||||
|
--- findutils-4.2.30/xargs/xargs.c 2007-02-27 11:21:08.000000000 +0100
|
||||||
|
+++ findutils-4.2.30_new/xargs/xargs.c 2007-07-17 19:02:05.000000000 +0200
|
||||||
|
@@ -402,7 +402,7 @@
|
||||||
|
int show_limits = 0; /* --show-limits */
|
||||||
|
int always_run_command = 1;
|
||||||
|
char *input_file = "-"; /* "-" is stdin */
|
||||||
|
- char *default_cmd = "/bin/echo";
|
||||||
|
+ char *default_cmd = "echo";
|
||||||
|
int (*read_args) PARAMS ((void)) = read_line;
|
||||||
|
void (*act_on_init_result)(void) = noop;
|
||||||
|
int env_too_big = 0;
|
|
@ -7,7 +7,8 @@ stdenv.mkDerivation {
|
||||||
sha256 = "1x1s0h1gf4hxh6xi6vq336sz8zsh4hvnsslc7607z41l82xrqjrl";
|
sha256 = "1x1s0h1gf4hxh6xi6vq336sz8zsh4hvnsslc7607z41l82xrqjrl";
|
||||||
};
|
};
|
||||||
buildInputs = [coreutils];
|
buildInputs = [coreutils];
|
||||||
patches = [./findutils-path.patch]
|
patches = [ ./findutils-path.patch ./change_echo_path.patch ]
|
||||||
|
|
||||||
# Note: the dietlibc patch is just to get findutils to compile.
|
# Note: the dietlibc patch is just to get findutils to compile.
|
||||||
# The locate command probably won't work though.
|
# The locate command probably won't work though.
|
||||||
++ stdenv.lib.optional (stdenv ? isDietLibC) ./dietlibc-hack.patch;
|
++ stdenv.lib.optional (stdenv ? isDietLibC) ./dietlibc-hack.patch;
|
||||||
|
|
Loading…
Reference in a new issue