e0bc27
From dc92679e2c363f8c0d659fa428c138684455a6bd Mon Sep 17 00:00:00 2001
e0bc27
From: Kamil Dudka <kdudka@redhat.com>
e0bc27
Date: Wed, 11 May 2011 16:46:13 +0200
e0bc27
Subject: [PATCH 1/4] findutils-4.4.0-no-locate.patch
e0bc27
e0bc27
---
e0bc27
 Makefile.am   |    2 +-
e0bc27
 configure.ac  |    2 --
e0bc27
 doc/find.texi |   24 ++++++++----------------
e0bc27
 3 files changed, 9 insertions(+), 19 deletions(-)
e0bc27
e0bc27
diff --git a/Makefile.am b/Makefile.am
e0bc27
index c7f8f39..0dacb93 100644
e0bc27
--- a/Makefile.am
e0bc27
+++ b/Makefile.am
e0bc27
@@ -9,7 +9,7 @@ DISTCLEANFILES = tool-versions.txt
e0bc27
 
e0bc27
 
e0bc27
 # "tests" is the gnulib unit test dir.
e0bc27
-SUBDIRS = gl tests build-aux lib find xargs locate doc po m4
e0bc27
+SUBDIRS = gl tests build-aux lib find xargs doc po m4
e0bc27
 
e0bc27
 ACLOCAL_AMFLAGS = -I gl/m4 -I m4
e0bc27
 
e0bc27
diff --git a/configure.ac b/configure.ac
e0bc27
index f31dd37..431f0ce 100644
e0bc27
--- a/configure.ac
e0bc27
+++ b/configure.ac
e0bc27
@@ -244,8 +244,6 @@ find/testsuite/Makefile
e0bc27
 gl/Makefile
e0bc27
 gl/lib/Makefile
e0bc27
 lib/Makefile
e0bc27
-locate/Makefile
e0bc27
-locate/testsuite/Makefile
e0bc27
 m4/Makefile
e0bc27
 po/Makefile.in
e0bc27
 po/Makefile
e0bc27
diff --git a/doc/find.texi b/doc/find.texi
e0bc27
index 1f278de..c584298 100644
e0bc27
--- a/doc/find.texi
e0bc27
+++ b/doc/find.texi
e0bc27
@@ -7,7 +7,6 @@
e0bc27
 @c %**end of header
e0bc27
 
e0bc27
 @include version.texi
e0bc27
-@include ../locate/dblocation.texi
e0bc27
 
e0bc27
 @iftex
e0bc27
 @finalout
e0bc27
@@ -571,8 +570,7 @@ the databases are updated, and the directories for which they contain
e0bc27
 entries.
e0bc27
 
e0bc27
 Here is how to select which file name databases @code{locate}
e0bc27
-searches.  The default is system-dependent.  At the time this document
e0bc27
-was generated, the default was @file{@value{LOCATE_DB}}.
e0bc27
+searches.  The default is system-dependent.
e0bc27
 
e0bc27
 @table @code
e0bc27
 @item --database=@var{path}
e0bc27
@@ -2840,13 +2838,9 @@ thrashing the network.
e0bc27
 directories are indexed by each database file.
e0bc27
 
e0bc27
 The default location for the locate database depends on how findutils
e0bc27
-is built, but the findutils installation accompanying this manual uses
e0bc27
-the default location @file{@value{LOCATE_DB}}.
e0bc27
-
e0bc27
-If no database exists at @file{@value{LOCATE_DB}} but the user did not
e0bc27
-specify where to look (by using @samp{-d} or setting
e0bc27
-@code{LOCATE_PATH}), then @code{locate} will also check for a
e0bc27
-``secure'' database in @file{/var/lib/slocate/slocate.db}.
e0bc27
+is built.  If user did not specify where to look (by using @samp{-d}
e0bc27
+or setting @code{LOCATE_PATH}), then @code{locate} will also check for
e0bc27
+a ``secure'' database in @file{/var/lib/slocate/slocate.db}.
e0bc27
 
e0bc27
 @node Database Formats
e0bc27
 @section Database Formats
e0bc27
@@ -3389,8 +3383,7 @@ present.
e0bc27
 
e0bc27
 @item --database=@var{path}
e0bc27
 @itemx -d @var{path}
e0bc27
-Instead of searching the default @code{locate} database
e0bc27
-@file{@value{LOCATE_DB}}, @code{locate} searches the file
e0bc27
+@code{locate} searches the file
e0bc27
 name databases in @var{path}, which is a colon-separated list of
e0bc27
 database file names.  You can also use the environment variable
e0bc27
 @code{LOCATE_PATH} to set the list of database files to search.  The
e0bc27
@@ -3575,8 +3568,7 @@ The environment variable @code{PRUNEFS} also sets this value.  Default
e0bc27
 is @file{nfs NFS proc}.
e0bc27
 
e0bc27
 @item --output=@var{dbfile}
e0bc27
-The database file to build.  The default is system-dependent, but
e0bc27
-when this document was formatted it was @file{@value{LOCATE_DB}}.
e0bc27
+The database file to build.
e0bc27
 
e0bc27
 @item --localuser=@var{user}
e0bc27
 The user to search the non-network directories as, using @code{su}.
e0bc27
@@ -5583,7 +5575,7 @@ why @code{xargs} is confused by your operating system).
e0bc27
 @section Error Messages From @code{locate}
e0bc27
 
e0bc27
 @table @samp
e0bc27
-@item warning: database @file{@value{LOCATE_DB}} is more than 8 days old
e0bc27
+@item warning: database @file{LOCATE_DB} is more than 8 days old
e0bc27
 The @code{locate} program relies on a database which is periodically
e0bc27
 built by the @code{updatedb} program.  That hasn't happened in a long
e0bc27
 time.  To fix this problem, run @code{updatedb} manually.  This can
e0bc27
@@ -5591,7 +5583,7 @@ often happen on systems that are generally not left on, so the
e0bc27
 periodic ``cron'' task which normally does this doesn't get a chance
e0bc27
 to run.
e0bc27
 
e0bc27
-@item locate database @file{@value{LOCATE_DB}} is corrupt or invalid
e0bc27
+@item locate database @file{LOCATE_DB} is corrupt or invalid
e0bc27
 This should not happen.  Re-run @code{updatedb}.  If that works, but
e0bc27
 @code{locate} still produces this error, run @code{locate --version}
e0bc27
 and @code{updatedb --version}.  These should produce the same output.
e0bc27
-- 
e0bc27
1.7.4.4
e0bc27