commit: 4ec881ef10b4bcbffd3b56bc78a680b29cd59853 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> AuthorDate: Sun May 6 22:13:04 2018 +0000 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> CommitDate: Sun May 6 22:13:32 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ec881ef
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: https://github.com/openbabel/openbabel/commit/00120f89cf62b121c30d0b2a891b159e19b53624 Fixed-by: milan hodoscek Closes: https://bugs.gentoo.org/654800 Package-Manager: Portage-2.3.36, Repoman-2.3.9 sci-chemistry/openbabel/files/openbabel-2.4.1-gcc-8.patch | 15 +++++++++++++++ sci-chemistry/openbabel/openbabel-2.4.1.ebuild | 3 ++- 2 files changed, 17 insertions(+), 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 new file mode 100644 index 00000000000..632ffa86761 --- /dev/null +++ b/sci-chemistry/openbabel/files/openbabel-2.4.1-gcc-8.patch @@ -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) diff --git a/sci-chemistry/openbabel/openbabel-2.4.1.ebuild b/sci-chemistry/openbabel/openbabel-2.4.1.ebuild index 3719af8c81d..4606746af57 100644 --- a/sci-chemistry/openbabel/openbabel-2.4.1.ebuild +++ b/sci-chemistry/openbabel/openbabel-2.4.1.ebuild @@ -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() {
