2015-12-19 21:40:56 +00:00
|
|
|
From 3e5e311d23ac0a5bd5930ddb4094f7555b886329 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Kamil Dudka <kdudka@redhat.com>
|
|
|
|
Date: Sat, 19 Dec 2015 22:56:40 +0100
|
|
|
|
Subject: [PATCH 1/2] Revert "Don't include dblocation.texi from original spot,
|
|
|
|
symlink it."
|
|
|
|
|
|
|
|
This reverts commit f59d88e456553dfe0b5185caf75e4041285fd595.
|
|
|
|
---
|
2019-08-30 07:50:49 +00:00
|
|
|
doc/Makefile.am | 7 +------
|
|
|
|
1 file changed, 1 insertion(+), 6 deletions(-)
|
2015-12-19 21:40:56 +00:00
|
|
|
|
|
|
|
diff --git a/doc/Makefile.am b/doc/Makefile.am
|
|
|
|
index f6f7443..6fbf57b 100644
|
|
|
|
--- a/doc/Makefile.am
|
|
|
|
+++ b/doc/Makefile.am
|
|
|
|
@@ -16,11 +16,9 @@ AM_CFLAGS = $(WARN_CFLAGS)
|
|
|
|
|
|
|
|
info_TEXINFOS = find.texi find-maint.texi
|
|
|
|
find_TEXINFOS = perm.texi parse-datetime.texi regexprops.texi fdl.texi
|
|
|
|
-BUILT_SOURCES = dblocation.texi
|
|
|
|
-nodist_find_TEXINFOS = dblocation.texi
|
|
|
|
find_maint_TEXINFOS = fdl.texi
|
|
|
|
MOSTLYCLEANFILES = find.cps
|
2019-08-30 07:50:49 +00:00
|
|
|
-CLEANFILES = find.txt find_mono.html findutils.texi_html_node.tar.gz dblocation.texi \
|
|
|
|
+CLEANFILES = find.txt find_mono.html findutils.texi_html_node.tar.gz \
|
|
|
|
find_mono.html findutils.texi_html_node.tar.gz \
|
|
|
|
find-info.tar.gz find.texi find.texi.tar.gz \
|
|
|
|
find.txt tmp-doc-install find_mono.html.gz
|
|
|
|
@@ -73,9 +71,6 @@ findutils.texi_html_node.tar.gz: find.html
|
|
|
|
tar zcf $@ $<
|
2015-12-19 21:40:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
-dblocation.texi: ../locate/dblocation.texi
|
|
|
|
- $(LN_S) ../locate/dblocation.texi $@
|
2019-08-30 07:50:49 +00:00
|
|
|
-
|
|
|
|
find-info.tar.gz:
|
|
|
|
$(MKDIR_P) tmp-doc-install/info
|
|
|
|
$(MAKE) $(AM_MAKEFLAGS) \
|
2015-12-19 21:40:56 +00:00
|
|
|
--
|
|
|
|
2.5.0
|
|
|
|
|
|
|
|
|
|
|
|
From d5473caa86f689ebcadacc593f5a71781c99e829 Mon Sep 17 00:00:00 2001
|
2011-05-11 14:52:18 +00:00
|
|
|
From: Kamil Dudka <kdudka@redhat.com>
|
|
|
|
Date: Wed, 11 May 2011 16:46:13 +0200
|
2015-12-19 21:40:56 +00:00
|
|
|
Subject: [PATCH 2/2] findutils-4.4.0-no-locate.patch
|
2011-05-11 14:52:18 +00:00
|
|
|
|
|
|
|
---
|
2019-08-30 07:50:49 +00:00
|
|
|
Makefile.am | 2 +-
|
|
|
|
configure.ac | 2 --
|
|
|
|
doc/find.texi | 24 ++++++++----------------
|
|
|
|
tests/local.mk | 2 +-
|
|
|
|
4 files changed, 10 insertions(+), 20 deletions(-)
|
2011-05-11 14:52:18 +00:00
|
|
|
|
2010-04-03 15:50:55 +00:00
|
|
|
diff --git a/Makefile.am b/Makefile.am
|
2015-12-19 21:40:56 +00:00
|
|
|
index af82d54..6ad453b 100644
|
2010-04-03 15:50:55 +00:00
|
|
|
--- a/Makefile.am
|
|
|
|
+++ b/Makefile.am
|
2019-08-30 07:50:49 +00:00
|
|
|
@@ -35,7 +35,7 @@ DISTCLEANFILES = tool-versions.txt
|
2009-07-01 12:03:32 +00:00
|
|
|
|
2008-04-30 10:02:05 +00:00
|
|
|
|
2019-08-30 07:50:49 +00:00
|
|
|
# "gnulib-tests" is the gnulib unit test dir.
|
|
|
|
-SUBDIRS = gl build-aux lib find xargs locate doc po m4 gnulib-tests
|
|
|
|
+SUBDIRS = gl build-aux lib find xargs doc po m4 gnulib-tests
|
2009-07-01 12:03:32 +00:00
|
|
|
|
2019-08-30 07:50:49 +00:00
|
|
|
ALL_RECURSIVE_TARGETS =
|
2009-07-01 12:03:32 +00:00
|
|
|
|
2013-02-03 20:03:52 +00:00
|
|
|
diff --git a/configure.ac b/configure.ac
|
2015-12-19 21:40:56 +00:00
|
|
|
index ce0e768..521e665 100644
|
2013-02-03 20:03:52 +00:00
|
|
|
--- a/configure.ac
|
|
|
|
+++ b/configure.ac
|
2019-08-30 07:50:49 +00:00
|
|
|
@@ -309,8 +309,6 @@ find/testsuite/Makefile
|
2013-02-03 20:03:52 +00:00
|
|
|
gl/Makefile
|
|
|
|
gl/lib/Makefile
|
|
|
|
lib/Makefile
|
|
|
|
-locate/Makefile
|
|
|
|
-locate/testsuite/Makefile
|
|
|
|
m4/Makefile
|
|
|
|
po/Makefile.in
|
|
|
|
po/Makefile
|
2010-02-12 10:57:55 +00:00
|
|
|
diff --git a/doc/find.texi b/doc/find.texi
|
2015-12-19 21:40:56 +00:00
|
|
|
index c2714dd..01367a4 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
|
2019-08-30 07:50:49 +00:00
|
|
|
-@include dblocation.texi
|
2010-02-12 10:57:55 +00:00
|
|
|
|
|
|
|
@iftex
|
|
|
|
@finalout
|
2019-08-30 07:50:49 +00:00
|
|
|
@@ -575,8 +574,7 @@ the databases are updated, and the directories for which they contain
|
2010-04-03 15:50:55 +00:00
|
|
|
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}
|
2019-08-30 07:50:49 +00:00
|
|
|
@@ -2929,13 +2927,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
|
2019-08-30 07:50:49 +00:00
|
|
|
@@ -3460,8 +3454,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
|
2019-08-30 07:50:49 +00:00
|
|
|
@@ -3636,8 +3629,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}.
|
2019-08-30 07:50:49 +00:00
|
|
|
@@ -5631,7 +5623,7 @@ See the manual of the system call @code{dup2(2)}.
|
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
|
2019-08-30 07:50:49 +00:00
|
|
|
@@ -5639,7 +5631,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.
|
2019-08-30 07:50:49 +00:00
|
|
|
diff --git a/tests/local.mk b/tests/local.mk
|
|
|
|
index 7e52a04..ae08a56 100644
|
|
|
|
--- a/tests/local.mk
|
|
|
|
+++ b/tests/local.mk
|
|
|
|
@@ -15,7 +15,7 @@
|
|
|
|
## You should have received a copy of the GNU General Public License
|
|
|
|
## along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
-built_programs = find oldfind xargs frcode locate updatedb
|
|
|
|
+built_programs = find oldfind xargs
|
|
|
|
|
|
|
|
# Indirections required so that we'll still be able to know the
|
|
|
|
# complete list of our tests even if the user overrides TESTS
|
2011-05-11 14:52:18 +00:00
|
|
|
--
|
2015-12-19 21:40:56 +00:00
|
|
|
2.5.0
|
2011-05-11 14:52:18 +00:00
|
|
|
|