diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2020-05-17 10:32:23 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2020-05-17 10:33:35 +0100 |
commit | 30acdae94828f74ba9a4c0702bdb1d8aec447c0d (patch) | |
tree | fc704d65375de104576ddbb216cffec1097ca170 /sys-libs/newlib | |
parent | x11-misc/xscreensaver: Stable (diff) | |
download | gentoo-30acdae94828f74ba9a4c0702bdb1d8aec447c0d.tar.gz gentoo-30acdae94828f74ba9a4c0702bdb1d8aec447c0d.tar.bz2 gentoo-30acdae94828f74ba9a4c0702bdb1d8aec447c0d.zip |
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 <slyfox@gentoo.org>
Diffstat (limited to 'sys-libs/newlib')
-rw-r--r-- | sys-libs/newlib/newlib-3.3.0.ebuild | 6 | ||||
-rw-r--r-- | sys-libs/newlib/newlib-9999.ebuild | 9 |
2 files changed, 13 insertions, 2 deletions
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() { |