Skip to content

Instantly share code, notes, and snippets.

@EvanCarroll
Created June 18, 2009 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EvanCarroll/132022 to your computer and use it in GitHub Desktop.
Save EvanCarroll/132022 to your computer and use it in GitHub Desktop.
I'm looking to solve a long standing bug, here is a brief overview.
DESCRIPTION:
* BUG ID: 130376
* LINK: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=130376
* PROBLEM: Prevents using cpanp and cpan to update system
The real issue here is this was done **totally** wrong. Someone forked over a module from cpan by polluting the namespace with save_parsers_debian {} and breaking upstreams save_parsers {}. This results in an update of XML::SAX (which will install to /usr/local) holding higher precedence than /usr in the perl load sequence and totally breaking dpkg.
My fix for this problem is fairly simple:
1) Move Debian-specific changes into XML::SAX::Debian a subclass of upstream XML::SAX
3) Update the /usr/bin/update-perl-sax-parsers to use XML::SAX::Debian
2) Package both separately. (libxml-sax-perl, libxml-sax-debian-perl)
Any input is appreciated, I'm not exactly sure on how to package perl modules for debian, but I can do the subclassing of XML::SAX and submit a tarball to CPAN or the list. I can also supply a patch to /usr/bin/update-perl-sax-parsers
--
Evan Carroll
System Lord of the Internets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment