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