FS#26357 - [perl-xml-sax]

Attached to Project: Arch Linux
Opened by Vladimir (_v_l) - Sunday, 09 October 2011, 14:28 GMT
Last edited by Giovanni Scafora (giovanni) - Monday, 10 October 2011, 10:32 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Giovanni Scafora (giovanni)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

First of all, I hope this is right package to report.

Description:
After upgrading package 'perl-xml-sax' to version 0.99 package 'docbook2x' stops to work with message:

/usr/bin/db2x_xsltproc: you must specify exactly one source document
Can't locate XML/SAX/Exception.pm in @INC (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl .) at /usr/share/perl5/vendor_perl/XML/SAX/ParserFactory.pm line 12.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/XML/SAX/ParserFactory.pm line 12.
Compilation failed in require at /usr/bin/db2x_manxml line 2413.
BEGIN failed--compilation aborted at /usr/bin/db2x_manxml line 2413.

Before upgrade it works fine. I even try to rebuild docbook2x package manually but it failed.

Additional info:
perl-xml-sax: 0.99-1
docbook2x: 0.8.8-9



Steps to reproduce:
Install 1 and 2 packages, try simply
$ docbook2man

Error message will appear.
This task depends upon

Closed by  Giovanni Scafora (giovanni)
Monday, 10 October 2011, 10:32 GMT
Reason for closing:  Fixed
Comment by Gergely Daróczi (daroczig) - Sunday, 09 October 2011, 15:10 GMT
The same problem occurs on my system also.

Installing perl-xml-sax is run fine, but get an error at the end saying: "the command was not run succesfuly".

Running: `sudo pacman -Svv perl-xml-sax` returns (sorry, it is Hungarian):

Root : /
Conf File : /etc/pacman.conf
DB Path : /var/lib/pacman/
Cache Dirs: /var/cache/pacman/pkg/
Lock File : /var/lib/pacman/db.lck
Log File : /var/log/pacman.log
Targets : perl-xml-sax
figyelmeztetés: a(z) perl-xml-sax-0.99-1 naprakész -- újratelepítés
függőségek feloldása...
belső ütközések keresése...

Célok (1): perl-xml-sax-0.99-1 [0,04 MB]

Teljes letöltendő méret: 0,00 MB
Teljes telepített méret: 0,16 MB

Kezdődhet a telepítés? [I/n] I
(1/1) csomagok integritásának ellenőrzése [-----------------------------------------------------------------------] 100%
(1/1) fájlütközések vizsgálata [-----------------------------------------------------------------------] 100%
(1/1) frissítés: perl-xml-sax [-----------------------------------------------------------------------] 100%
hiba: a parancs nem futott le sikeresen

The problem is definitely with the following command in the package's `.INSTALL`: `perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()"` which returns:

Can't locate XML/SAX/Exception.pm in @INC (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl .) at /usr/share/perl5/vendor_perl/XML/SAX/ParserFactory.pm line 12.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/XML/SAX/ParserFactory.pm line 12.
Compilation failed in require at /usr/share/perl5/vendor_perl/XML/SAX.pm line 18.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/XML/SAX.pm line 18.
Compilation failed in require.
BEGIN failed--compilation aborted.

Comment by Vladimir (_v_l) - Sunday, 09 October 2011, 15:20 GMT
It is strange, because on my system:

$ LANG=C sudo pacman -Svv perl-xml-sax

Root : /
Conf File : /etc/pacman.conf
DB Path : /var/lib/pacman/
Cache Dirs: /var/cache/pacman/pkg/
Lock File : /var/lib/pacman/db.lck
Log File : /var/log/pacman.log
Targets : perl-xml-sax
warning: perl-xml-sax-0.99-1 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...

Targets (1): perl-xml-sax-0.99-1

Total Download Size: 0.00 MB
Total Installed Size: 0.16 MB

Proceed with installation? [Y/n]
(1/1) checking package integrity [########################################################################################] 100%
(1/1) checking for file conflicts [########################################################################################] 100%
(1/1) upgrading perl-xml-sax

Anyway, thanks, but I could check PKGBUILD only tomorrow (too late today).
Comment by Vladimir (_v_l) - Sunday, 09 October 2011, 15:35 GMT
Seems, I found the source for _my_ problem: https://rt.cpan.org/Public/Bug/Display.html?id=57238

So, it seems that the problem with 'docbook2x' package, it should depends on 'perl-xml-sax-base' (that package don't exist right now) in order to work properly.

From 'Changes' on http://search.cpan.org/~grantm/XML-SAX-Base-1.08/

================================ 8< ================================
1.05 Mon Sep 05 2011
- Re-released separately from XML-SAX distribution
- tweak to suppress benign warning (released 2007-02-08 as part of XML-SAX 0.15)
================================ 8< ================================

IMHO, this bug ticket should be closed and opened as feature (package) request.
Comment by James Hunt (brandnewmath) - Monday, 10 October 2011, 09:11 GMT
The change to XML-SAX also inflicts XML-LibXML with the same errors (I posted about this in the forums: https://bbs.archlinux.org/viewtopic.php?id=128053). I'm not sure this is the right place to post this, but I made a working PKGBUILD for a perl-xml-sax-base package and it's in the AUR now (https://aur.archlinux.org/packages.php?ID=53039) if that helps anyone.
Comment by Gergely Daróczi (daroczig) - Monday, 10 October 2011, 10:08 GMT
Thank you @James Hunt, that (installing the abse package from AUR) works right here too.

Loading...