summaryrefslogtreecommitdiff
path: root/sys-devel/clang-common
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-10-10 01:33:06 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-10-10 01:33:06 +0100
commit1603847507a63218a29aada46e43f133d16d07eb (patch)
treed016ef447a3a8c16f799a1ac08cdd241e7893e39 /sys-devel/clang-common
parent861ffe012c63c48053fb77b5110cbe900f651dfd (diff)
gentoo auto-resync : 10:10:2022 - 01:33:06
Diffstat (limited to 'sys-devel/clang-common')
-rw-r--r--sys-devel/clang-common/Manifest10
-rw-r--r--sys-devel/clang-common/clang-common-15.0.2-r1.ebuild (renamed from sys-devel/clang-common/clang-common-15.0.2.ebuild)34
-rw-r--r--sys-devel/clang-common/clang-common-15.0.2.9999.ebuild34
-rw-r--r--sys-devel/clang-common/clang-common-16.0.0.9999.ebuild34
-rw-r--r--sys-devel/clang-common/clang-common-16.0.0_pre20221006-r1.ebuild (renamed from sys-devel/clang-common/clang-common-16.0.0_pre20221006.ebuild)34
-rw-r--r--sys-devel/clang-common/metadata.xml1
6 files changed, 130 insertions, 17 deletions
diff --git a/sys-devel/clang-common/Manifest b/sys-devel/clang-common/Manifest
index e8a6e4f03525..4be14341998e 100644
--- a/sys-devel/clang-common/Manifest
+++ b/sys-devel/clang-common/Manifest
@@ -6,8 +6,8 @@ DIST llvm-project-5a0722e0469894564dd9b0ee1d4f8c291d09c776.tar.gz 169164627 BLAK
DIST llvmorg-13.0.1.tar.gz 147290251 BLAKE2B 2a44b012a672501761d0c27c6b3a315b69bfef0cd13b078a7e7d2fccc4a9c8c0f2bee0f164c4271c9106b0a99cb06e8b64986f66253b613336719fb86b82541b SHA512 9a8cb5d11964ba88b7624f19ec861fb28701f23956ea3c92f6ac644332d5f41fde97bd8933dd3ee70ed378058c252fa3a3887c8d1af90d219970c2b27691166f
EBUILD clang-common-13.0.1.ebuild 593 BLAKE2B f7d78facc226d949240f31d10bb01f6a2bbe3c806d7f7c22a78d715d29de74723bedccdeefd029d309b090afe63821e10a1bd27662ff156640820fbca1896bab SHA512 48e5c5f3d4716c15018aa246cf61fbf898c4c459b1f04710da155084a8cf5b8a6df7697c300d297ac48ee1a8a8cff9bc9b4fca712455032f78cb26e9f77ef955
EBUILD clang-common-14.0.6.ebuild 541 BLAKE2B 87b158e874cf600e23591a8095e0edb4d30d4482600ef8fe38984e9ba9559e6e2226107cd482f355d950392a6a452e1a8ae79d297d5afc3951a7f1c8f6227b5f SHA512 1bd0481468c278f131ec9f87243927b60a59752f4229450559bf8016e9599155a52593810fcdc1cf0aecd4aa1529e8df300d95123a53de18eb326152caafbbef
-EBUILD clang-common-15.0.2.9999.ebuild 2746 BLAKE2B 48c1824fe7fdd3e4b7202d8cc67a80c234faeba426aaff866ed00fbe4ce2dde47253c60837f8c309bd101d2b08a705cfd9f6502536a3440ed9f0ca44deee42a7 SHA512 b0b988aa03528a6b922a4e93b536128401470bc8313d32e3ac2816ae1f97318a00bd456c4e32cdcb14bd061dcd727ce48b94b371ff6732fe27a436c8e8087b7f
-EBUILD clang-common-15.0.2.ebuild 2689 BLAKE2B 1f692e2ca7d17313770112b70a28ee5c01379e466fe34588d6ea8a2a98f41a72befb08bccec9dd394ac20c1f70123e5299c40d195466fde6ca90cb781c2333e3 SHA512 6aa91f9e587fb1c60313ff44f0ab1ef57df607a8c3bad675a7180261002b166e2c6b65e2dd59d0e721b22a2f2fcbe6d9c4b42185956abc33ba4ea7018b7da5d4
-EBUILD clang-common-16.0.0.9999.ebuild 2746 BLAKE2B 48c1824fe7fdd3e4b7202d8cc67a80c234faeba426aaff866ed00fbe4ce2dde47253c60837f8c309bd101d2b08a705cfd9f6502536a3440ed9f0ca44deee42a7 SHA512 b0b988aa03528a6b922a4e93b536128401470bc8313d32e3ac2816ae1f97318a00bd456c4e32cdcb14bd061dcd727ce48b94b371ff6732fe27a436c8e8087b7f
-EBUILD clang-common-16.0.0_pre20221006.ebuild 2746 BLAKE2B 48c1824fe7fdd3e4b7202d8cc67a80c234faeba426aaff866ed00fbe4ce2dde47253c60837f8c309bd101d2b08a705cfd9f6502536a3440ed9f0ca44deee42a7 SHA512 b0b988aa03528a6b922a4e93b536128401470bc8313d32e3ac2816ae1f97318a00bd456c4e32cdcb14bd061dcd727ce48b94b371ff6732fe27a436c8e8087b7f
-MISC metadata.xml 608 BLAKE2B 5a93acbaeaf3144187e9814fd17e1e45d9e83ebd3930b0838b622b4d94c450d87529e1302cb228af5482b689c01e1c0eb066a82100ed96c9f324fc494f1f1905 SHA512 7f39ee901fb543ef1904a70108fd40d5ed0e719874327f8875eb6c7abb25c65026d9f691cf3d71f608ed2f1d9a5858b927ed2cd7732b419f61a22fd3d1c80908
+EBUILD clang-common-15.0.2-r1.ebuild 3333 BLAKE2B 1b713786aa4aec0c1e46633f11758490f51d61e6f92cc1d38b6dd2e38980d4555f4288cb0d583895e3c4374ff588a8b619c22a6893b8a73538a89e734eda3846 SHA512 112b953845b475c018b1250a3ca59e84f3fa6f665aebb31bda1fcbefdf7bda70d642f5980c982516933d1db73f92c30299f3e613044f7ae13df1202b5c44b5d2
+EBUILD clang-common-15.0.2.9999.ebuild 3390 BLAKE2B ba162ba51527b33a0b3a7a2c6bcd4385e41e07e0d19338895162f3b3d739f466f3d58b73bbd55e72eccbcac52b651bae1dd15d4062e468b6a9ecabd9414291c3 SHA512 dfa5dbff52cf4b79eff8afd504691a5a77fcd11529b50c1ac9b613d2854c2dd2161a95cd155d45142e4e459802e6289d3452f19572f0e2e68e89f0809ab76ef7
+EBUILD clang-common-16.0.0.9999.ebuild 3390 BLAKE2B ba162ba51527b33a0b3a7a2c6bcd4385e41e07e0d19338895162f3b3d739f466f3d58b73bbd55e72eccbcac52b651bae1dd15d4062e468b6a9ecabd9414291c3 SHA512 dfa5dbff52cf4b79eff8afd504691a5a77fcd11529b50c1ac9b613d2854c2dd2161a95cd155d45142e4e459802e6289d3452f19572f0e2e68e89f0809ab76ef7
+EBUILD clang-common-16.0.0_pre20221006-r1.ebuild 3390 BLAKE2B ba162ba51527b33a0b3a7a2c6bcd4385e41e07e0d19338895162f3b3d739f466f3d58b73bbd55e72eccbcac52b651bae1dd15d4062e468b6a9ecabd9414291c3 SHA512 dfa5dbff52cf4b79eff8afd504691a5a77fcd11529b50c1ac9b613d2854c2dd2161a95cd155d45142e4e459802e6289d3452f19572f0e2e68e89f0809ab76ef7
+MISC metadata.xml 735 BLAKE2B 12ea133df3d7eb9367a65e572ef91893e654d5b77caa27c66e4b5b41ba90ebc5e619eb78dfff2a67183d2c1cbfcf35fa903b2bb75604ce153d5cedfce5346e3c SHA512 8ed6b12d4f2aa1985897a8d81ce898dbc0d14ac222f3d0f259cbe80fbb8b2349dff7677627daeaf39a422f290200da4fac6348abc81c9e35da0ca73a11cfdd83
diff --git a/sys-devel/clang-common/clang-common-15.0.2.ebuild b/sys-devel/clang-common/clang-common-15.0.2-r1.ebuild
index 71e8aa15b6d8..a29bbbc806c9 100644
--- a/sys-devel/clang-common/clang-common-15.0.2.ebuild
+++ b/sys-devel/clang-common/clang-common-15.0.2-r1.ebuild
@@ -11,7 +11,10 @@ HOMEPAGE="https://llvm.org/"
LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~ppc-macos ~x64-macos"
-IUSE="default-compiler-rt default-libcxx default-lld llvm-libunwind"
+IUSE="
+ default-compiler-rt default-libcxx default-lld llvm-libunwind
+ stricter
+"
PDEPEND="
sys-devel/clang:*
@@ -76,12 +79,37 @@ src_install() {
# It is used to specify the selected GCC installation.
EOF
+ newins - gentoo-common.cfg <<-EOF
+ # This file contains flags common to clang, clang++ and clang-cpp.
+ @gentoo-runtimes.cfg
+ @gentoo-gcc-install.cfg
+ EOF
+
+ if use stricter; then
+ newins - gentoo-stricter.cfg <<-EOF
+ # This file increases the strictness of older clang versions
+ # to match the newest upstream version.
+
+ # clang-16 defaults
+ -Werror=implicit-function-declaration
+ -Werror=implicit-int
+ -Werror=incompatible-function-pointer-types
+
+ # constructs banned by C2x
+ -Werror=strict-prototypes
+ -Werror=deprecated-non-prototype
+ EOF
+
+ cat >> "${ED}/etc/clang/gentoo-common.cfg" <<-EOF || die
+ @gentoo-stricter.cfg
+ EOF
+ fi
+
local tool
for tool in clang{,++,-cpp}; do
newins - "${tool}.cfg" <<-EOF
# This configuration file is used by ${tool} driver.
- @gentoo-runtimes.cfg
- @gentoo-gcc-install.cfg
+ @gentoo-common.cfg
EOF
done
}
diff --git a/sys-devel/clang-common/clang-common-15.0.2.9999.ebuild b/sys-devel/clang-common/clang-common-15.0.2.9999.ebuild
index e318815568c5..993dddec4bf9 100644
--- a/sys-devel/clang-common/clang-common-15.0.2.9999.ebuild
+++ b/sys-devel/clang-common/clang-common-15.0.2.9999.ebuild
@@ -11,7 +11,10 @@ HOMEPAGE="https://llvm.org/"
LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA"
SLOT="0"
KEYWORDS=""
-IUSE="default-compiler-rt default-libcxx default-lld llvm-libunwind"
+IUSE="
+ default-compiler-rt default-libcxx default-lld llvm-libunwind
+ stricter
+"
PDEPEND="
sys-devel/clang:*
@@ -75,12 +78,37 @@ src_install() {
# It is used to specify the selected GCC installation.
EOF
+ newins - gentoo-common.cfg <<-EOF
+ # This file contains flags common to clang, clang++ and clang-cpp.
+ @gentoo-runtimes.cfg
+ @gentoo-gcc-install.cfg
+ EOF
+
+ if use stricter; then
+ newins - gentoo-stricter.cfg <<-EOF
+ # This file increases the strictness of older clang versions
+ # to match the newest upstream version.
+
+ # clang-16 defaults
+ -Werror=implicit-function-declaration
+ -Werror=implicit-int
+ -Werror=incompatible-function-pointer-types
+
+ # constructs banned by C2x
+ -Werror=strict-prototypes
+ -Werror=deprecated-non-prototype
+ EOF
+
+ cat >> "${ED}/etc/clang/gentoo-common.cfg" <<-EOF || die
+ @gentoo-stricter.cfg
+ EOF
+ fi
+
local tool
for tool in clang{,++,-cpp}; do
newins - "${tool}.cfg" <<-EOF
# This configuration file is used by ${tool} driver.
- @gentoo-runtimes.cfg
- @gentoo-gcc-install.cfg
+ @gentoo-common.cfg
EOF
done
}
diff --git a/sys-devel/clang-common/clang-common-16.0.0.9999.ebuild b/sys-devel/clang-common/clang-common-16.0.0.9999.ebuild
index e318815568c5..993dddec4bf9 100644
--- a/sys-devel/clang-common/clang-common-16.0.0.9999.ebuild
+++ b/sys-devel/clang-common/clang-common-16.0.0.9999.ebuild
@@ -11,7 +11,10 @@ HOMEPAGE="https://llvm.org/"
LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA"
SLOT="0"
KEYWORDS=""
-IUSE="default-compiler-rt default-libcxx default-lld llvm-libunwind"
+IUSE="
+ default-compiler-rt default-libcxx default-lld llvm-libunwind
+ stricter
+"
PDEPEND="
sys-devel/clang:*
@@ -75,12 +78,37 @@ src_install() {
# It is used to specify the selected GCC installation.
EOF
+ newins - gentoo-common.cfg <<-EOF
+ # This file contains flags common to clang, clang++ and clang-cpp.
+ @gentoo-runtimes.cfg
+ @gentoo-gcc-install.cfg
+ EOF
+
+ if use stricter; then
+ newins - gentoo-stricter.cfg <<-EOF
+ # This file increases the strictness of older clang versions
+ # to match the newest upstream version.
+
+ # clang-16 defaults
+ -Werror=implicit-function-declaration
+ -Werror=implicit-int
+ -Werror=incompatible-function-pointer-types
+
+ # constructs banned by C2x
+ -Werror=strict-prototypes
+ -Werror=deprecated-non-prototype
+ EOF
+
+ cat >> "${ED}/etc/clang/gentoo-common.cfg" <<-EOF || die
+ @gentoo-stricter.cfg
+ EOF
+ fi
+
local tool
for tool in clang{,++,-cpp}; do
newins - "${tool}.cfg" <<-EOF
# This configuration file is used by ${tool} driver.
- @gentoo-runtimes.cfg
- @gentoo-gcc-install.cfg
+ @gentoo-common.cfg
EOF
done
}
diff --git a/sys-devel/clang-common/clang-common-16.0.0_pre20221006.ebuild b/sys-devel/clang-common/clang-common-16.0.0_pre20221006-r1.ebuild
index e318815568c5..993dddec4bf9 100644
--- a/sys-devel/clang-common/clang-common-16.0.0_pre20221006.ebuild
+++ b/sys-devel/clang-common/clang-common-16.0.0_pre20221006-r1.ebuild
@@ -11,7 +11,10 @@ HOMEPAGE="https://llvm.org/"
LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA"
SLOT="0"
KEYWORDS=""
-IUSE="default-compiler-rt default-libcxx default-lld llvm-libunwind"
+IUSE="
+ default-compiler-rt default-libcxx default-lld llvm-libunwind
+ stricter
+"
PDEPEND="
sys-devel/clang:*
@@ -75,12 +78,37 @@ src_install() {
# It is used to specify the selected GCC installation.
EOF
+ newins - gentoo-common.cfg <<-EOF
+ # This file contains flags common to clang, clang++ and clang-cpp.
+ @gentoo-runtimes.cfg
+ @gentoo-gcc-install.cfg
+ EOF
+
+ if use stricter; then
+ newins - gentoo-stricter.cfg <<-EOF
+ # This file increases the strictness of older clang versions
+ # to match the newest upstream version.
+
+ # clang-16 defaults
+ -Werror=implicit-function-declaration
+ -Werror=implicit-int
+ -Werror=incompatible-function-pointer-types
+
+ # constructs banned by C2x
+ -Werror=strict-prototypes
+ -Werror=deprecated-non-prototype
+ EOF
+
+ cat >> "${ED}/etc/clang/gentoo-common.cfg" <<-EOF || die
+ @gentoo-stricter.cfg
+ EOF
+ fi
+
local tool
for tool in clang{,++,-cpp}; do
newins - "${tool}.cfg" <<-EOF
# This configuration file is used by ${tool} driver.
- @gentoo-runtimes.cfg
- @gentoo-gcc-install.cfg
+ @gentoo-common.cfg
EOF
done
}
diff --git a/sys-devel/clang-common/metadata.xml b/sys-devel/clang-common/metadata.xml
index 31c80b4fb555..7ea033c083c9 100644
--- a/sys-devel/clang-common/metadata.xml
+++ b/sys-devel/clang-common/metadata.xml
@@ -11,5 +11,6 @@
<flag name="default-compiler-rt">Use compiler-rt + libunwind instead of libgcc as the default rtlib for clang</flag>
<flag name="default-libcxx">Use libc++ instead of libstdc++ as the default stdlib for clang</flag>
<flag name="default-lld">Use lld as the default linker for clang</flag>
+ <flag name="stricter">Default to stricter behavior known from newer clang versions, turning more warnings into errors</flag>
</use>
</pkgmetadata>