FS#41548 - [shutter] Requires package perl-xml-libxml

Attached to Project: Community Packages
Opened by Hong-Leong Ong (hongleong) - Wednesday, 13 August 2014, 01:49 GMT
Last edited by Felix Yan (felixonmars) - Monday, 11 April 2016, 17:19 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:

When package "perl-xml-libxml" is not installed, shutter complains of "Can't locate XML/LibXML/SAX.pm in @INC (you may need to install the XML::LibXML::SAX module)" from 2nd run onwards.


Additional info:

* community/shutter 0.92-1
* community/perl-xml-libxml 2.0116-2


Steps to reproduce:

With the package "perl-xml-libxml" not installed, the 1st run of shutter after a fresh installation will be fine. When shutter is exited and restarted, a dialog will pop up with this error message:

Settings could not be restored!
Can't locate XML/LibXML/SAX.pm in @INC (you may need to install the XML::LibXML::SAX module) (@INC contains: /usr/share/shutter/resources/modules /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 (eval 25) line 1.

When above dialog is dismissed, another will pop up with error message:

Account-settings could not be restored!
Can't locate XML/LibXML/SAX.pm in @INC (you may need to install the XML::LibXML::SAX module) (@INC contains: /usr/share/shutter/resources/modules /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 (eval 26) line 1.

When above dialog is dismissed, the shutter window will appear with another pop up, showing this error message:

Session could not be restored!
Can't locate XML/LibXML/SAX.pm in @INC (you may need to install the XML::LibXML::SAX module) (@INC contains: /usr/share/shutter/resources/modules /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 (eval 27) line 1.

When shutter is exited and restarted, all the error messages will be shown again.

This problem goes away after installing the package "perl-xml-libxml". Should it be configured as a dependency?
This task depends upon

Closed by  Felix Yan (felixonmars)
Monday, 11 April 2016, 17:19 GMT
Reason for closing:  Fixed
Additional comments about closing:  fix landed in perl-xml-libxml-2.0124-2
Comment by Felix Yan (felixonmars) - Thursday, 14 August 2014, 00:41 GMT
Thanks for the report.

So there are two problems here:

- Shutter should depend on perl-xml-simple instead of libxml-perl
- perl-xml-simple should depend on perl-xml-sax-expat as described in its META

Although it turns out that perl-xml-libxml could serve the same purpose [1], I'm going to follow upstream's META, so perl-xml-sax-expat goes into the dependency tree instead of perl-xml-libxml.

Both were fixed now.

[1] http://search.cpan.org/dist/XML-Simple/lib/XML/Simple/FAQ.pod#Why_is_XML::Simple_so_slow?
Comment by Simon Legner (simon04) - Sunday, 17 January 2016, 23:01 GMT
Sorry, I don't think it's fixed (see  FS#47802 ). perm-xml-simple 2.22-1 depends on perl-xml-sax-expat. Having installed perl-xml-simple as well as perl-xml-sax-expat, I get the error dialog.
Comment by Simon Wydooghe (HyperBaton) - Monday, 21 March 2016, 09:11 GMT
I can confirm that I can only fix this by installing perl-xml-libxml.
Comment by Felix Yan (felixonmars) - Monday, 11 April 2016, 16:07 GMT
Please install perl-xml-libxml-2.0124-2 and remove it again to fix broken ParserDetails.ini. perl-xml-libxml will remain uninstalled and the problem should go away.
Comment by Simon Legner (simon04) - Monday, 11 April 2016, 17:04 GMT
Thank you, this seems to work. For reference, this is the content of the mentioned ParserDetails.ini:

$ cat /usr/share/perl5/vendor_perl/XML/SAX/ParserDetails.ini
[XML::SAX::PurePerl]
http://xml.org/sax/features/namespaces = 1

[XML::SAX::Expat]
http://xml.org/sax/features/namespaces = 1
http://xml.org/sax/features/external-general-entities = 1
http://xml.org/sax/features/external-parameter-entities = 1

Loading...