From 5c105d9f3fd086aff195d3849dcf847d6b0bd927 Mon Sep 17 00:00:00 2001 From: blogic Date: Fri, 5 Oct 2012 10:12:53 +0000 Subject: branch Attitude Adjustment git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33625 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- tools/ipkg-utils/patches/160-find.patch | 39 +++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 tools/ipkg-utils/patches/160-find.patch (limited to 'tools/ipkg-utils/patches/160-find.patch') diff --git a/tools/ipkg-utils/patches/160-find.patch b/tools/ipkg-utils/patches/160-find.patch new file mode 100644 index 000000000..45ef3c651 --- /dev/null +++ b/tools/ipkg-utils/patches/160-find.patch @@ -0,0 +1,39 @@ +--- a/ipkg-build ++++ b/ipkg-build +@@ -10,7 +10,8 @@ + set -e + + version=1.0 +- ++FIND="$(which find)" ++FIND="${FIND:-$(which gfind)}" + TAR="${TAR:-$(which tar)}" + + ipkg_extract_value() { +@@ -49,7 +50,7 @@ pkg_appears_sane() { + + PKG_ERROR=0 + +- cvs_dirs=`find . -name 'CVS'` ++ cvs_dirs=`$FIND . -name 'CVS'` + if [ -n "$cvs_dirs" ]; then + if [ "$noclean" = "1" ]; then + echo "*** Warning: The following CVS directories where found. +@@ -62,7 +63,7 @@ You probably want to remove them: " >&2 + fi + fi + +- tilde_files=`find . -name '*~'` ++ tilde_files=`$FIND . -name '*~'` + if [ -n "$tilde_files" ]; then + if [ "$noclean" = "1" ]; then + echo "*** Warning: The following files have names ending in '~'. +@@ -75,7 +76,7 @@ You probably want to remove them: " >&2 + fi + fi + +- large_uid_files=`find . -uid +99 || true` ++ large_uid_files=`$FIND . -uid +99 || true` + + if [ "$ogargs" = "" ] && [ -n "$large_uid_files" ]; then + echo "*** Warning: The following files have a UID greater than 99. -- cgit v1.2.3