Subject: Re: [htdig3-dev] Bug#56721: htdig and locale de_DE peculiarities. (fwd)
From: Gilles Detillieux (firstname.lastname@example.org)
Date: Fri Feb 04 2000 - 11:16:02 PST
According to Gergely Madarasz:
> On Fri, 4 Feb 2000, Gilles Detillieux wrote:
> > > Package: htdig
> > > Version: 3.1.4-1
> > >
> > > This is probably for upstream.
> > This is very strange. I can't see anything in the code that could
> > explain the behaviour described below. Does debian include any patches to
> > 3.1.4, or just a straight, unmodified installation of the 3.1.4 tarball?
> > If there are any patches, please provide us with them.
> There are a few changes in the build process (don't build libdb, use
> glibc's libdb or libdb2, depending on the glibc version number), and a
> couple of changes for backporting to the older db api like:
> - if ((seqrc = dbp->cursor(dbp, NULL, &dbcp, 0)) != 0)
> + if ((seqrc = dbp->cursor(dbp, NULL, &dbcp)) != 0)
> No patches which would modify parsing.
> You can check the diff on
Hmmm. I don't like the sound of "backporting to the older db". We have
not determined that the problem is in HTML parsing, and in fact that
seems quite unlikely at this point. We've included Sleepycat's Berkeley
DB 2.6.4 (with a few patches), since about version 3.1.1, so I'd be leery
about going back to an earlier version. I'm not sure how dependent the
code is on the current version, but I think there were reasons for going
with it. Version 3.2 of htdig will include a more recent version of the
DB package, with a whole lot more patches to it, and it will definitely be
dependent on the bundled version. I'd certainly recommend building 3.1.4
with its bundled db package before we go looking elsewhere for problems.
The user reported problems that I simply can't explain based on the
code, and are nothing like anything else we've seen, so it's clear that
something is going very wrong deep in the bowels of the code, and I'd
say that the DB package is as good a place to start as any.
I took a look at the patch file above, and I must say that the man pages
are a nice touch. We should probably fold them into the distribution.
I did notice a problem with the debian/postinst script, though. The test
for the endings and synomyms databases is wrong - right now it's testing
for the document databases. Also, the message to the installer suggests
that /usr/sbin/htdigconfig will rebuild an existing endings database.
It won't. It will only rebuild the endings or the synonyms database if
it doesn't exist. The code that was commented out of rundig probably
does a better test, as it will rebuild if the source files are newer than
the current synonyms or endings databases. I'd also highly recommend
conv_doc.pl over parse_doc.pl for 3.1.4.
I was also a bit curious about the huge htlib/DB2_db.I in the patch file.
Is this an artifact, or was it necessary to get htdig to build with
debian's DB package?
-- Gilles R. Detillieux E-mail: <email@example.com> Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/~grdetil Dept. Physiology, U. of Manitoba Phone: (204)789-3766 Winnipeg, MB R3E 3J7 (Canada) Fax: (204)789-3930
------------------------------------ To unsubscribe from the htdig3-dev mailing list, send a message to firstname.lastname@example.org You will receive a message to confirm this.
This archive was generated by hypermail 2b28 : Fri Feb 04 2000 - 11:18:08 PST