Update `HACKING'.
[jackhill/guix/guix.git] / distro / packages / patches / findutils-absolute-paths.patch
1 Fix use of LFS-style absolute paths.
2
3 Patches from Nixpkgs by Armijn Hemel <armijn@gpl-violations.org>
4 and Wouter den Breejen <uu@denbreejen.net>.
5
6 diff -ruN findutils-4.2.20/locate/updatedb.sh findutils-4.2.20.new/locate/updatedb.sh
7 --- findutils-4.2.20/locate/updatedb.sh 2005-01-24 17:12:35.000000000 +0100
8 +++ findutils-4.2.20.new/locate/updatedb.sh 2005-08-23 14:37:10.000000000 +0200
9 @@ -141,7 +141,7 @@
10 : ${code:=${LIBEXECDIR}/@code@}
11
12
13 -PATH=/bin:/usr/bin:${BINDIR}; export PATH
14 +PATH=/bin:/usr/bin:${BINDIR}:${PATH}; export PATH
15
16 : ${PRUNEFS="nfs NFS proc afs proc smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs mfs sysfs shfs"}
17
18 diff -Naur findutils-4.2.30/xargs/xargs.c findutils-4.2.30_new/xargs/xargs.c
19 --- findutils-4.2.30/xargs/xargs.c 2007-02-27 11:21:08.000000000 +0100
20 +++ findutils-4.2.30_new/xargs/xargs.c 2007-07-17 19:02:05.000000000 +0200
21 @@ -402,7 +402,7 @@
22 int show_limits = 0; /* --show-limits */
23 int always_run_command = 1;
24 char *input_file = "-"; /* "-" is stdin */
25 - char *default_cmd = "/bin/echo";
26 + char *default_cmd = "echo";
27 int (*read_args) PARAMS ((void)) = read_line;
28 void (*act_on_init_result)(void) = noop;
29 int env_too_big = 0;