You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl-cvs@perl.apache.org by go...@apache.org on 2005/09/21 21:39:39 UTC

svn commit: r290799 - /perl/modperl/trunk/lib/Apache2/Build.pm

Author: gozer
Date: Wed Sep 21 12:39:38 2005
New Revision: 290799

URL: http://svn.apache.org/viewcvs?rev=290799&view=rev
Log:
When detecting gcc version, we need to filter out
the cruft that's _not_ the version number.

On my OSX box, for instance:
 $Config{gccversion} = '3.3 20030304 (Apple Computer, Inc. build 1809)';

Modified:
    perl/modperl/trunk/lib/Apache2/Build.pm

Modified: perl/modperl/trunk/lib/Apache2/Build.pm
URL: http://svn.apache.org/viewcvs/perl/modperl/trunk/lib/Apache2/Build.pm?rev=290799&r1=290798&r2=290799&view=diff
==============================================================================
--- perl/modperl/trunk/lib/Apache2/Build.pm (original)
+++ perl/modperl/trunk/lib/Apache2/Build.pm Wed Sep 21 12:39:38 2005
@@ -573,6 +573,9 @@
 
     return 0 unless $has_version;
 
+    #Only interested in leading version digits
+    $has_version =~ s/^([0-9.]+).*/$1/;
+
     my @tuples = split /\./, $has_version, 3;
     my @r_tuples = split /\./, $requested_version, 3;
     



Re: svn commit: r290799 - /perl/modperl/trunk/lib/Apache2/Build.pm

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
gozer@apache.org wrote:
>  $Config{gccversion} = '3.3 20030304 (Apple Computer, Inc. build 1809)';
Boo!

-- 
END
------------------------------------------------------------
     What doesn't kill us can only make us stronger.
                 Nothing is impossible.
				
Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/
Senior Developer / Liquidity Services, Inc.
   http://www.liquidityservicesinc.com
        http://www.liquidation.com
        http://www.uksurplus.com
        http://www.govliquidation.com
        http://www.gowholesale.com

Re: svn commit: r290799 - /perl/modperl/trunk/lib/Apache2/Build.pm

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
gozer@apache.org wrote:
>  $Config{gccversion} = '3.3 20030304 (Apple Computer, Inc. build 1809)';
Boo!

-- 
END
------------------------------------------------------------
     What doesn't kill us can only make us stronger.
                 Nothing is impossible.
				
Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/
Senior Developer / Liquidity Services, Inc.
   http://www.liquidityservicesinc.com
        http://www.liquidation.com
        http://www.uksurplus.com
        http://www.govliquidation.com
        http://www.gowholesale.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org