From: David Seifert Date: Sun, 9 Feb 2020 10:56:45 +0000 (+0100) Subject: sci-chemistry/openbabel-python: Fix broken GCC version detection X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=a52d2f5b6f39eb7cb7ab5e833981d5e872fc79e1;p=gentoo.git sci-chemistry/openbabel-python: Fix broken GCC version detection Closes: https://bugs.gentoo.org/664506 Package-Manager: Portage-2.3.87, Repoman-2.3.20 Signed-off-by: David Seifert --- diff --git a/sci-chemistry/openbabel-python/files/openbabel-python-2.3.2-gcc-6_and_7-backport.patch b/sci-chemistry/openbabel-python/files/openbabel-python-2.3.2-gcc-6_and_7-backport.patch index e23dc6020ee5..1624262e6982 100644 --- a/sci-chemistry/openbabel-python/files/openbabel-python-2.3.2-gcc-6_and_7-backport.patch +++ b/sci-chemistry/openbabel-python/files/openbabel-python-2.3.2-gcc-6_and_7-backport.patch @@ -7,7 +7,7 @@ index 0ee545cf..7f4b944e 100755 if(CMAKE_COMPILER_IS_GNUCXX) exec_program(${CMAKE_C_COMPILER} ARGS --version OUTPUT_VARIABLE _gcc_version_info) - string(REGEX MATCH "[345]\\.[0-9]\\.[0-9]" _gcc_version "${_gcc_version_info}") -+ string(REGEX MATCH "[34567]\\.[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)