You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2014/07/23 00:02:05 UTC

git commit: refs/heads/0.3 - Be more lenient when parsing GCC version number

Repository: lucy
Updated Branches:
  refs/heads/0.3 041257dd6 -> 7a5184917


Be more lenient when parsing GCC version number

See RT #87910. Thanks to James Hull for the report.


Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/7a518491
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/7a518491
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/7a518491

Branch: refs/heads/0.3
Commit: 7a51849170ceb7c1e5cd503d1e5d2b2acc18eb4b
Parents: 041257d
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Wed Jul 23 00:00:07 2014 +0200
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Wed Jul 23 00:00:07 2014 +0200

----------------------------------------------------------------------
 clownfish/perl/buildlib/Clownfish/CFC/Build.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/7a518491/clownfish/perl/buildlib/Clownfish/CFC/Build.pm
----------------------------------------------------------------------
diff --git a/clownfish/perl/buildlib/Clownfish/CFC/Build.pm b/clownfish/perl/buildlib/Clownfish/CFC/Build.pm
index 91ee991..498ebdc 100644
--- a/clownfish/perl/buildlib/Clownfish/CFC/Build.pm
+++ b/clownfish/perl/buildlib/Clownfish/CFC/Build.pm
@@ -39,7 +39,7 @@ sub extra_ccflags {
         || $self->config('gccversion')
         || undef;
     if ( defined $gcc_version ) {
-        $gcc_version =~ /^(\d+(\.\d+))/
+        $gcc_version =~ /\b(\d+(\.\d+))/
             or die "Invalid GCC version: $gcc_version";
         $gcc_version = $1;
     }