#506448 htdig: every day I receive error messages

Package:
htdig
Source:
htdig
Description:
web search and indexing system - binaries
Submitter:
Francesco Potorti`
Date:
2010-08-31 07:41:13 UTC
Severity:
minor
#506448#5
Date:
2008-11-21 15:10:51 UTC
From:
To:
Every day, in the daily htdig report, I get these:

/bin/mv: `/var/lib/htdig/root2word.db' and `/var/lib/htdig/root2word.db' are the same file
/bin/mv: `/var/lib/htdig/word2root.db' and `/var/lib/htdig/word2root.db' are the same file
/bin/mv: `/var/lib/htdig/synonyms.db' and `/var/lib/htdig/synonyms.db' are the same file

The reason is that the /usr/bin/rundig command sets TMPDIR to the same
dir where the database file reside.

Either rundig should set TMPDIR to something else, leave it alone, or
best of all set it to something to define in /etc/htdig/htdig.conf.  For
the time being, I just set TMPDIR to /var/tmp by hand in the
/usr/bin/rundig file.

By the way, the eval statement at thebottom of /etc/htdig/htdig.conf
does not need to check for window-system, as Emacs deals with font-lock
even on terminals, and has had for several years.

#506448#10
Date:
2009-03-11 20:10:03 UTC
From:
To:
The TMPDIR issue only affects htfuzzy, but it is exacerbated by the fact
that it is always invoked since the "up-to-date" test looks in the wrong
place for the ".db" files.  The patch below fixes that, and so you'll
only see the message if the endings/synonym database files need rebuilding.
--- rundig.dist 2008-09-23 21:34:45.000000000 +0100 +++ rundig 2009-03-11 19:45:24.000000000 +0000 @@ -81,13 +81,13 @@ # These databases are semi-static, so even if pages change, # these databases will not need to be rebuilt. # -if [ "`ls -t $COMMONDIR/english.0 $COMMONDIR/word2root.db 2>/dev/null | sed 1q`" = \ +if [ "`ls -t $COMMONDIR/english.0 $DBDIR/word2root.db 2>/dev/null | sed 1q`" = \ "$COMMONDIR/english.0" ] then $BINDIR/htfuzzy $opts endings fi