← Back to team overview

pkg-perl-maintainers team mailing list archive

[Bug 13917] Re: CPAN's XML::SAX update conflicts with libxml-sax-perl's XML::SAX

 

** Description changed:

+ POSSIBLE WORKAROUND
+ -------------------------------------
+ 
+ If you're stuck in an upgrade you might be able to fool `dpkg`, by
+ placing "PERL5LIB=/usr/share/perl5" before the command you invoke for
+ the upgrade.
+ 
+ Such as "PERL5LIB=/usr/share/perl5 apt-get dist-upgrade", or
+ "PERL5LIB=/usr/share/perl5 do-release-upgrade"
+ 
+ SUMMARY
+ --------------
+ 
  BUG: XML::SAX can not be updated with CPAN/CPANP without totally
  breaking dpkg or other debian components that assume debian
  modifications are in XML::SAX.
+ 
+ 
+ DESCRIPTION OF BUG
+ ---------------------------------
  
  The currently distributed libxml-sax-perl conflicts with upstream
  XML::SAX. The debian developers hacked libxml-sax-perl's XML::SAX and
  added the function save_parsers_debian, and short circuited the sub
  save_parsers.
  
  The precedence order of perl's @INC demands /usr/local/share/perl5 holds
  precedence over /usr/share/perl5, so the newer vanilla version from CPAN
  will be used by all any include of XML::SAX. This reates a problem
  because the cpan version of XML::SAX lacks the Debian specific
  functionality.
  
  The fix is to remove Debian's pollution of XML::SAX class and subclass
  it (XML::SAX), into XML::SAX::Debian with the added Debian
  functionality. This will permit CPAN and CPANP updates of XML::SAX, and
  it will permit Debian guys to extend XML::SAX as they wish
  
  CLUE STRING:: Can't locate object method "save_parsers_debian" via package "XML::SAX"
  WORK AROUND:: `cpanp uninstall XML::SAX`
  
- 
- Currently this is in the README.debian:
- 
- Original CPAN Package vs. Debian Package
- ----------------------------------------
+ NOTES FROM README.debian: Original CPAN Package vs. Debian Package
+ ------------------------------------------------------------------------------------------------------------------
  
  Installing the original package from CPAN into /usr/local breaks the
  Debian package, since the former is in Perl's @INC before the latter.
  So, please don't do this.
  
  If there's a new version of XML::SAX simply file a wishlist against
  the Debian package and wait for the update.

** Description changed:

  POSSIBLE WORKAROUND
  -------------------------------------
  
  If you're stuck in an upgrade you might be able to fool `dpkg`, by
- placing "PERL5LIB=/usr/share/perl5" before the command you invoke for
- the upgrade.
+ placing "PERL5LIB=/usr/share/perl5" before the command you use to invoke
+ for the upgrade.
  
- Such as "PERL5LIB=/usr/share/perl5 apt-get dist-upgrade", or
- "PERL5LIB=/usr/share/perl5 do-release-upgrade"
+ Such as `PERL5LIB=/usr/share/perl5 apt-get dist-upgrade`, or
+ `PERL5LIB=/usr/share/perl5 do-release-upgrade`
  
  SUMMARY
  --------------
  
  BUG: XML::SAX can not be updated with CPAN/CPANP without totally
  breaking dpkg or other debian components that assume debian
  modifications are in XML::SAX.
- 
  
  DESCRIPTION OF BUG
  ---------------------------------
  
  The currently distributed libxml-sax-perl conflicts with upstream
  XML::SAX. The debian developers hacked libxml-sax-perl's XML::SAX and
  added the function save_parsers_debian, and short circuited the sub
  save_parsers.
  
  The precedence order of perl's @INC demands /usr/local/share/perl5 holds
  precedence over /usr/share/perl5, so the newer vanilla version from CPAN
  will be used by all any include of XML::SAX. This reates a problem
  because the cpan version of XML::SAX lacks the Debian specific
  functionality.
  
  The fix is to remove Debian's pollution of XML::SAX class and subclass
  it (XML::SAX), into XML::SAX::Debian with the added Debian
  functionality. This will permit CPAN and CPANP updates of XML::SAX, and
  it will permit Debian guys to extend XML::SAX as they wish
  
  CLUE STRING:: Can't locate object method "save_parsers_debian" via package "XML::SAX"
  WORK AROUND:: `cpanp uninstall XML::SAX`
  
  NOTES FROM README.debian: Original CPAN Package vs. Debian Package
  ------------------------------------------------------------------------------------------------------------------
  
  Installing the original package from CPAN into /usr/local breaks the
  Debian package, since the former is in Perl's @INC before the latter.
  So, please don't do this.
  
  If there's a new version of XML::SAX simply file a wishlist against
  the Debian package and wait for the update.

-- 
CPAN's XML::SAX update conflicts with libxml-sax-perl's XML::SAX
https://bugs.launchpad.net/bugs/13917
You received this bug notification because you are a member of Debian
Perl Group, which is subscribed to libxml-sax-perl in ubuntu.