[kw-pm] compatibility between fedora and ubuntu perl packages?

Robert P. J. Day rpjday at crashcourse.ca
Thu May 27 13:10:19 PDT 2010


  i asked about this to some extent on the kwlug-disc list as it was
part of a bigger problem but this is specifically a perl issue.  i
took an rpm package and mangled it (via "alien") into a .deb package
and installed it on my ubuntu 10.04 system.  wasn't too hard as it was
a noarch package consisting mostly of perl.

  however, the top-level program fails because of this in a
lower-level module file:

...
use Archive::Tar;
use Archive::Zip qw( :ERROR_CODES :CONSTANTS );
...

  that second "use" statement fails since (and CMIIW as it's been a
while since i've worked with perl) the Zip.pm file on ubuntu is
actually here:

  /usr/lib/perl/5.10.1/IO/Compress/Zip.pm

in short, that hard coded "use" referring to Zip.pm is simply going to
fail on ubuntu since the perl packaging on ubuntu is not the same as
it is on fedora, where you *would* find the Zip.pm file in the "right"
place:

  /usr/lib/perl5/vendor_perl/5.10.0/Archive/Zip.pm

obviously(?), this could happen numerous times if someone's written a
mass of perl code for one distro -- there's no guarantee that any
other distro will have the same general module files in the same
place.

  is this normal?  what does one normally do with this, other than
just hacking the source until things match?

rday

-- 

========================================================================
Robert P. J. Day                               Waterloo, Ontario, CANADA

            Linux Consulting, Training and Kernel Pedantry.

Web page:                                          http://crashcourse.ca
Twitter:                                       http://twitter.com/rpjday
========================================================================


More information about the kw-pm mailing list