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