On Wed, 17 Sep 2008, Esteban Manchado Velázquez wrote:
> Cc'ing debian-release, seeking advice...
>
>     Intro for debian-release: this bug makes dhelp wait for potentially
> *hours* when upgrading (many packages). That means that if someone
> upgrades from Etch to Lenny, they will have to wait for a couple of hours
> for the dhelp postinst, while it's asking index++ to reindex all
> documents for all installed packages.
>
A full re-index can also be triggered in other ways, eg bug 497139.  I 
haven't tested it, but a restore from backup might be enough to confuse 
doc-base's ctime tracking.

>     This will happen to virtually everyone having dhelp installed if they
> dist-upgrade to Lenny. Or anyone doing any reasonably big upgrade for
> that matter.

It will only be significant for people who have install/upgrade lots of 
doc-files at a time.  

I expect most people with lots of doc-files either have doc-linux-html 
installed (64.1MB, 393 doc-base files, 85 min to index),  
doc-linux-nonfree-html installed (9961kB, 64 files, 16 mins) or lots of doc 
packages.  (doc-linux-text and doc-linux-nonfree-text don't seem to have 
any doc-base files).  

I actually think that the best work-around for Lenny would be 
Esteban Manchado Velázquez's suggestion in bug 497139 of *not* reindexing
documentation (just register the documents) when doc-base calls dhelp with
more than, say, 20 files.  (There is a cron.weekly job that should rebuild 
the index).  

That will hopefully prevent delays longer than about five minutes for each 
dpkg run, and yet still result in most packages being indexed during 
installation.  

Another alternative might be to stop using triggers for doc-base.  (I don't 
really understand the gains from registering/indexing multiple packages all 
at once, as compared to one index run per package.  Then the only long 
delay would be doc-linux-html, and people should expect that to take a 
while to index).

<snip>

In another email Ross Boylan wrote 
> I just did another upgrade (within testing) that took about 2 hours
> because of this problem.

I'm guessing that would have been the recent update of doc-linux to 
2008.08-1?

HTH
Andrew




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to