#564213 htdig: error when building endings and synonyms databases

Package:
htdig
Source:
htdig
Description:
web search and indexing system - binaries
Submitter:
Francesco Potortì
Date:
2010-08-31 07:40:00 UTC
Severity:
normal
#564213#5
Date:
2010-01-08 11:49:48 UTC
From:
To:
The following errors are printed by rundig when it calls htfuzzy:

/bin/mv: `/var/lib/htdig/synonyms.db' and `/var/lib/htdig/synonyms.db' are the same file
/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

This patch should correct the problem:
--- /usr/bin/rundig~	2009-07-27 06:03:09.000000000 +0200
+++ /usr/bin/rundig	2010-01-08 12:46:58.000000000 +0100
@@ -51,7 +51,8 @@
 # secure.  Also, be aware that on some systems, /tmp is a memory
 # mapped filesystem that takes away from virtual memory.
 #
-TMPDIR=$DBDIR
+TMPDIR=$DBDIR/tmp
+mkdir -p $TMPDIR
 export TMPDIR

 $BINDIR/htdig -i $opts $stats $alt