commit:     08cd938b3b9365816248b471c0d316c7763a9e72
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sun Feb  9 10:56:42 2020 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Feb  9 10:56:42 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08cd938b

sci-chemistry/openbabel: Fix broken GCC version detection

Closes: https://bugs.gentoo.org/696066
Package-Manager: Portage-2.3.87, Repoman-2.3.20
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 sci-chemistry/openbabel/files/openbabel-2.4.1-gcc-8.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-chemistry/openbabel/files/openbabel-2.4.1-gcc-8.patch 
b/sci-chemistry/openbabel/files/openbabel-2.4.1-gcc-8.patch
index 632ffa86761..a4aa3947f2e 100644
--- a/sci-chemistry/openbabel/files/openbabel-2.4.1-gcc-8.patch
+++ b/sci-chemistry/openbabel/files/openbabel-2.4.1-gcc-8.patch
@@ -9,7 +9,7 @@ index dc38d1b..801207e 100644
  if(CMAKE_COMPILER_IS_GNUCXX)
    exec_program(${CMAKE_C_COMPILER} ARGS --version OUTPUT_VARIABLE 
_gcc_version_info)
 -  string(REGEX MATCH "[34567]\\.[0-9]\\.[0-9]" _gcc_version 
"${_gcc_version_info}")
-+  string(REGEX MATCH "[345678]\\.[0-9]\\.[0-9]" _gcc_version 
"${_gcc_version_info}")
++  string(REGEX MATCH "[3456789]\\.[0-9]\\.[0-9]" _gcc_version 
"${_gcc_version_info}")
    # gcc on mac just reports: "gcc (GCC) 3.3 20030304 ..." without the
    # patch level, handle this here:
    if (NOT _gcc_version)

Reply via email to