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 2CA1615808F for ; Wed, 9 Feb 2022 11:25:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1B26FE08F1; Wed, 9 Feb 2022 11:25:15 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 F02EAE08F1 for ; Wed, 9 Feb 2022 11:25:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 smtp.gentoo.org (Postfix) with ESMTPS id 82743342CB7 for ; Wed, 9 Feb 2022 11:25:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6EB232D4 for ; Wed, 9 Feb 2022 11:25:10 +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: <1644405816.5872ad7b37126df3e8897f3db41e3853e6840d99.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-boot/tboot/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-boot/tboot/tboot-1.10.3.ebuild X-VCS-Directories: sys-boot/tboot/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 5872ad7b37126df3e8897f3db41e3853e6840d99 X-VCS-Branch: master Date: Wed, 9 Feb 2022 11:25:10 +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: 45c625be-f7e3-4947-acef-26382b6a1535 X-Archives-Hash: 8b2d0e7a806d5e0416912aa2272884fd commit: 5872ad7b37126df3e8897f3db41e3853e6840d99 Author: Christopher Byrne gmail com> AuthorDate: Mon Feb 7 20:17:58 2022 +0000 Commit: Sam James gentoo org> CommitDate: Wed Feb 9 11:23:36 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5872ad7b sys-boot/tboot: Die if tc-is-clang. Requires VLAIS which is gcc-only. Closes: https://bugs.gentoo.org/832020 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Christopher Byrne gmail.com> Closes: https://github.com/gentoo/gentoo/pull/24119 Signed-off-by: Sam James gentoo.org> sys-boot/tboot/tboot-1.10.3.ebuild | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/sys-boot/tboot/tboot-1.10.3.ebuild b/sys-boot/tboot/tboot-1.10.3.ebuild index cdb682a949ff..4cedba3fabfc 100644 --- a/sys-boot/tboot/tboot-1.10.3.ebuild +++ b/sys-boot/tboot/tboot-1.10.3.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -28,6 +28,16 @@ PATCHES=( "${FILESDIR}/${PN}-1.10.3-disable-Werror.patch" "${FILESDIR}/${PN}-1.10.3-disable-strip.patch" "${FILESDIR}/${PN}-1.10.3-dont-call-toolchain-directly.patch" ) +pkg_setup() { + if tc-is-clang; then + eerror "tboot is a freestanding application that uses gcc" + eerror "extensions in fundemental ways, include VLAIS" + eerror "(Variable Length Arrays in Structs) and will not" + eerror "compile with clang witout upstream action" + die "Cannot compile with clang. See bug #832020" + fi +} + src_configure() { tc-export AS LD CC CPP AR RANLIB NM OBJCOPY OBJDUMP STRIP