From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7560A1382C5 for ; Sun, 17 May 2020 09:33:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 906EDE08A5; Sun, 17 May 2020 09:33:54 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 772BAE08A5 for ; Sun, 17 May 2020 09:33:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9BA8A34F77E for ; Sun, 17 May 2020 09:33:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2BE149C for ; Sun, 17 May 2020 09:33:50 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1589708015.30acdae94828f74ba9a4c0702bdb1d8aec447c0d.slyfox@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/newlib/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-libs/newlib/newlib-3.3.0.ebuild sys-libs/newlib/newlib-9999.ebuild X-VCS-Directories: sys-libs/newlib/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 30acdae94828f74ba9a4c0702bdb1d8aec447c0d X-VCS-Branch: master Date: Sun, 17 May 2020 09:33:50 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a2dab25f-b9ff-4b33-a0d2-bcf806cc86da X-Archives-Hash: cb3d73496b6b5614c5f69c6b25e14dc1 commit: 30acdae94828f74ba9a4c0702bdb1d8aec447c0d Author: Sergei Trofimovich gentoo org> AuthorDate: Sun May 17 09:32:23 2020 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Sun May 17 09:33:35 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30acdae9 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 gentoo.org> sys-libs/newlib/newlib-3.3.0.ebuild | 6 ++++-- 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 95217157d87..6362c1259bd 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 db1a3fad9cf..6362c1259bd 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() {