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 B40F8158041 for ; Mon, 25 Mar 2024 19:23:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DB323E2A78; Mon, 25 Mar 2024 19:23:27 +0000 (UTC) Received: from tupone.it (tupone.it [95.216.99.101]) (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 pigeon.gentoo.org (Postfix) with ESMTPS id 942DFE2A69 for ; Mon, 25 Mar 2024 19:23:27 +0000 (UTC) Received: from alfredo.tupone.it (unknown [IPv6:2a01:e11:b:c630:2e0:4cff:fe69:49b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by tupone.it (Postfix) with ESMTPSA id B5887840058; Mon, 25 Mar 2024 20:23:25 +0100 (CET) Date: Mon, 25 Mar 2024 20:23:22 +0100 From: Alfredo Tupone To: gentoo-dev@lists.gentoo.org, toolchain@gentoo.org Subject: Re: [gentoo-dev] Subject: [PATCH] toolchain.eclass: ada related changes Message-ID: <20240325202322.0d3fb176@alfredo.tupone.it> In-Reply-To: <20240322191222.7089fc95@alfredo.tupone.it> References: <20240322191222.7089fc95@alfredo.tupone.it> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.39; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: 77ff92ab-c12f-4502-a41d-bb2a611a65dd X-Archives-Hash: a31196c2e5ba5e5091921df20fd515a8 I think the following should deserve attention: + prevAdaSLOT=$(gnatmake -v 2>&1 | sed -n '2 p' | sed 's:^[^0-9]*\([0-9]\+\).*:\1:' | sed 's:2021:10:' ) maybe there is a way to not use sed at all, or at least to not call it three times + die 'Ada cannot be built with a newer compiler' Is this good in a pkg_pretend ? All the time I tested gcc[ada] did not build with a new compiler