Bug 220390
Summary: | htdig.conf and rundig have different common_dir setting | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Ahmon Dancy <dancy> |
Component: | htdig | Assignee: | Adam Tkac <atkac> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 6 | CC: | ovasik |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2007-02-01 15:46:42 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Ahmon Dancy
2006-12-20 22:10:29 UTC
Hm, I don't think that /usr/share/htdig is correct path. httpd daemon uses /var/www/html/ directory for web pages. Looks like that /usr/share/htdig must be change to /var/www/html/htdig. Do you also think that this solution is better? I did some investigation. Here is my updated opinion on the matter. 1) /usr/share/htdig is a suitable location since the files are indeed shareable between different htdig databases. Leaving it unchanged will reduce incompatibility. However, /var/www/html/hdig is OK too. 2) Right now the rundig script uses its own COMMONDIR variable to determine if it should update the synonyms.db, word2root.db, and root2word.db files (by running htfuzzy). I think that whole section of the rundig script should be removed and, instead, those *.db files should be created when the rpm is installed (and removed when the rpm is removed). I did some investigations and this is my conclusion. I think this is only name-equality. Variable COMMONDIR in rundig script doesn't have any common with common_dir variable in htdig.conf. Do you think my thinking is wrong? It would be highly coincidental for COMMONDIR to not have the same meaning as common_dir. In the htdig source code, the default location for the english.0 is in 'common_dir'. And, the template file for rundig has: COMMONDIR=@COMMON_DIR@ where @COMMON_DIR@ resolves to whatever default common_dir was configured. <time passes> Ok. I had a look at the source RPM again and I see what the issue is. htdig is being configured with --with-common-dir=/var/www/html/htdig, which is fine. So, /usr/bin/rundig gets created with COMMONDIR=/var/www/html/htdig. However, htdig-3.1.5-rh.patch alters the common_dir variable in htdig.conf so that common_dir is /usr/share/htdig, thus creating the inconsistency. One of them needs to be fixed. As it stands, rundig will not work out of the box. In the end I've changed common_dir in config file to /var/www/html/htdig |