Subject: pkg/13544: Patch to fix locate database location for sysutils/findutils
To: None <gnats-bugs@gnats.netbsd.org>
From: Eric Gillespie, Jr. <epg@pobox.com>
List: netbsd-bugs
Date: 07/23/2001 21:18:35
>Number:         13544
>Category:       pkg
>Synopsis:       Patch to fix locate database location for sysutils/findutils
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 23 19:14:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Eric Gillespie Jr.
>Release:        NetBSD 1.5
>Organization:
>Environment:
System: NetBSD trantor 1.5 NetBSD 1.5 (TRANTOR) #1: Sun Jul 8 12:10:17 EST 2001 epg@:/u/src/sys/arch/i386/compile/TRANTOR i386


>Description:

The locate command in GNU findutils as configured by
sysutils/findutils thinks the locate database is in /var/run/locatedb
when it is in fact in /var/db/locate.database.

>How-To-Repeat:
>Fix:
Apply a patch to locate/Makefile.in to fix the location.

Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/sysutils/findutils/distinfo,v
retrieving revision 1.2
diff -a -u -r1.2 distinfo
--- distinfo	2001/04/19 11:29:01	1.2
+++ distinfo	2001/07/24 01:59:27
@@ -2,5 +2,5 @@
 
 SHA1 (findutils-4.1.tar.gz) = b91cd03ca4c9659b3e5d40e841c64bfd2e7f25d8
 Size (findutils-4.1.tar.gz) = 294494 bytes
-SHA1 (patch-aa) = 34d2a60cbed74cb7abfaf8c8b2df9ef8a64ff623
+SHA1 (patch-aa) = a72421de9eec395143ce39da109eb53e85dfc468
 SHA1 (patch-ab) = 13664baa3e9348413416c920776be659d5dc59c3
Index: patches/patch-aa
===================================================================
RCS file: /cvsroot/pkgsrc/sysutils/findutils/patches/patch-aa,v
retrieving revision 1.1.1.1
diff -a -u -r1.1.1.1 patch-aa
--- patch-aa	1999/12/10 17:32:59	1.1.1.1
+++ patch-aa	2001/07/24 01:59:27
@@ -1,7 +1,7 @@
 $NetBSD: patch-aa,v 1.1.1.1 1999/12/10 17:32:59 bouyer Exp $
 
---- locate/Makefile.in.orig	Sat Nov  5 06:44:08 1994
-+++ locate/Makefile.in	Fri Dec 10 07:35:53 1999
+--- locate/Makefile.in.orig	Sat Nov  5 09:44:08 1994
++++ locate/Makefile.in
 @@ -29,7 +29,7 @@
  datadir = $(prefix)/share
  sysconfdir = $(prefix)/etc
@@ -19,6 +19,15 @@
  INSTALL_DATA = @INSTALL_DATA@
  transform = @program_transform_name@
  
+@@ -68,7 +69,7 @@
+ DIST_FILES = $(DIST_CONF) $(SOURCES) $(TEXINFOS) $(INFOS) $(MANS) $(DIST_OTHER)
+ 
+ # The default database to build and search.
+-LOCATE_DB = $(localstatedir)/locatedb
++LOCATE_DB = /var/db/locate.database
+ 
+ PROGRAMS = locate
+ LIBPROGRAMS = frcode code bigram
 @@ -96,8 +97,11 @@
  
  install-programs: $(PROGRAMS) $(SCRIPTS)
>Release-Note:
>Audit-Trail:
>Unformatted: