On Thursday 21 June 2007 05:24:10 am Daniel Leidert wrote:
> Am Donnerstag, den 21.06.2007, 11:07 +0200 schrieb Daniel Leidert:
> > Could you do me a favour and upload/send me your pbuilderrc file? I
> > checked your base.tgz without finding a special difference. So I'm
> > wondering, why the build(s) fail(s) for you, but work(s) for me.
>
> I tried to build libxml-simple-perl and slony1 in your base.tgz and it
> works just fine. Both builds succeed.
>
> Regards, Daniel

I just did some more investigation, and I think I may have finally found out 
what's going on.  Try creating a filesystem image from scratch to loopback 
mount and build in, and make sure it's an ext3 filesystem with the dir_index 
option enabled (which is the default for new filesystems created with mke2fs 
from sid, lenny, or etch).  Either that or enable it on the 
current /var/cache/pbuildd partition with "tune2fs -O 
dir_index /dev/whatever" -- it's safe to do that even on a mounted 
filesystem.  I'm guessing that's probably the relevant difference between our 
systems (and incidentally a new installation I created on another system here 
which also reproduced the bug).

What I think is happening is: update-perl-sax-parsers seems to depend on the 
entries of /etc/perl/XML/SAX/ParserDetails.d to be in the order of creation.  
But with the dir_index option enabled, instead the hash of XML::SAX::PurePerl 
happens to be last, so that's what gets put last 
in /etc/perl/XML/SAX/ParserDetails.ini.  And the last entry appears to be the 
one interpreted as the default.  Which is just brain damaged -- even if it 
*could* depend on a certain filesystem order, that would mean whichever SAX 
parser package happens to get installed last gets to be the default.

In a quick test, the order of parsers in 
my /etc/perl/XML/SAX/ParserDetails.ini is:

XML::LibXML::SAX::Parser
XML::LibXML::SAX
XML::SAX::Expat
XML::SAX::PurePerl

Assuming you can reproduce the bugs with this additional information, I 
propose we fix the problem by assigning a priority to each parser and making 
update-perl-sax-parsers use priorities instead of the filesystem order.
-- 
Daniel Schepler


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

Reply via email to