|
|
a1c266 |
From 3e5e311d23ac0a5bd5930ddb4094f7555b886329 Mon Sep 17 00:00:00 2001
|
|
|
a1c266 |
From: Kamil Dudka <kdudka@redhat.com>
|
|
|
a1c266 |
Date: Sat, 19 Dec 2015 22:56:40 +0100
|
|
|
a1c266 |
Subject: [PATCH 1/2] Revert "Don't include dblocation.texi from original spot,
|
|
|
a1c266 |
symlink it."
|
|
|
a1c266 |
|
|
|
a1c266 |
This reverts commit f59d88e456553dfe0b5185caf75e4041285fd595.
|
|
|
a1c266 |
---
|
|
|
a1c266 |
doc/Makefile.am | 7 +------
|
|
|
a1c266 |
1 file changed, 1 insertion(+), 6 deletions(-)
|
|
|
a1c266 |
|
|
|
a1c266 |
diff --git a/doc/Makefile.am b/doc/Makefile.am
|
|
|
a1c266 |
index f6f7443..6fbf57b 100644
|
|
|
a1c266 |
--- a/doc/Makefile.am
|
|
|
a1c266 |
+++ b/doc/Makefile.am
|
|
|
a1c266 |
@@ -16,11 +16,9 @@ AM_CFLAGS = $(WARN_CFLAGS)
|
|
|
a1c266 |
|
|
|
a1c266 |
info_TEXINFOS = find.texi find-maint.texi
|
|
|
a1c266 |
find_TEXINFOS = perm.texi parse-datetime.texi regexprops.texi fdl.texi
|
|
|
a1c266 |
-BUILT_SOURCES = dblocation.texi
|
|
|
a1c266 |
-nodist_find_TEXINFOS = dblocation.texi
|
|
|
a1c266 |
find_maint_TEXINFOS = fdl.texi
|
|
|
a1c266 |
MOSTLYCLEANFILES = find.cps
|
|
|
a1c266 |
-CLEANFILES = find.txt find_mono.html findutils.texi_html_node.tar.gz dblocation.texi \
|
|
|
a1c266 |
+CLEANFILES = find.txt find_mono.html findutils.texi_html_node.tar.gz \
|
|
|
a1c266 |
find_mono.html findutils.texi_html_node.tar.gz \
|
|
|
a1c266 |
find-info.tar.gz find.texi.tar.gz \
|
|
|
a1c266 |
find.txt tmp-doc-install find_mono.html.gz
|
|
|
a1c266 |
@@ -73,9 +71,6 @@ findutils.texi_html_node.tar.gz: find.html
|
|
|
a1c266 |
tar zcf $@ find.html
|
|
|
a1c266 |
|
|
|
a1c266 |
|
|
|
a1c266 |
-dblocation.texi: ../locate/dblocation.texi
|
|
|
a1c266 |
- $(LN_S) ../locate/dblocation.texi $@
|
|
|
a1c266 |
-
|
|
|
a1c266 |
find-info.tar.gz:
|
|
|
a1c266 |
$(MKDIR_P) tmp-doc-install/info
|
|
|
a1c266 |
$(MAKE) $(AM_MAKEFLAGS) \
|
|
|
a1c266 |
--
|
|
|
a1c266 |
2.5.0
|
|
|
a1c266 |
|
|
|
a1c266 |
|
|
|
a1c266 |
From d5473caa86f689ebcadacc593f5a71781c99e829 Mon Sep 17 00:00:00 2001
|
|
|
a1c266 |
From: Kamil Dudka <kdudka@redhat.com>
|
|
|
a1c266 |
Date: Wed, 11 May 2011 16:46:13 +0200
|
|
|
a1c266 |
Subject: [PATCH 2/2] findutils-4.4.0-no-locate.patch
|
|
|
a1c266 |
|
|
|
a1c266 |
---
|
|
|
a1c266 |
Makefile.am | 2 +-
|
|
|
a1c266 |
configure.ac | 2 --
|
|
|
a1c266 |
doc/find.texi | 24 ++++++++----------------
|
|
|
a1c266 |
tests/local.mk | 2 +-
|
|
|
a1c266 |
4 files changed, 10 insertions(+), 20 deletions(-)
|
|
|
a1c266 |
|
|
|
a1c266 |
diff --git a/Makefile.am b/Makefile.am
|
|
|
a1c266 |
index af82d54..6ad453b 100644
|
|
|
a1c266 |
--- a/Makefile.am
|
|
|
a1c266 |
+++ b/Makefile.am
|
|
|
a1c266 |
@@ -35,7 +35,7 @@ DISTCLEANFILES = tool-versions.txt
|
|
|
a1c266 |
|
|
|
a1c266 |
|
|
|
a1c266 |
# "gnulib-tests" is the gnulib unit test dir.
|
|
|
a1c266 |
-SUBDIRS = gl build-aux lib find xargs locate doc po m4 gnulib-tests
|
|
|
a1c266 |
+SUBDIRS = gl build-aux lib find xargs doc po m4 gnulib-tests
|
|
|
a1c266 |
|
|
|
a1c266 |
ALL_RECURSIVE_TARGETS =
|
|
|
a1c266 |
|
|
|
a1c266 |
diff --git a/configure.ac b/configure.ac
|
|
|
a1c266 |
index ce0e768..521e665 100644
|
|
|
a1c266 |
--- a/configure.ac
|
|
|
a1c266 |
+++ b/configure.ac
|
|
|
a1c266 |
@@ -309,8 +309,6 @@ find/testsuite/Makefile
|
|
|
a1c266 |
gl/Makefile
|
|
|
a1c266 |
gl/lib/Makefile
|
|
|
a1c266 |
lib/Makefile
|
|
|
a1c266 |
-locate/Makefile
|
|
|
a1c266 |
-locate/testsuite/Makefile
|
|
|
a1c266 |
m4/Makefile
|
|
|
a1c266 |
po/Makefile.in
|
|
|
a1c266 |
po/Makefile
|
|
|
a1c266 |
diff --git a/doc/find.texi b/doc/find.texi
|
|
|
a1c266 |
index c2714dd..01367a4 100644
|
|
|
a1c266 |
--- a/doc/find.texi
|
|
|
a1c266 |
+++ b/doc/find.texi
|
|
|
a1c266 |
@@ -7,7 +7,6 @@
|
|
|
a1c266 |
@c @setchapternewpage odd
|
|
|
a1c266 |
@c %**end of header
|
|
|
a1c266 |
|
|
|
a1c266 |
-@include dblocation.texi
|
|
|
a1c266 |
|
|
|
a1c266 |
@iftex
|
|
|
a1c266 |
@finalout
|
|
|
a1c266 |
@@ -572,8 +571,7 @@ the databases are updated, and the directories for which they contain
|
|
|
a1c266 |
entries.
|
|
|
a1c266 |
|
|
|
a1c266 |
Here is how to select which file name databases @code{locate}
|
|
|
a1c266 |
-searches. The default is system-dependent. At the time this document
|
|
|
a1c266 |
-was generated, the default was @file{@value{LOCATE_DB}}.
|
|
|
a1c266 |
+searches. The default is system-dependent.
|
|
|
a1c266 |
|
|
|
a1c266 |
@table @code
|
|
|
a1c266 |
@item --database=@var{path}
|
|
|
a1c266 |
@@ -2993,13 +2991,9 @@ thrashing the network.
|
|
|
a1c266 |
directories are indexed by each database file.
|
|
|
a1c266 |
|
|
|
a1c266 |
The default location for the locate database depends on how findutils
|
|
|
a1c266 |
-is built, but the findutils installation accompanying this manual uses
|
|
|
a1c266 |
-the default location @file{@value{LOCATE_DB}}.
|
|
|
a1c266 |
-
|
|
|
a1c266 |
-If no database exists at @file{@value{LOCATE_DB}} but the user did not
|
|
|
a1c266 |
-specify where to look (by using @samp{-d} or setting
|
|
|
a1c266 |
-@code{LOCATE_PATH}), then @code{locate} will also check for a
|
|
|
a1c266 |
-``secure'' database in @file{/var/lib/slocate/slocate.db}.
|
|
|
a1c266 |
+is built. If user did not specify where to look (by using @samp{-d}
|
|
|
a1c266 |
+or setting @code{LOCATE_PATH}), then @code{locate} will also check for
|
|
|
a1c266 |
+a ``secure'' database in @file{/var/lib/slocate/slocate.db}.
|
|
|
a1c266 |
|
|
|
a1c266 |
@node Database Formats
|
|
|
a1c266 |
@section Database Formats
|
|
|
a1c266 |
@@ -3508,8 +3502,7 @@ present.
|
|
|
a1c266 |
|
|
|
a1c266 |
@item --database=@var{path}
|
|
|
a1c266 |
@itemx -d @var{path}
|
|
|
a1c266 |
-Instead of searching the default @code{locate} database
|
|
|
a1c266 |
-@file{@value{LOCATE_DB}}, @code{locate} searches the file
|
|
|
a1c266 |
+@code{locate} searches the file
|
|
|
a1c266 |
name databases in @var{path}, which is a colon-separated list of
|
|
|
a1c266 |
database file names. You can also use the environment variable
|
|
|
a1c266 |
@code{LOCATE_PATH} to set the list of database files to search. The
|
|
|
a1c266 |
@@ -3684,8 +3677,7 @@ The environment variable @code{PRUNEFS} also sets this value. Default
|
|
|
a1c266 |
is @file{nfs NFS proc}.
|
|
|
a1c266 |
|
|
|
a1c266 |
@item --output=@var{dbfile}
|
|
|
a1c266 |
-The database file to build. The default is system-dependent, but
|
|
|
a1c266 |
-when this document was formatted it was @file{@value{LOCATE_DB}}.
|
|
|
a1c266 |
+The database file to build.
|
|
|
a1c266 |
|
|
|
a1c266 |
@item --localuser=@var{user}
|
|
|
a1c266 |
The user to search the non-network directories as, using @code{su}.
|
|
|
a1c266 |
@@ -5709,7 +5701,7 @@ See the manual of the system call @code{dup2(2)}.
|
|
|
a1c266 |
@section Error Messages From @code{locate}
|
|
|
a1c266 |
|
|
|
a1c266 |
@table @samp
|
|
|
a1c266 |
-@item warning: database @file{@value{LOCATE_DB}} is more than 8 days old
|
|
|
a1c266 |
+@item warning: database @file{LOCATE_DB} is more than 8 days old
|
|
|
a1c266 |
The @code{locate} program relies on a database which is periodically
|
|
|
a1c266 |
built by the @code{updatedb} program. That hasn't happened in a long
|
|
|
a1c266 |
time. To fix this problem, run @code{updatedb} manually. This can
|
|
|
a1c266 |
@@ -5717,7 +5709,7 @@ often happen on systems that are generally not left on, so the
|
|
|
a1c266 |
periodic ``cron'' task which normally does this doesn't get a chance
|
|
|
a1c266 |
to run.
|
|
|
a1c266 |
|
|
|
a1c266 |
-@item locate database @file{@value{LOCATE_DB}} is corrupt or invalid
|
|
|
a1c266 |
+@item locate database @file{LOCATE_DB} is corrupt or invalid
|
|
|
a1c266 |
This should not happen. Re-run @code{updatedb}. If that works, but
|
|
|
a1c266 |
@code{locate} still produces this error, run @code{locate --version}
|
|
|
a1c266 |
and @code{updatedb --version}. These should produce the same output.
|
|
|
a1c266 |
diff --git a/tests/local.mk b/tests/local.mk
|
|
|
a1c266 |
index 7e52a04..ae08a56 100644
|
|
|
a1c266 |
--- a/tests/local.mk
|
|
|
a1c266 |
+++ b/tests/local.mk
|
|
|
a1c266 |
@@ -15,7 +15,7 @@
|
|
|
a1c266 |
## You should have received a copy of the GNU General Public License
|
|
|
a1c266 |
## along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
a1c266 |
|
|
|
a1c266 |
-built_programs = find oldfind xargs frcode locate updatedb
|
|
|
a1c266 |
+built_programs = find oldfind xargs
|
|
|
a1c266 |
|
|
|
a1c266 |
# Indirections required so that we'll still be able to know the
|
|
|
a1c266 |
# complete list of our tests even if the user overrides TESTS
|
|
|
a1c266 |
--
|
|
|
a1c266 |
2.5.0
|
|
|
a1c266 |
|