commit:     c53a6004192d8b595c7a7ad0b24e23ac2b922249
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 16 07:42:33 2020 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Thu Apr 16 07:43:00 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c53a6004

sys-libs/newlib: add early error for msp430

Reported-by: tomtom69
Bug: https://bugs.gentoo.org/717610
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 sys-libs/newlib/newlib-3.3.0.ebuild | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/sys-libs/newlib/newlib-3.3.0.ebuild 
b/sys-libs/newlib/newlib-3.3.0.ebuild
index db1a3fad9cf..95217157d87 100644
--- a/sys-libs/newlib/newlib-3.3.0.ebuild
+++ b/sys-libs/newlib/newlib-3.3.0.ebuild
@@ -48,6 +48,13 @@ pkg_setup() {
                        *) die "Use sys-devel/crossdev to build a newlib 
toolchain" ;;
                esac
        fi
+
+       case ${CTARGET} in
+               msp430*)
+                       # bug #717610
+                       die "gcc on ${CTARGET} needs older newlib. Use 
newlib-3.1.0."
+                       ;;
+       esac
 }
 
 src_configure() {

Reply via email to