From 30acdae94828f74ba9a4c0702bdb1d8aec447c0d Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sun, 17 May 2020 10:32:23 +0100 Subject: sys-libs/newlib: allow gcc-10.1 for msp430-elf targets, bug #717610 Closes: https://bugs.gentoo.org/717610 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Sergei Trofimovich --- sys-libs/newlib/newlib-3.3.0.ebuild | 6 ++++-- sys-libs/newlib/newlib-9999.ebuild | 9 +++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) (limited to 'sys-libs/newlib') diff --git a/sys-libs/newlib/newlib-3.3.0.ebuild b/sys-libs/newlib/newlib-3.3.0.ebuild index 95217157d87a..6362c1259bd1 100644 --- a/sys-libs/newlib/newlib-3.3.0.ebuild +++ b/sys-libs/newlib/newlib-3.3.0.ebuild @@ -51,8 +51,10 @@ pkg_setup() { case ${CTARGET} in msp430*) - # bug #717610 - die "gcc on ${CTARGET} needs older newlib. Use newlib-3.1.0." + if ver_test $(gcc-version ${CTARGET}) -lt 10.1; then + # bug #717610 + die "gcc for ${CTARGET} has to be 10.1 or above" + fi ;; esac } diff --git a/sys-libs/newlib/newlib-9999.ebuild b/sys-libs/newlib/newlib-9999.ebuild index db1a3fad9cfb..6362c1259bd1 100644 --- a/sys-libs/newlib/newlib-9999.ebuild +++ b/sys-libs/newlib/newlib-9999.ebuild @@ -48,6 +48,15 @@ pkg_setup() { *) die "Use sys-devel/crossdev to build a newlib toolchain" ;; esac fi + + case ${CTARGET} in + msp430*) + if ver_test $(gcc-version ${CTARGET}) -lt 10.1; then + # bug #717610 + die "gcc for ${CTARGET} has to be 10.1 or above" + fi + ;; + esac } src_configure() { -- cgit v1.2.3-65-gdbad