I'm thinking it may be worth it to move libhtdigphp to a separate repo.
I was taking a look at it and one problem is that it's looking for hldig in the wrong directories, since we moved many of the files to /opt/www.
Another problem is looking at the Makefile
|
top_srcdir = /nfs/users/rnw/nealr/code/htdig/htdig-CVS-linux/libhtdigphp |
|
top_builddir = /nfs/users/rnw/nealr/code/htdig/htdig-CVS-linux/libhtdigphp |
|
srcdir = /nfs/users/rnw/nealr/code/htdig/htdig-CVS-linux/libhtdigphp/ |
|
builddir = /nfs/users/rnw/nealr/code/htdig/htdig-CVS-linux/libhtdigphp/ |
|
VPATH = /nfs/users/rnw/nealr/code/htdig/htdig-CVS-linux/libhtdigphp/ |
|
# $Id: Makefile,v 1.1 2004/03/20 01:31:21 nealr Exp $ |
|
|
|
LTLIBRARY_NAME = libhtdigphp.la |
|
LTLIBRARY_SOURCES = htdigphp.c |
|
LTLIBRARY_SHARED_NAME = libhtdigphp.la |
|
LTLIBRARY_SHARED_LIBADD = -lhtdig |
|
|
|
include $(top_srcdir)/build/dynlib.mk |
|
|
|
DEFS += -I../libhtdig |
I don't know what was stored on the nfs servers! I just downloaded the cvs code
cvs -z3 -d:pserver:anonymous@a.cvs.sourceforge.net:/cvsroot/htdig co -P htdig from sourceforge and no big differences really stuck out to me.
When I ran make on htdig-3.2.0b6:
andy@oceanus:~/temp/htdig-3.2.0b6/libhtdigphp$ make
Makefile:13: /nfs/users/rnw/nealr/code/htdig/htdig-CVS-linux/libhtdigphp/build/dynlib.mk: No such file or directory
make: *** No rule to make target '/nfs/users/rnw/nealr/code/htdig/htdig-CVS-linux/libhtdigphp/build/dynlib.mk'. Stop.
From https://github.com/solbu/hldig/blob/master/archived_docs/htdig40_refactor.pdf
this tells a bit about what it's supposed to do:
4.3
Removed Features
Originally, several different auxiliary databases were avail-
able for ”fuzzy” searching though the htfuzzy tool. Algo-
rithms like synonyms, metaphone and soundex have been re-
moved completely, the endings database has been subsumed
into the main CLucene index as a searchable stemmed field,
and the accents database is no longer necessary, being re-
quired only in the context of an ASCII-only index. Also
removed are some of the database management tools like
htmerge, htdump, and htload. The htmerge tool was used
to merge BDB indexes created during different runs of htdig
into one.
Gone also is the CGI based searching executable that was
part of ht://Dig. This has been replaced with a simple PHP
API that provides the same functionality. This conforms
better to the idea of using HtDig as a utility library.
Well, our distribution still has htfuzzy. That doc is apparently referring to the 4.0 version, code from which has been lost, according to @roklein in roklein/htdig#1 (comment)
Thank you for your interest in this project. I think it's better you fork and continue there. My repository is basically up to version 3.2b6 and some patches from further down the tree and those used by some major distributions (suse, fedora,...). So in a way, this is probably the most stable version of htdig, currently. Unfortunately it seems, I only put the one tree into the repository (I converted it from CVS), so the older 3.1.6 stuff isn't here. Also the early 4.0 code is missing, but I think you are way better off, not using it. Plese note, there is a fork from jrsupplee which has three additional patches. I didn't review those, however, and never got a pull request.
Best regards,
Robert
The only code I know of from 4.x is on our 4_1_0 branch. I tried building it a few times but could only build part of it. Based on what Robert said, I assumed parts of the code were missing.
I suggest that the whole libhtdigphp directory could be moved into a separate repo. We'd link to the repo, and perhaps add it as a submodule.
I'm thinking it may be worth it to move libhtdigphp to a separate repo.
I was taking a look at it and one problem is that it's looking for hldig in the wrong directories, since we moved many of the files to /opt/www.
Another problem is looking at the Makefile
hldig/libhtdigphp/Makefile
Lines 1 to 15 in 3d3f7eb
I don't know what was stored on the nfs servers! I just downloaded the cvs code
cvs -z3 -d:pserver:anonymous@a.cvs.sourceforge.net:/cvsroot/htdig co -P htdigfrom sourceforge and no big differences really stuck out to me.When I ran make on htdig-3.2.0b6:
From https://github.com/solbu/hldig/blob/master/archived_docs/htdig40_refactor.pdf
this tells a bit about what it's supposed to do:
Well, our distribution still has htfuzzy. That doc is apparently referring to the 4.0 version, code from which has been lost, according to @roklein in roklein/htdig#1 (comment)
The only code I know of from 4.x is on our 4_1_0 branch. I tried building it a few times but could only build part of it. Based on what Robert said, I assumed parts of the code were missing.
I suggest that the whole libhtdigphp directory could be moved into a separate repo. We'd link to the repo, and perhaps add it as a submodule.