10a327
From 3e5e311d23ac0a5bd5930ddb4094f7555b886329 Mon Sep 17 00:00:00 2001
10a327
From: Kamil Dudka <kdudka@redhat.com>
10a327
Date: Sat, 19 Dec 2015 22:56:40 +0100
10a327
Subject: [PATCH 1/2] Revert "Don't include dblocation.texi from original spot,
10a327
 symlink it."
10a327
10a327
This reverts commit f59d88e456553dfe0b5185caf75e4041285fd595.
10a327
---
10a327
 configure.ac    | 2 +-
10a327
 doc/Makefile.am | 8 +-------
10a327
 doc/find.texi   | 2 +-
10a327
 3 files changed, 3 insertions(+), 9 deletions(-)
10a327
10a327
diff --git a/configure.ac b/configure.ac
10a327
index 7962719..ce0e768 100644
10a327
--- a/configure.ac
10a327
+++ b/configure.ac
10a327
@@ -70,7 +70,7 @@ AC_PROG_CPP
10a327
 
10a327
 dnl for gnulib
10a327
 gl_EARLY
10a327
-AC_PROG_LN_S
10a327
+
10a327
 AC_PROG_INSTALL
10a327
 AC_CHECK_TOOLS([AR], [ar])
10a327
 AC_CHECK_TOOLS([RANLIB], [ranlib], [:])
10a327
diff --git a/doc/Makefile.am b/doc/Makefile.am
10a327
index f6f7443..6fbf57b 100644
10a327
--- a/doc/Makefile.am
10a327
+++ b/doc/Makefile.am
10a327
@@ -16,11 +16,9 @@ AM_CFLAGS = $(WARN_CFLAGS)
10a327
 
10a327
 info_TEXINFOS = find.texi find-maint.texi
10a327
 find_TEXINFOS = perm.texi parse-datetime.texi regexprops.texi fdl.texi
10a327
-BUILT_SOURCES = dblocation.texi
10a327
-nodist_find_TEXINFOS = dblocation.texi
10a327
 find_maint_TEXINFOS = fdl.texi
10a327
 MOSTLYCLEANFILES = find.cps
10a327
-CLEANFILES = find.txt find_mono.html findutils.texi_html_node.tar.gz dblocation.texi
10a327
+CLEANFILES = find.txt find_mono.html findutils.texi_html_node.tar.gz
10a327
 
10a327
 MAKEINFOTXT = $(MAKEINFO) --plaintext
10a327
 
10a327
@@ -69,7 +67,3 @@ find_mono.html: find.texi
10a327
 # for "make all" or "make install" (or even "make check").
10a327
 findutils.texi_html_node.tar.gz: find.html
10a327
 	tar zcf $@ $<
10a327
-
10a327
-
10a327
-dblocation.texi: ../locate/dblocation.texi
10a327
-	$(LN_S) ../locate/dblocation.texi $@
10a327
diff --git a/doc/find.texi b/doc/find.texi
10a327
index a83a645..c2714dd 100644
10a327
--- a/doc/find.texi
10a327
+++ b/doc/find.texi
10a327
@@ -7,7 +7,7 @@
10a327
 @c %**end of header
10a327
 
10a327
 @include version.texi
10a327
-@include dblocation.texi
10a327
+@include ../locate/dblocation.texi
10a327
 
10a327
 @iftex
10a327
 @finalout
10a327
-- 
10a327
2.5.0
10a327
10a327
10a327
From d5473caa86f689ebcadacc593f5a71781c99e829 Mon Sep 17 00:00:00 2001
10a327
From: Kamil Dudka <kdudka@redhat.com>
10a327
Date: Wed, 11 May 2011 16:46:13 +0200
10a327
Subject: [PATCH 2/2] findutils-4.4.0-no-locate.patch
10a327
10a327
---
10a327
 Makefile.am   |  2 +-
10a327
 configure.ac  |  2 --
10a327
 doc/find.texi | 24 ++++++++----------------
10a327
 3 files changed, 9 insertions(+), 19 deletions(-)
10a327
10a327
diff --git a/Makefile.am b/Makefile.am
10a327
index af82d54..6ad453b 100644
10a327
--- a/Makefile.am
10a327
+++ b/Makefile.am
10a327
@@ -9,7 +9,7 @@ DISTCLEANFILES = tool-versions.txt
10a327
 
10a327
 
10a327
 # "tests" is the gnulib unit test dir.
10a327
-SUBDIRS = gl tests build-aux lib find xargs locate doc po m4
10a327
+SUBDIRS = gl tests build-aux lib find xargs doc po m4
10a327
 
10a327
 ACLOCAL_AMFLAGS = -I gl/m4 -I m4
