python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / package-management / checkinstall / empty-dirs.patch
blob9a3e29c84c122b3edd670e62d63f069f947e765a
1 diff -rc checkinstall-orig/checkinstall checkinstall/checkinstall
2 *** checkinstall-orig/checkinstall 2009-03-12 13:40:24.000000000 +0100
3 --- checkinstall/checkinstall 2009-03-27 14:51:55.000000000 +0100
4 ***************
5 *** 1635,1644 ****
7 # Find regular files first
8 [ $DEBUG -gt 0 ] && echo "debug: BASE_TMP_DIR: $BASE_TMP_DIR"
9 ! cat /${TMP_DIR}/newfiles.tmp | egrep -v '^[-0-9][0-9]*[[:space:]]*(unlink|access)' | cut -f 3 | egrep -v "^(/dev|$BASE_TMP_DIR|/tmp)" | sort -u > /${TMP_DIR}/newfiles
11 # symlinks are next
12 ! cat /${TMP_DIR}/newfiles.tmp | egrep -v '^[-0-9][0-9]*[[:space:]]*(unlink|access)' | cut -f 4 | egrep -v "^(/dev|$BASE_TMP_DIR|/tmp)" | grep -v "#success" | sort -u >> /${TMP_DIR}/newfiles
13 # Create another list of modified files that exclude all files the
14 # install script wanted to create but did not, e.g because they already
15 # existed.
16 --- 1635,1648 ----
18 # Find regular files first
19 [ $DEBUG -gt 0 ] && echo "debug: BASE_TMP_DIR: $BASE_TMP_DIR"
20 ! cat /${TMP_DIR}/newfiles.tmp | egrep -v '^[-0-9][0-9]*[[:space:]]*(unlink|access|mkdir)' | cut -f 3 | egrep -v "^(/dev|$BASE_TMP_DIR|/tmp)" | sort -u > /${TMP_DIR}/newfiles
22 # symlinks are next
23 ! cat /${TMP_DIR}/newfiles.tmp | egrep -v '^[-0-9][0-9]*[[:space:]]*(unlink|access|mkdir)' | cut -f 4 | egrep -v "^(/dev|$BASE_TMP_DIR|/tmp)" | grep -v "#success" | sort -u >> /${TMP_DIR}/newfiles
25 ! # And finally newly created directories.
26 ! cat /${TMP_DIR}/newfiles.tmp | egrep '^0[[:space:]]+mkdir[[:space:]]+' | cut -f 3 | egrep -v "^(/dev|$BASE_TMP_DIR|/tmp)" | sort -u >> /${TMP_DIR}/newfiles
28 # Create another list of modified files that exclude all files the
29 # install script wanted to create but did not, e.g because they already
30 # existed.
31 ***************
32 *** 1738,1746 ****
33 cd /
35 ( cat /${TMP_DIR}/newfiles | while read i; do
36 ! if [ ! -d "${TRANSLROOT}${i}" -o -L "${TRANSLROOT}${i}" ]; then
37 ! echo ".${i}"
38 ! fi
39 done ) > /${TMP_DIR}/newfiles-tar
41 # Here it gets tricky: we need to copy all new files to our build dir,
42 --- 1742,1748 ----
43 cd /
45 ( cat /${TMP_DIR}/newfiles | while read i; do
46 ! echo ".${i}"
47 done ) > /${TMP_DIR}/newfiles-tar
49 # Here it gets tricky: we need to copy all new files to our build dir,