0
|
1 |
Someday GNU find will be available for the SFW build environment (maybe
|
|
2 |
LSARC/2008/531). When that happens this patch will no longer be required.
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
Index: quilt/fold.in
|
|
8 |
===================================================================
|
|
9 |
--- quilt/fold.in.orig 2008-11-05 14:11:24.246878000 -0600
|
|
10 |
+++ quilt/fold.in 2008-11-05 14:18:18.240681000 -0600
|
|
11 |
@@ -103,7 +103,7 @@ if [ -z "$failed" ]
|
|
12 |
then
|
|
13 |
# Copy additional files from workdir to the backup directory
|
|
14 |
# For this patch
|
|
15 |
- for file in $(find $workdir -type f -a ! -path "$workdir/.timestamp")
|
|
16 |
+ for file in $(find $workdir -type f | @GREP@ -v -E "^$workdir/.timestamp$")
|
|
17 |
do
|
|
18 |
file="${file:${#workdir}+1}"
|
|
19 |
backup_file="$(backup_file_name $top "$file")"
|
|
20 |
@@ -121,7 +121,7 @@ fi
|
|
21 |
if [ -n "$failed" ]
|
|
22 |
then
|
|
23 |
# Restore all files to the state from before applying the patch
|
|
24 |
- for file in $(find $workdir -type f -a ! -path "$workdir/.timestamp")
|
|
25 |
+ for file in $(find $workdir -type f | @GREP@ -v -E "^$workdir/.timestamp$")
|
|
26 |
do
|
|
27 |
file="${file:${#workdir}+1}"
|
|
28 |
if ! mv -f "$workdir/$file" "$file"
|
|
29 |
Index: quilt/scripts/patchfns.in
|
|
30 |
===================================================================
|
|
31 |
--- quilt/scripts/patchfns.in.orig 2008-11-05 14:11:24.251209000 -0600
|
|
32 |
+++ quilt/scripts/patchfns.in 2008-11-05 14:18:18.242696000 -0600
|
|
33 |
@@ -649,8 +649,8 @@ files_in_patch()
|
|
34 |
if [ -d "$path" ]
|
|
35 |
then
|
|
36 |
local files
|
|
37 |
- files=( $(find "$path" -type f \
|
|
38 |
- -a ! -path "$path/.timestamp") ) \
|
|
39 |
+ files=( $(find "$path" -type f | \
|
|
40 |
+ @GREP@ -v -E "^$path/.timestamp$") ) \
|
|
41 |
|| return 1
|
|
42 |
printf "%s\n" "${files[@]#$path/}"
|
|
43 |
fi
|
|
44 |
Index: quilt/grep.in
|
|
45 |
===================================================================
|
|
46 |
--- quilt/grep.in.orig 2008-11-05 14:11:24.257342000 -0600
|
|
47 |
+++ quilt/grep.in 2008-11-05 14:18:18.243720000 -0600
|
|
48 |
@@ -114,10 +114,9 @@ fi
|
|
49 |
# may pass a single filename to grep and cause it to omit the file name.
|
|
50 |
[ -z "$opt_h" ] && opt_H=-H
|
|
51 |
|
|
52 |
-find "${myargs[@]}" \( \
|
|
53 |
- -path "./$QUILT_PATCHES/*" -o \
|
|
54 |
- -path "./$QUILT_PC/*" \) -prune -o \
|
|
55 |
+find "${myargs[@]}" \
|
|
56 |
-type f -print \
|
|
57 |
+| @GREP@ -v -E "^\./$QUILT_(PATCHES|PC)/" \
|
|
58 |
| xargs grep $opt_H "${args[@]}" \
|
|
59 |
| if [ ${#myargs[@]} -eq 0 ]; then
|
|
60 |
sed -e 's,^./,,'
|
|
61 |
Index: configure.ac
|
|
62 |
===================================================================
|
|
63 |
--- configure.ac.orig 2008-11-05 14:11:24.263434000 -0600
|
|
64 |
+++ configure.ac 2008-11-05 14:18:18.244870000 -0600
|
|
65 |
@@ -296,18 +296,18 @@ fi
|
|
66 |
|
|
67 |
QUILT_COMPAT_PROG_PATH(FIND, find)
|
|
68 |
|
|
69 |
-AC_MSG_CHECKING([whether $FIND -path works])
|
|
70 |
-if $FIND . -path '*' >/dev/null 2>&1; then
|
|
71 |
- AC_MSG_RESULT(yes)
|
|
72 |
-else
|
|
73 |
- AC_MSG_RESULT(no)
|
|
74 |
- AC_MSG_ERROR([
|
|
75 |
-Sorry, you have a version of find which doesn't understand -path.
|
|
76 |
-$PACKAGE_NAME needs it. If you have access to a version of find which
|
|
77 |
-does understand -path, you can supply its path with the
|
|
78 |
-'--with-find=' option.
|
|
79 |
-])
|
|
80 |
-fi
|
|
81 |
+# AC_MSG_CHECKING([whether $FIND -path works])
|
|
82 |
+# if $FIND . -path '*' >/dev/null 2>&1; then
|
|
83 |
+# AC_MSG_RESULT(yes)
|
|
84 |
+# else
|
|
85 |
+# AC_MSG_RESULT(no)
|
|
86 |
+# AC_MSG_ERROR([
|
|
87 |
+# Sorry, you have a version of find which doesn't understand -path.
|
|
88 |
+# $PACKAGE_NAME needs it. If you have access to a version of find which
|
|
89 |
+# does understand -path, you can supply its path with the
|
|
90 |
+# '--with-find=' option.
|
|
91 |
+# ])
|
|
92 |
+# fi
|
|
93 |
|
|
94 |
QUILT_COMPAT_PROG_PATH_OPT(DIFFSTAT, diffstat)
|
|
95 |
|
|
96 |
Index: Makefile.in
|
|
97 |
===================================================================
|
|
98 |
--- Makefile.in.orig 2008-11-05 14:15:59.439693000 -0600
|
|
99 |
+++ Makefile.in 2008-11-05 14:18:18.246168000 -0600
|
|
100 |
@@ -262,6 +262,7 @@ $(patsubst %.in,%,$(wildcard bin/*.in qu
|
|
101 |
-e 's:@QUILT_DIR''@:$(datadir)/$(PACKAGE):g' \
|
|
102 |
-e 's:@PERL''@:$(PERL):g' \
|
|
103 |
-e 's:@BASH''@:$(BASH):g' \
|
|
104 |
+ -e 's:@GREP''@:$(GREP):g' \
|
|
105 |
-e 's:@PATCH''@:$(PATCH):g' \
|
|
106 |
-e 's:@VERSION''@:$(VERSION):g' \
|
|
107 |
-e 's:@RELEASE''@:$(RELEASE):g' \
|
|
108 |
@@ -281,7 +282,7 @@ Makefile : Makefile.in configure
|
|
109 |
@echo "Please run ./configure"
|
|
110 |
@false
|
|
111 |
|
|
112 |
-compat_leftover := $(filter-out $(COMPAT),$(shell $(FIND) compat -maxdepth 1 -type f -perm +111))
|
|
113 |
+compat_leftover := $(filter-out $(COMPAT),$(shell $(FIND) compat -type f -perm +rwx))
|
|
114 |
|
|
115 |
.PHONY :: compat
|
|
116 |
compat :: $(COMPAT)
|