Re: [rpm2html 1.5 patch] signature processing

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Mon Nov 06 2000 - 11:09:32 EST


On Mon, Nov 06, 2000 at 04:58:40PM +0100, Peter Hanecak wrote:
> Hello,
>
> On Mon, 6 Nov 2000, Daniel Veillard wrote:
>
> > Got a trouble with this:
> > checking for gpg... /usr/bin/gpg
> > checking for Fopen in -lrpmio... (cached) no
> > configure: error: *** librpmio not found
> >
> > http://rpmfind.net/linux/rpm2html/search.php?query=librpmio
> >
> > Hum, this is provided only with rpm > 4.0. this is a problem
> > in the sense that I still use 3.05 on the rpmfind machines. Is there
> > any reasonable way to bypass this requirement. A lot of people
> > are still running rpm 3.0X and this sounds like a serious limitation
>
> So now I know what actualy is this RPMIO stuff ... and double code in
> rpm2html.
>
> All machines I have access to have rpm-4.0 installed. IIRC all it is
> needed is to duplicate file operation code and do something like:
>
> Fopen -> fdOpen
> Fclose -> fdClose
> ...
>
> and make sure fdXXX macros are defined. So I try to do that and someone
> else can try it? :)

  okay

> > I'm concerned a priori (I will see if I can run this) about forking and
> > exec'in gpg for evey signed packages. I'm afraid this may slow down the
> > indexing significantly for large databases. A cache will be needed and
> > one clean way to do it would be to store the informations in the SQL database
> > when this one is configured. I will look at it once I manage to run this
> > on the French mirror.
>
> Well, cache for whole .html output generation would be fine. For now,
> on every run every package is inpected. With "resolving" things are even
> slower. Is that right?

  half, there is a check on the HTML page timestamp and the RPM timestamp
done to avoid this except in --force

> So it would be fine to:
> a) package is new? inspect it and make some note somewhere that we alredy

  Ho do you know it's new ?

> inspected it and that it has this modification time and/or this checksum
> b) did we alredy inspected this package? check midification time and/or
> checksum and if it did not changed, go to another package

  already done partly

> At the end, it will also benefit actual .html output because
> "Last-changed" header wont be changing everytime rpm2html is running. So
> caches and proxies will be happy ... :)

  Also handled if the html or rdf output is the same as the current page
it is not saved, keeping the timestamp and saving the caches.

> If anyone have any notes, ideas, ..., post then NOW while I'm not trying
> some stupid things.

  Just focuse on the rpmio/signature stuff since it seems you missed a few
things :-)

Daniel

-- 
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | libxml Gnome XML toolkit
Tel : +33 476 615 257  | 655, avenue de l'Europe | http://xmlsoft.org/
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | Rpmfind search site
 http://www.w3.org/People/all#veillard%40w3.org  | http://rpmfind.net/


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu May 10 2001 - 18:40:13 EDT