Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Aug 2002 10:25:31 -0700
From:      Kent Stewart <kstewart@owt.com>
To:        root@unixhideout.com
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: locate.updatedb problem
Message-ID:  <3D52A98B.30307@owt.com>
References:  <200208081701.43197.keanu@keanu.be>        <3D529D9A.1040805@owt.com> <1796.192.168.1.10.1028824849.squirrel@email.unixhideout.com>

next in thread | previous in thread | raw e-mail | index | archive | help


Mike wrote:

>>keanu wrote:
>>
>>
>>>after a world/kernel update, my updatedb no longer works
>>>
>>><~> /usr/libexec/locate.updatedb
>>>/usr/libexec/locate.mklocatedb: 87: Syntax error: "||" unexpected
>>>
>>>
>>><~> cat /usr/libexec/locate.mklocatedb
>>>85:        $bigram < $filelist | $sort -nr |
>>>86:        perl -ne '/^\s*[0-9]+\s(..)$/ && print $1 || exit 1' >
>>>$bigrams
>>>
>>
>>I located the vi prompt on line 86 and did a "j" which appended line  87
>>to it. I suspect that something changed is csh because there was a
>>patch to the -current version of the script.
>>
>>Kent
>>
>>
>>
>>>87:            || exit 1
>>>88:        $code $bigrams < $filelist || exit 1
>>>
>>>
>>>(FreeBSD jessica.keanu.be 4.6-STABLE FreeBSD 4.6-STABLE #3: Wed Aug  7
>>> 20:09:04 CEST 2002
>>>keanu@jessica.keanu.be:/usr/obj/usr/src/sys/Jessica   i386)
>>>
>>>anyone else had this problem?
>>>any way to fix it?
>>>
>>--
>>Kent Stewart
>>Richland, WA
>>http://users.owt.com/kstewart/index.html
>>
>>
> 
> I have a lot of people on my lists complaining of similar errors. For
> example one of their rc.d scripts (mysql-server.sh) no longer "works" and
> gives the same error. I believe your problem is the src you got, or
> something that was broken. Try editing your cvsup file, and getting source
> from a different server,
> running the update, and then build your world. That would be my suggestion.
> 


Not this time. Tim Robbins fixed it on 7 August with the following 
commit message

On Wed, Aug 07, 2002 at 02:21:01AM -0700, Tim J. Robbins wrote:


 > tjr         2002/08/07 02:21:00 PDT
 >
 > Modified files:        (Branch: RELENG_4)
 > usr.bin/locate/locate mklocatedb.sh
 > Log:
 > Correct syntax error detected by src/bin/sh/parser.c 1.29.2.7.
 > > Submitted by:   The Anarcat <anarcat@anarcat.ath.cx>
 > > Revision  Changes    Path
 > 1.10.2.1  +2 -3      src/usr.bin/locate/locate/mklocatedb.sh


FWIW, this change does not apply to CURRENT, which was already fixed.

This change is just a cleaner version of what I did with vi.

Kent


-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D52A98B.30307>