sci-chemistry/openbabel: allow gcc-8, bug #654800

openbabel explicitly whitelists list of major GCC versions.
The change by Milan allow gcc-8. Newer upstream versions
fixed the code to handle in in a more generic way:
00120f89cf

Fixed-by: milan hodoscek
Closes: https://bugs.gentoo.org/654800
Package-Manager: Portage-2.3.36, Repoman-2.3.9
This commit is contained in:
Sergei Trofimovich
2018-05-06 23:13:04 +01:00
parent efa8789d25
commit 4ec881ef10
2 changed files with 17 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
https://bugs.gentoo.org/654800
Fixed-by: milan hodoscek
diff --git a/../old/CMakeLists.txt b/CMakeLists.txt
index dc38d1b..801207e 100644
--- a/../old/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -239,7 +239,7 @@ check_type_size(clock_t CLOCK_T)
# Get the GCC version - from KDE4 cmake files
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}")
# gcc on mac just reports: "gcc (GCC) 3.3 20030304 ..." without the
# patch level, handle this here:
if (NOT _gcc_version)

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2017 Gentoo Foundation
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -31,6 +31,7 @@ DOCS=( AUTHORS NEWS.md README.md THANKS doc/dioxin.{inc,mol2} doc/README.{dioxin
PATCHES=(
"${FILESDIR}"/${PN}-2.3.2-gcc-6_and_7-backport.patch
"${FILESDIR}"/${P}-gcc-8.patch
)
pkg_setup() {