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 B9A1B158041 for ; Thu, 4 Apr 2024 16:50:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E5AED2BC01F; Thu, 4 Apr 2024 16:50:12 +0000 (UTC) Received: from smtp.gentoo.org (dev.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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C9B162BC01F for ; Thu, 4 Apr 2024 16:50:12 +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 022AC3430AA for ; Thu, 4 Apr 2024 16:50:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6699A167A for ; Thu, 4 Apr 2024 16:50:10 +0000 (UTC) From: "Mike Gilbert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Gilbert" Message-ID: <1712249346.cec5808b1344015de6492ef6728fde3c6040b35f.floppym@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-17.0.6-r4.ebuild sys-devel/clang-common/clang-common-17.0.6-r5.ebuild sys-devel/clang-common/clang-common-18.1.2-r3.ebuild sys-devel/clang-common/clang-common-18.1.2-r4.ebuild sys-devel/clang-common/clang-common-19.0.0.9999.ebuild sys-devel/clang-common/clang-common-19.0.0_pre20240322-r1.ebuild sys-devel/clang-common/clang-common-19.0.0_pre20240322-r2.ebuild sys-devel/clang-common/clang-common-19.0.0_pre20240330-r1.ebuild sys-devel/clang-common/clang-common-19.0.0_pre20240330.ebuild X-VCS-Directories: sys-devel/clang-common/ X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: cec5808b1344015de6492ef6728fde3c6040b35f X-VCS-Branch: master Date: Thu, 4 Apr 2024 16:50: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: b167d69d-fb4f-4d1f-a87e-67747c9c6416 X-Archives-Hash: 01c8432215022661ea3b898f46eb1236 commit: cec5808b1344015de6492ef6728fde3c6040b35f Author: Mike Gilbert gentoo org> AuthorDate: Wed Apr 3 18:58:17 2024 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Thu Apr 4 16:49:06 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cec5808b sys-devel/clang-common: apply cet config for x86_64 only Closes: https://bugs.gentoo.org/928460 Signed-off-by: Mike Gilbert gentoo.org> ...-17.0.6-r4.ebuild => clang-common-17.0.6-r5.ebuild} | 18 +++++++++++++----- ...-18.1.2-r3.ebuild => clang-common-18.1.2-r4.ebuild} | 18 +++++++++++++----- sys-devel/clang-common/clang-common-19.0.0.9999.ebuild | 18 +++++++++++++----- ...build => clang-common-19.0.0_pre20240322-r2.ebuild} | 18 +++++++++++++----- ...build => clang-common-19.0.0_pre20240330-r1.ebuild} | 18 +++++++++++++----- 5 files changed, 65 insertions(+), 25 deletions(-) diff --git a/sys-devel/clang-common/clang-common-17.0.6-r4.ebuild b/sys-devel/clang-common/clang-common-17.0.6-r5.ebuild similarity index 96% rename from sys-devel/clang-common/clang-common-17.0.6-r4.ebuild rename to sys-devel/clang-common/clang-common-17.0.6-r5.ebuild index f152ec3f96ec..e736620feb37 100644 --- a/sys-devel/clang-common/clang-common-17.0.6-r4.ebuild +++ b/sys-devel/clang-common/clang-common-17.0.6-r5.ebuild @@ -73,6 +73,11 @@ _doclang_cfg() { @gentoo-common.cfg @gentoo-common-ld.cfg EOF + if [[ ${triple} == x86_64* ]]; then + cat >> "${ED}/etc/clang/${tool}.cfg" <<-EOF || die + @gentoo-cet.cfg + EOF + fi done if use kernel_Darwin; then @@ -85,6 +90,11 @@ _doclang_cfg() { # This configuration file is used by the ${triple}-clang-cpp driver. @gentoo-common.cfg EOF + if [[ ${triple} == x86_64* ]]; then + cat >> "${ED}/etc/clang/${triple}-clang-cpp.cfg" <<-EOF || die + @gentoo-cet.cfg + EOF + fi # Install symlinks for triples with other vendor strings since some # programs insist on mangling the triple. @@ -175,11 +185,9 @@ src_install() { -include "${EPREFIX}/usr/include/gentoo/fortify.h" EOF - if use amd64; then - cat >> "${ED}/etc/clang/gentoo-hardened.cfg" <<-EOF || die - -Xarch_host -fcf-protection=$(usex cet full none) - EOF - fi + newins - gentoo-cet.cfg <<-EOF + -Xarch_host -fcf-protection=$(usex cet full none) + EOF if use kernel_Darwin; then newins - gentoo-hardened-ld.cfg <<-EOF diff --git a/sys-devel/clang-common/clang-common-18.1.2-r3.ebuild b/sys-devel/clang-common/clang-common-18.1.2-r4.ebuild similarity index 96% rename from sys-devel/clang-common/clang-common-18.1.2-r3.ebuild rename to sys-devel/clang-common/clang-common-18.1.2-r4.ebuild index fff63838526d..b7d4720e0e22 100644 --- a/sys-devel/clang-common/clang-common-18.1.2-r3.ebuild +++ b/sys-devel/clang-common/clang-common-18.1.2-r4.ebuild @@ -73,6 +73,11 @@ _doclang_cfg() { @gentoo-common.cfg @gentoo-common-ld.cfg EOF + if [[ ${triple} == x86_64* ]]; then + cat >> "${ED}/etc/clang/${tool}.cfg" <<-EOF || die + @gentoo-cet.cfg + EOF + fi done if use kernel_Darwin; then @@ -85,6 +90,11 @@ _doclang_cfg() { # This configuration file is used by the ${triple}-clang-cpp driver. @gentoo-common.cfg EOF + if [[ ${triple} == x86_64* ]]; then + cat >> "${ED}/etc/clang/${triple}-clang-cpp.cfg" <<-EOF || die + @gentoo-cet.cfg + EOF + fi # Install symlinks for triples with other vendor strings since some # programs insist on mangling the triple. @@ -175,11 +185,9 @@ src_install() { -include "${EPREFIX}/usr/include/gentoo/fortify.h" EOF - if use amd64; then - cat >> "${ED}/etc/clang/gentoo-hardened.cfg" <<-EOF || die - -Xarch_host -fcf-protection=$(usex cet full none) - EOF - fi + newins - gentoo-cet.cfg <<-EOF + -Xarch_host -fcf-protection=$(usex cet full none) + EOF if use kernel_Darwin; then newins - gentoo-hardened-ld.cfg <<-EOF diff --git a/sys-devel/clang-common/clang-common-19.0.0.9999.ebuild b/sys-devel/clang-common/clang-common-19.0.0.9999.ebuild index 45196776694b..f260391ba4ab 100644 --- a/sys-devel/clang-common/clang-common-19.0.0.9999.ebuild +++ b/sys-devel/clang-common/clang-common-19.0.0.9999.ebuild @@ -72,6 +72,11 @@ _doclang_cfg() { @gentoo-common.cfg @gentoo-common-ld.cfg EOF + if [[ ${triple} == x86_64* ]]; then + cat >> "${ED}/etc/clang/${tool}.cfg" <<-EOF || die + @gentoo-cet.cfg + EOF + fi done if use kernel_Darwin; then @@ -84,6 +89,11 @@ _doclang_cfg() { # This configuration file is used by the ${triple}-clang-cpp driver. @gentoo-common.cfg EOF + if [[ ${triple} == x86_64* ]]; then + cat >> "${ED}/etc/clang/${triple}-clang-cpp.cfg" <<-EOF || die + @gentoo-cet.cfg + EOF + fi # Install symlinks for triples with other vendor strings since some # programs insist on mangling the triple. @@ -174,11 +184,9 @@ src_install() { -include "${EPREFIX}/usr/include/gentoo/fortify.h" EOF - if use amd64; then - cat >> "${ED}/etc/clang/gentoo-hardened.cfg" <<-EOF || die - -Xarch_host -fcf-protection=$(usex cet full none) - EOF - fi + newins - gentoo-cet.cfg <<-EOF + -Xarch_host -fcf-protection=$(usex cet full none) + EOF if use kernel_Darwin; then newins - gentoo-hardened-ld.cfg <<-EOF diff --git a/sys-devel/clang-common/clang-common-19.0.0_pre20240330.ebuild b/sys-devel/clang-common/clang-common-19.0.0_pre20240322-r2.ebuild similarity index 96% rename from sys-devel/clang-common/clang-common-19.0.0_pre20240330.ebuild rename to sys-devel/clang-common/clang-common-19.0.0_pre20240322-r2.ebuild index 45196776694b..f260391ba4ab 100644 --- a/sys-devel/clang-common/clang-common-19.0.0_pre20240330.ebuild +++ b/sys-devel/clang-common/clang-common-19.0.0_pre20240322-r2.ebuild @@ -72,6 +72,11 @@ _doclang_cfg() { @gentoo-common.cfg @gentoo-common-ld.cfg EOF + if [[ ${triple} == x86_64* ]]; then + cat >> "${ED}/etc/clang/${tool}.cfg" <<-EOF || die + @gentoo-cet.cfg + EOF + fi done if use kernel_Darwin; then @@ -84,6 +89,11 @@ _doclang_cfg() { # This configuration file is used by the ${triple}-clang-cpp driver. @gentoo-common.cfg EOF + if [[ ${triple} == x86_64* ]]; then + cat >> "${ED}/etc/clang/${triple}-clang-cpp.cfg" <<-EOF || die + @gentoo-cet.cfg + EOF + fi # Install symlinks for triples with other vendor strings since some # programs insist on mangling the triple. @@ -174,11 +184,9 @@ src_install() { -include "${EPREFIX}/usr/include/gentoo/fortify.h" EOF - if use amd64; then - cat >> "${ED}/etc/clang/gentoo-hardened.cfg" <<-EOF || die - -Xarch_host -fcf-protection=$(usex cet full none) - EOF - fi + newins - gentoo-cet.cfg <<-EOF + -Xarch_host -fcf-protection=$(usex cet full none) + EOF if use kernel_Darwin; then newins - gentoo-hardened-ld.cfg <<-EOF diff --git a/sys-devel/clang-common/clang-common-19.0.0_pre20240322-r1.ebuild b/sys-devel/clang-common/clang-common-19.0.0_pre20240330-r1.ebuild similarity index 96% rename from sys-devel/clang-common/clang-common-19.0.0_pre20240322-r1.ebuild rename to sys-devel/clang-common/clang-common-19.0.0_pre20240330-r1.ebuild index 45196776694b..f260391ba4ab 100644 --- a/sys-devel/clang-common/clang-common-19.0.0_pre20240322-r1.ebuild +++ b/sys-devel/clang-common/clang-common-19.0.0_pre20240330-r1.ebuild @@ -72,6 +72,11 @@ _doclang_cfg() { @gentoo-common.cfg @gentoo-common-ld.cfg EOF + if [[ ${triple} == x86_64* ]]; then + cat >> "${ED}/etc/clang/${tool}.cfg" <<-EOF || die + @gentoo-cet.cfg + EOF + fi done if use kernel_Darwin; then @@ -84,6 +89,11 @@ _doclang_cfg() { # This configuration file is used by the ${triple}-clang-cpp driver. @gentoo-common.cfg EOF + if [[ ${triple} == x86_64* ]]; then + cat >> "${ED}/etc/clang/${triple}-clang-cpp.cfg" <<-EOF || die + @gentoo-cet.cfg + EOF + fi # Install symlinks for triples with other vendor strings since some # programs insist on mangling the triple. @@ -174,11 +184,9 @@ src_install() { -include "${EPREFIX}/usr/include/gentoo/fortify.h" EOF - if use amd64; then - cat >> "${ED}/etc/clang/gentoo-hardened.cfg" <<-EOF || die - -Xarch_host -fcf-protection=$(usex cet full none) - EOF - fi + newins - gentoo-cet.cfg <<-EOF + -Xarch_host -fcf-protection=$(usex cet full none) + EOF if use kernel_Darwin; then newins - gentoo-hardened-ld.cfg <<-EOF