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 47BC715800F for ; Fri, 13 Jan 2023 05:56:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8DA4AE0950; Fri, 13 Jan 2023 05:56:01 +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 4FC22E0950 for ; Fri, 13 Jan 2023 05:56:01 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2D7D4335D02 for ; Fri, 13 Jan 2023 05:56:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 98B287F2 for ; Fri, 13 Jan 2023 05:55:58 +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: <1673589334.be4af79203e951268c0f3bf2dc1dce1496bbc16f.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/clang-common/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-devel/clang-common/clang-common-15.0.6-r1.ebuild sys-devel/clang-common/clang-common-16.0.0_pre20230107.ebuild X-VCS-Directories: sys-devel/clang-common/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: be4af79203e951268c0f3bf2dc1dce1496bbc16f X-VCS-Branch: master Date: Fri, 13 Jan 2023 05:55:58 +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: 41089d79-0260-4270-b6b8-f37d4251a951 X-Archives-Hash: 6ab37accf23ccc72c1a8ed343ae990d5 commit: be4af79203e951268c0f3bf2dc1dce1496bbc16f Author: Sam James gentoo org> AuthorDate: Fri Jan 13 05:55:34 2023 +0000 Commit: Sam James gentoo org> CommitDate: Fri Jan 13 05:55:34 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be4af792 sys-devel/clang-common: backport .cfg commentary update Signed-off-by: Sam James gentoo.org> sys-devel/clang-common/clang-common-15.0.6-r1.ebuild | 3 +++ sys-devel/clang-common/clang-common-16.0.0_pre20230107.ebuild | 3 +++ 2 files changed, 6 insertions(+) diff --git a/sys-devel/clang-common/clang-common-15.0.6-r1.ebuild b/sys-devel/clang-common/clang-common-15.0.6-r1.ebuild index 7ec66f0dd663..047c2afbd37e 100644 --- a/sys-devel/clang-common/clang-common-15.0.6-r1.ebuild +++ b/sys-devel/clang-common/clang-common-15.0.6-r1.ebuild @@ -91,6 +91,8 @@ src_install() { # Baseline hardening (bug #851111) newins - gentoo-hardened.cfg <<-EOF + # Some of these options are added unconditionally, regardless of + # USE=hardened, for parity with sys-devel/gcc. -fstack-clash-protection -fstack-protector-strong -fPIE @@ -113,6 +115,7 @@ src_install() { if use hardened ; then cat >> "${ED}/etc/clang/gentoo-hardened.cfg" <<-EOF || die + # Options below are conditional on USE=hardened. -D_GLIBCXX_ASSERTIONS # Analogue to GLIBCXX_ASSERTIONS diff --git a/sys-devel/clang-common/clang-common-16.0.0_pre20230107.ebuild b/sys-devel/clang-common/clang-common-16.0.0_pre20230107.ebuild index 9fe06f311bb7..6f1eacac9cc2 100644 --- a/sys-devel/clang-common/clang-common-16.0.0_pre20230107.ebuild +++ b/sys-devel/clang-common/clang-common-16.0.0_pre20230107.ebuild @@ -91,6 +91,8 @@ src_install() { # Baseline hardening (bug #851111) newins - gentoo-hardened.cfg <<-EOF + # Some of these options are added unconditionally, regardless of + # USE=hardened, for parity with sys-devel/gcc. -fstack-clash-protection -fstack-protector-strong -fPIE @@ -113,6 +115,7 @@ src_install() { if use hardened ; then cat >> "${ED}/etc/clang/gentoo-hardened.cfg" <<-EOF || die + # Options below are conditional on USE=hardened. -D_GLIBCXX_ASSERTIONS # Analogue to GLIBCXX_ASSERTIONS