[Koha-bugs] [Bug 8742] Example uses perl 5.8 in Makefile.PL

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Sep 9 10:36:07 CEST 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8742

M. Tompsett <mtompset at hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |Needs Signoff
           Assignee|gmcharlt at gmail.com          |mtompset at hotmail.com

--- Comment #1 from M. Tompsett <mtompset at hotmail.com> ---
Created attachment 12079
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=12079&action=edit
Changed hardcoded path for a programmatic one.

Changed hardcoded /usr/share/perl/5.8 message to be based on:
   my @version = grep /\/usr\/share\/perl\//, @INC;
By doing a
   push @version, ('/usr/share/perl/5.10') if !$version[0];
If inexplicably the grep fails or @INC is empty, then there is a reasonable
default value.
   print "\nperl Makefile.PL PERL_MODULE_DIR=$version[0]\n\n";

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list