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
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
|
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
Monday, 11 April 2016, 17:19 GMT
Reason for closing: Fixed
Additional comments about closing: fix landed in perl-xml-libxml-2.0124-2
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?
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.$ 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