Open andy5995 opened 6 years ago
No, my comment meant, in my repository the ht://Dig 4 stuff is missing. If I recall correctly one of the first things done in the ht://Dig 4.0 branch was replacing searching and indexing with lucene. IMO that means heart and brain of ht://Dig get ripped out and replaced by something else. What remains is basically the web interface and glue code. I may be overboard with my opinion, but back then I was more interested in the search and indexing part of htdig.
Note the code is really outdated, as also explained in that 4.0 refactoring document, you linked above. What the document doesn't state explicitly is, htdig was written before C++ became standardized, and in particular the STL is not used in ht://Dig.
Thanks again for getting me up to speed, @roklein . Seems like we should do what you suggested originally, and keep going as we are, forgetting about 4.x.
The libhtdigphp stuff may as well stay here, in case someone ever wants to mess with it, or learn from it, but it shouldn't be included by make dist
at the present time, imo.
Regarding submodules, the only requirement I have on these, the build process cannot depend on external sources. A distribution should only have to download the tarball, untar it, run configure, make and make install. Nowhere in the build process should an internet connection be required, as many distriobuions then can't build it. The archive the user download must be self contained.
One can however have the other repo code as dependency, for exampel like libstdc++ and libssl-dev is a requirement for compiling.
yeah, that won't be an issue. hldig is not dependent on the stuff in libhtdigphp at all. And I think it's fine to leave things where they are at for now, but adding something to README that states something like: "The package in this directory doesn't currently build and isn't being maintained while we focus on hldig. Anyone interested in working on it can submit a patch however, or contact us to discuss it."
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
https://github.com/solbu/hldig/blob/3d3f7eb9fc805b59ce14142e6471bcb5c1b48466/libhtdigphp/Makefile#L1-L15
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:
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 https://github.com/roklein/htdig/issues/1#issuecomment-342462767
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.