Bug#658702: libxml-sax-perl: update-perl-sax-parsers sometimes fails when called from old-prerm during squeeze->wheezy update

Andreas Beckmann debian at abeckmann.de
Sun Feb 5 12:37:54 UTC 2012


Package: libxml-sax-perl
Version: 0.99+dfsg-1
Severity: normal

Hi,

while I analyzed piuparts logs I noticed that sometimes the following
error occurs:

  Preparing to replace libxml-libxml-perl 1.70.ds-1 (using .../libxml-libxml-perl_1.88+dfsg-1+b1_amd64.deb) ...
  Can't locate File/Basename.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /usr/share/perl5/XML/SAX.pm line 15.
  BEGIN failed--compilation aborted at /usr/share/perl5/XML/SAX.pm line 15.
  Compilation failed in require at /usr/bin/update-perl-sax-parsers line 18.
  BEGIN failed--compilation aborted at /usr/bin/update-perl-sax-parsers line 18.
  dpkg: warning: subprocess old pre-removal script returned error exit status 2
  dpkg - trying script from the new package instead ...
  dpkg: ... it looks like that went OK.
  Unpacking replacement libxml-libxml-perl ...

This is not harmful as the installation succeeds, but eventually some
dependencies can be tightened to avoid this problem and noise.

The full log of upgrading libxml-simple-perl to 2.18-3 is attached, I
extracted the perl+xml packages:

  [...]
  Selecting previously unselected package libswitch-perl.
  (Reading database ... 7716 files and directories currently installed.)
  Unpacking libswitch-perl (from .../libswitch-perl_2.16-2_all.deb) ...
  Selecting previously unselected package libclass-isa-perl.
  Unpacking libclass-isa-perl (from .../libclass-isa-perl_0.36-3_all.deb) ...
  Preparing to replace perl-modules 5.10.1-17squeeze2 (using .../perl-modules_5.14.2-6_all.deb) ...
  Unpacking replacement perl-modules ...
  [...]
  Preparing to replace perl 5.10.1-17squeeze2 (using .../perl_5.14.2-6_amd64.deb) ...
  Unpacking replacement perl ...
  Preparing to replace libxml2 2.7.8.dfsg-2+squeeze1 (using .../libxml2_2.7.8.dfsg-5.1_amd64.deb) ...
  Unpacking replacement libxml2 ...
  Preparing to replace libxml-sax-perl 0.96+dfsg-2 (using .../libxml-sax-perl_0.99+dfsg-1_all.deb) ...
  Unpacking replacement libxml-sax-perl ...
  Selecting previously unselected package libxml-sax-base-perl.
  Unpacking libxml-sax-base-perl (from .../libxml-sax-base-perl_1.07-1_all.deb) ...
  [...]
  Preparing to replace libxml-libxml-perl 1.70.ds-1 (using .../libxml-libxml-perl_1.88+dfsg-1+b1_amd64.deb) ...
  Can't locate File/Basename.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /usr/share/perl5/XML/SAX.pm line 15.
  BEGIN failed--compilation aborted at /usr/share/perl5/XML/SAX.pm line 15.
  Compilation failed in require at /usr/bin/update-perl-sax-parsers line 18.
  BEGIN failed--compilation aborted at /usr/bin/update-perl-sax-parsers line 18.
  dpkg: warning: subprocess old pre-removal script returned error exit status 2
  dpkg - trying script from the new package instead ...
  dpkg: ... it looks like that went OK.
  Unpacking replacement libxml-libxml-perl ...
  [...]
  Preparing to replace perl-base 5.10.1-17squeeze2 (using .../perl-base_5.14.2-6_amd64.deb) ...
  Unpacking replacement perl-base ...
  Setting up perl-base (5.14.2-6) ...
  [...]
  Setting up libxml2 (2.7.8.dfsg-5.1) ...
  [...]
  Setting up libswitch-perl (2.16-2) ...
  Setting up perl-modules (5.14.2-6) ...
  Setting up perl (5.14.2-6) ...
  Setting up libxml-sax-base-perl (1.07-1) ...
  Setting up libxml-sax-perl (0.99+dfsg-1) ...
  update-perl-sax-parsers: Registering Perl SAX parser XML::SAX::PurePerl with priority 10...
  update-perl-sax-parsers: Updating overall Perl SAX parser modules info file...
  Setting up libxml-libxml-perl (1.88+dfsg-1+b1) ...
  update-perl-sax-parsers: Registering Perl SAX parser XML::LibXML::SAX::Parser with priority 50...
  update-perl-sax-parsers: Registering Perl SAX parser XML::LibXML::SAX with priority 50...
  update-perl-sax-parsers: Updating overall Perl SAX parser modules info file...

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libxml-simple-perl_2.18-3.log.gz
Type: application/x-gzip
Size: 16010 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20120205/c1b11a7a/attachment.bin>


More information about the pkg-perl-maintainers mailing list