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