10a327
 
10a327
diff --git a/configure.ac b/configure.ac
10a327
index ce0e768..521e665 100644
10a327
--- a/configure.ac
10a327
+++ b/configure.ac
10a327
@@ -248,8 +248,6 @@ find/testsuite/Makefile
10a327
 gl/Makefile
10a327
 gl/lib/Makefile
10a327
 lib/Makefile
10a327
-locate/Makefile
10a327
-locate/testsuite/Makefile
10a327
 m4/Makefile
10a327
 po/Makefile.in
10a327
 po/Makefile
10a327
diff --git a/doc/find.texi b/doc/find.texi
10a327
index c2714dd..01367a4 100644
10a327
--- a/doc/find.texi
10a327
+++ b/doc/find.texi
10a327
@@ -7,7 +7,6 @@
10a327
 @c %**end of header
10a327
 
10a327
 @include version.texi
10a327
-@include ../locate/dblocation.texi
10a327
 
10a327
 @iftex
10a327
 @finalout
10a327
@@ -571,8 +570,7 @@ the databases are updated, and the directories for which they contain
10a327
 entries.
10a327
 
10a327
 Here is how to select which file name databases @code{locate}
10a327
-searches.  The default is system-dependent.  At the time this document
10a327
-was generated, the default was @file{@value{LOCATE_DB}}.
10a327
+searches.  The default is system-dependent.
10a327
 
10a327
 @table @code
10a327
 @item --database=@var{path}
10a327
@@ -2892,13 +2890,9 @@ thrashing the network.
10a327
 directories are indexed by each database file.
10a327
 
10a327
 The default location for the locate database depends on how findutils
10a327
-is built, but the findutils installation accompanying this manual uses
10a327
-the default location @file{@value{LOCATE_DB}}.
10a327
-
10a327
-If no database exists at @file{@value{LOCATE_DB}} but the user did not
10a327
-specify where to look (by using @samp{-d} or setting
10a327
-@code{LOCATE_PATH}), then @code{locate} will also check for a
10a327
-``secure'' database in @file{/var/lib/slocate/slocate.db}.
10a327
+is built.  If user did not specify where to look (by using @samp{-d}
10a327
+or setting @code{LOCATE_PATH}), then @code{locate} will also check for
10a327
+a ``secure'' database in @file{/var/lib/slocate/slocate.db}.
10a327
 
10a327
 @node Database Formats
10a327
 @section Database Formats
10a327
@@ -3438,8 +3432,7 @@ present.
10a327
 
10a327
 @item --database=@var{path}
10a327
 @itemx -d @var{path}
10a327
-Instead of searching the default @code{locate} database
10a327
-@file{@value{LOCATE_DB}}, @code{locate} searches the file
10a327
+@code{locate} searches the file
10a327
 name databases in @var{path}, which is a colon-separated list of
10a327
 database file names.  You can also use the environment variable
10a327
 @code{LOCATE_PATH} to set the list of database files to search.  The
10a327
@@ -3614,8 +3607,7 @@ The environment variable @code{PRUNEFS} also sets this value.  Default
10a327
 is @file{nfs NFS proc}.
10a327
 
10a327
 @item --output=@var{dbfile}
10a327
-The database file to build.  The default is system-dependent, but
10a327
-when this document was formatted it was @file{@value{LOCATE_DB}}.
10a327
+The database file to build.
10a327
 
10a327
 @item --localuser=@var{user}
10a327
 The user to search the non-network directories as, using @code{su}.
10a327
@@ -5635,7 +5627,7 @@ why @code{xargs} is confused by your operating system).
10a327
 @section Error Messages From @code{locate}
10a327
 
10a327
 @table @samp
10a327
-@item warning: database @file{@value{LOCATE_DB}} is more than 8 days old
10a327
+@item warning: database @file{LOCATE_DB} is more than 8 days old
10a327
 The @code{locate} program relies on a database which is periodically
10a327
 built by the @code{updatedb} program.  That hasn't happened in a long
10a327
 time.  To fix this problem, run @code{updatedb} manually.  This can
10a327
@@ -5643,7 +5635,7 @@ often happen on systems that are generally not left on, so the
10a327
 periodic ``cron'' task which normally does this doesn't get a chance
10a327
 to run.
10a327
 
10a327
-@item locate database @file{@value{LOCATE_DB}} is corrupt or invalid
10a327
+@item locate database @file{LOCATE_DB} is corrupt or invalid
10a327
 This should not happen.  Re-run @code{updatedb}.  If that works, but
10a327
 @code{locate} still produces this error, run @code{locate --version}
10a327
 and @code{updatedb --version}.  These should produce the same output.
10a327
-- 
10a327
2.5.0
10a327