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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7E9F9158012 for ; Mon, 12 Sep 2022 18:33:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 91FCFE09A2; Mon, 12 Sep 2022 18:33:28 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7562AE09A5 for ; Mon, 12 Sep 2022 18:33:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AE78E340E7A for ; Mon, 12 Sep 2022 18:33:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CF3F95D7 for ; Mon, 12 Sep 2022 18:33:25 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1663007591.99e02b21ba6dd898a7680ad8ceb591efa142e7eb.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/toolchain.eclass X-VCS-Directories: eclass/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 99e02b21ba6dd898a7680ad8ceb591efa142e7eb X-VCS-Branch: master Date: Mon, 12 Sep 2022 18:33:25 +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: 062dee19-38bf-4ab7-8d39-eeb71b15663a X-Archives-Hash: 8b38e6b769b548e7e79642585a721355 commit: 99e02b21ba6dd898a7680ad8ceb591efa142e7eb Author: Sam James gentoo org> AuthorDate: Mon Sep 12 18:31:44 2022 +0000 Commit: Sam James gentoo org> CommitDate: Mon Sep 12 18:33:11 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99e02b21 toolchain.eclass: BDEPEND on an Ada compiler Necessary but not sufficient. Needs a pkg_setup/pkg_pretend check for whether the active compiler supports Ada still, just like D needs this too (which isn't done either). Signed-off-by: Sam James gentoo.org> eclass/toolchain.eclass | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 4e023ffb65d0..71342765c78e 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -335,6 +335,14 @@ if tc_has_feature valgrind ; then BDEPEND+=" valgrind? ( dev-util/valgrind )" fi +# TODO: Add a pkg_setup & pkg_pretend check for whether the active compiler +# supports Ada. +if tc_has_feature ada ; then + BDEPEND+=" ada? ( || ( sys-devel/gcc[ada] dev-lang/gnat-gpl[ada] ) )" +fi + +# TODO: Add a pkg_setup & pkg_pretend check for whether the active compiler +# supports D. if tc_has_feature d && tc_version_is_at_least 12.0 ; then # D in 12+ is self-hosting and needs D to bootstrap. # TODO: package some binary we can use, like for Ada