commit: 34ccc1d848c74a17edebc48f0c0c936106ffa278 Author: Adrian Schollmeyer <nex+b-g-o <AT> nexadn <DOT> de> AuthorDate: Wed Sep 14 20:31:05 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Sep 15 12:48:23 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34ccc1d8
sys-process/btop: Hard-depend on sys-devel/gcc Clang currently does not have support for the C++ 20 ranges library, causing build failures wis sys-process/btop. The only compiler supported upstream is sys-devel/gcc [0]. This commit enforces g++ to be used as a compiler until proper clang support is available. [0] https://github.com/aristocratos/btop/issues/324 Closes: https://bugs.gentoo.org/839318 Signed-off-by: Adrian Schollmeyer <nex+b-g-o <AT> nexadn.de> Closes: https://github.com/gentoo/gentoo/pull/27255 Signed-off-by: Sam James <sam <AT> gentoo.org> sys-process/btop/btop-1.2.8.ebuild | 13 +++++++++++++ sys-process/btop/btop-1.2.9.ebuild | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/sys-process/btop/btop-1.2.8.ebuild b/sys-process/btop/btop-1.2.8.ebuild index b4ac52c9fecc..ee0bbdefbd6d 100644 --- a/sys-process/btop/btop-1.2.8.ebuild +++ b/sys-process/btop/btop-1.2.8.ebuild @@ -13,6 +13,19 @@ LICENSE="Apache-2.0" SLOT="0" KEYWORDS="amd64 arm64 ppc64 ~riscv x86" +BDEPEND=" + >=sys-devel/gcc-8 +" + +pkg_setup() { + if [[ "${MERGE_TYPE}" != "binary" ]]; then + if ! tc-is-gcc ; then + # https://bugs.gentoo.org/839318 + die "$(tc-getCXX) is not a supported compiler. Please use sys-devel/gcc instead." + fi + fi +} + src_prepare() { default # btop installs README.md to /usr/share/btop by default diff --git a/sys-process/btop/btop-1.2.9.ebuild b/sys-process/btop/btop-1.2.9.ebuild index 53e5416f327e..6bf13cbd7d95 100644 --- a/sys-process/btop/btop-1.2.9.ebuild +++ b/sys-process/btop/btop-1.2.9.ebuild @@ -13,6 +13,19 @@ LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" +BDEPEND=" + >=sys-devel/gcc-8 +" + +pkg_setup() { + if [[ "${MERGE_TYPE}" != "binary" ]]; then + if ! tc-is-gcc ; then + # https://bugs.gentoo.org/839318 + die "$(tc-getCXX) is not a supported compiler. Please use sys-devel/gcc instead." + fi + fi +} + src_prepare() { default # btop installs README.md to /usr/share/btop by default