🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by A. Alper ATICI Wed, 24 Mar 2004 08:03
suck-4.3.2: is libinn mandatory?
#68774
Author: A. Alper ATICI
Date: Wed, 24 Mar 2004 08:03
16 lines
1397 bytes
Hello,

I hope this is not OT but I could not find an active suck-news mailing list,
so here it goes:

Is it required to build suck with libinn to get deduping? The README says
something like that, but it was not clear to me. 
OTOH, the build process links with libgdbm when --with-inn-lib is not
specified, and I was able to build with no problems in both cases. 
Are they functionally equivalent or not?
Thank you.

--
Alper At�c�
PGP key @ http://sks.dnsalias.net:11371/pks/lookup?op=index&search=0xB824F550
Re: suck-4.3.2: is libinn mandatory?
#68775
Author: UHAP023
Date: Wed, 24 Mar 2004 16:30
37 lines
2096 bytes
A. Alper ATICI <alper.aticiSTRIP@softhome.net> wrote:
> Hello,
> 
> I hope this is not OT but I could not find an active suck-news mailing list,
> so here it goes:
> 
> Is it required to build suck with libinn to get deduping? The README says
> something like that, but it was not clear to me. 

On slackware 9.0 I found I had to get the source code and build with
libinn to get deduping w.r.t. the history file. Unfortunately the
requisite inn-2.4.3 header files were not in the distro, so I
downloaded the source and built with,

./configure --with-inn-lib=/usr/lib/news/lib --with-inn-include=/usr/local/suck-4.3.2/inn-2.3.4/include

which works properly.

> OTOH, the build process links with libgdbm when --with-inn-lib is not
> specified, and I was able to build with no problems in both cases. 

true.

> Are they functionally equivalent or not?
> Thank you.

Nope. Without libinn, it just downloads everything it is offered, and deletes
duplicates afterwards.

Tom.

-- 
Tom Crane, Dept. Physics, Royal Holloway, University of London, Egham Hill,
Egham, Surrey, TW20 0EX, England. 
Email:  T.Crane@rhul.ac.uk
Fax:    +44 (0) 1784 472794
Re: suck-4.3.2: is libinn mandatory?
#68784
Author: bobyetman
Date: Wed, 24 Mar 2004 21:51
26 lines
2283 bytes
If, by deduping, you mean avoiding downloading articles you already have, and
you're using inn, yes you do need libinn.  Inn uses a custom db format for its
history, which is accessed via libinn.   lib gdbm is NOT the same, the autoconf
stuff is just picking up the fact that you have the libraries for this installed.

Bob Yetman


> On Wed, 24 Mar 2004 10:03:43 +0200 A. Alper ATICI <alper.aticiSTRIP@softhome.net> said:
> Hello,
> I hope this is not OT but I could not find an active suck-news mailing list,
> so here it goes:
> Is it required to build suck with libinn to get deduping? The README says
> something like that, but it was not clear to me. 
> OTOH, the build process links with libgdbm when --with-inn-lib is not
> specified, and I was able to build with no problems in both cases. 
> Are they functionally equivalent or not?
> Thank you.
> --
> Alper At?c?
> PGP key @ http://sks.dnsalias.net:11371/pks/lookup?op=index&search=0xB824F550


-- 
bobyetman@comcast.net (Robert A. Yetman)
Re: suck-4.3.2: is libinn mandatory?
#68789
Author: A. Alper ATICI
Date: Thu, 25 Mar 2004 01:34
44 lines
2294 bytes
On Wed, 24 Mar 2004 15:51:11 -0600, bobyetman@comcast.net wrote:

>If, by deduping, you mean avoiding downloading articles you already have, and

Does it mean anything else?

>you're using inn, yes you do need libinn.  Inn uses a custom db format for its
>history, which is accessed via libinn.   lib gdbm is NOT the same, the autoconf
>stuff is just picking up the fact that you have the libraries for this installed.
>

I get deduping status messages in both cases, 
i.e. the one linked with gdbm displays:
...
4 Articles to download
Deduping Elapsed Time = 0 mins 0.00 seconds
Deduped, 4 items remaining, 0 dupes removed.
Can not open /usr/news/db/history, Skipping
Total articles to download: 4
...

and the one linked with libinn displays:
...
4 Articles to download
Deduping Elapsed Time = 0 mins 0.00 seconds
Deduped, 4 items remaining, 0 dupes removed.
Processing History Database Elapsed Time = 0 mins 0.01 seconds
Processed history, 0 dupes removed
Total articles to download: 4
...

What does the first one dedupe, if it cannot read history db?
And, why does the second one dedupe twice?

I've also noticed a message in debug log that says 
"Writing entire db - /some/path/to/suck.db". 
Where/how does suck.db fit in this process? 
Thanks.


--
Alper At�c�
PGP key @ http://sks.dnsalias.net:11371/pks/lookup?op=index&search=0xB824F550
Re: suck-4.3.2: is libinn mandatory?
#68798
Author: bobyetman
Date: Thu, 25 Mar 2004 22:15
34 lines
2832 bytes
> On Thu, 25 Mar 2004 03:34:08 +0200 A. Alper ATICI <alper.aticiSTRIP@softhome.net> said:
> On Wed, 24 Mar 2004 15:51:11 -0600, bobyetman@comcast.net wrote:
>>If, by deduping, you mean avoiding downloading articles you already have, and
> Does it mean anything else?

There are 2distinct deduping processes.  The first one is against the history
database to make sure we don't download articles we already have.   That's
the one that's not done if you don't have libinn.a.

The second dedupe is to make sure we don't download the same article more
than once, if an article has been crossposted to multiple groups.

As to suck.db its used by suck to restart the download if there is an interruption, such
as a network outage, in the middle of the download.  This was written in at a time
when most people were using suck over phone lines, and it took almost as long
to download the headers, etc to determine which articles to download, as it did to
download the actual articles.   I write the info to disk so that if the download is
interrupted, I don't have to re-download all the header info I've already downloaded.

Hope this answers your questions.

>
> I've also noticed a message in debug log that says 
> "Writing entire db - /some/path/to/suck.db". 
> Where/how does suck.db fit in this process? 
> Thanks.
> --
> Alper At?c?
> PGP key @ http://sks.dnsalias.net:11371/pks/lookup?op=index&search=0xB824F550


-- 
bobyetman@comcast.net (Robert A. Yetman)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads