Update of /cvsroot/fink/fink/perlmod/Fink
In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv15616

Modified Files:
        ChangeLog PkgVersion.pm 
Log Message:
for perl 5.10.0 (and later?), change the $perlcmd to 
"/usr/bin/arch -%m perl5.10.0".  (This implies that we 
cannot have perl 5.10.0 on 10.4.)


Index: PkgVersion.pm
===================================================================
RCS file: /cvsroot/fink/fink/perlmod/Fink/PkgVersion.pm,v
retrieving revision 1.617
retrieving revision 1.618
diff -u -d -r1.617 -r1.618
--- PkgVersion.pm       21 Mar 2009 22:52:34 -0000      1.617
+++ PkgVersion.pm       29 Mar 2009 23:49:26 -0000      1.618
@@ -944,7 +944,7 @@
                # grab perl version, if present
                my ($perldirectory, $perlarchdir, $perlcmd) = 
$self->get_perl_dir_arch();
 
-               $pct_c = "PERL=$perlcmd PREFIX=\%p 
INSTALLPRIVLIB=\%p/lib/perl5$perldirectory 
INSTALLARCHLIB=\%p/lib/perl5$perldirectory/$perlarchdir 
INSTALLSITELIB=\%p/lib/perl5$perldirectory 
INSTALLSITEARCH=\%p/lib/perl5$perldirectory/$perlarchdir 
INSTALLMAN1DIR=\%p/share/man/man1 INSTALLMAN3DIR=\%p/share/man/man3 
INSTALLSITEMAN1DIR=\%p/share/man/man1 INSTALLSITEMAN3DIR=\%p/share/man/man3 
INSTALLBIN=\%p/bin INSTALLSITEBIN=\%p/bin INSTALLSCRIPT=\%p/bin ";
+               $pct_c = "PERL=\"$perlcmd\" PREFIX=\%p 
INSTALLPRIVLIB=\%p/lib/perl5$perldirectory 
INSTALLARCHLIB=\%p/lib/perl5$perldirectory/$perlarchdir 
INSTALLSITELIB=\%p/lib/perl5$perldirectory 
INSTALLSITEARCH=\%p/lib/perl5$perldirectory/$perlarchdir 
INSTALLMAN1DIR=\%p/share/man/man1 INSTALLMAN3DIR=\%p/share/man/man3 
INSTALLSITEMAN1DIR=\%p/share/man/man1 INSTALLSITEMAN3DIR=\%p/share/man/man3 
INSTALLBIN=\%p/bin INSTALLSITEBIN=\%p/bin INSTALLSCRIPT=\%p/bin ";
        } else {
                $pct_c = "--prefix=\%p ";
        }
@@ -5067,9 +5067,17 @@
 
        ### PERL= needs a full path or you end up with
        ### perlmods trying to run ../perl$perlversion
+    ### 
+    ### But when $perlversion is (at least?) 5.10.0, we call it
+    ### with /usr/bin/arch instead
+    ###
        my $perlcmd;
        if ($perlversion) {
-               $perlcmd = get_path('perl'.$perlversion);
+               if ($perlversion eq "5.10.0") {
+                       $perlcmd = "/usr/bin/arch -%m perl".$perlversion ;
+               } else {
+                       $perlcmd = get_path('perl'.$perlversion);
+               }
        } else {
                # Hardcode so it doesn't change as packages are installed, 
removed
                $perlcmd = "/usr/bin/perl";

Index: ChangeLog
===================================================================
RCS file: /cvsroot/fink/fink/perlmod/Fink/ChangeLog,v
retrieving revision 1.1579
retrieving revision 1.1580
diff -u -d -r1.1579 -r1.1580
--- ChangeLog   21 Mar 2009 22:52:34 -0000      1.1579
+++ ChangeLog   29 Mar 2009 23:49:26 -0000      1.1580
@@ -1,3 +1,9 @@
+2009-03-29  Dave Morrison  <[email protected]>
+
+       * PkgVersion.pm: for perl 5.10.0 (and later?), change the $perlcmd
+       to "/usr/bin/arch -%m perl5.10.0".  (This implies that we cannot
+       have perl 5.10.0 on 10.4.)
+
 2009-03-21  Dave Morrison  <[email protected]>
 
        * Config.pm, FinkVersion.pm.in, PkgVersion.pm, Services.pm: refactor 


------------------------------------------------------------------------------
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to