From 814f22bd9f106c56a68c48b4cf7a1546923b6c0a Mon Sep 17 00:00:00 2001 From: Ivan Lloro Date: Tue, 2 Jul 2024 17:00:21 +0200 Subject: [PATCH] */*: Add warning only GCC 13 compiles (so far). Closes: https://bugs.gentoo.org/935121 Signed-off-by: Ivan Lloro --- media-gfx/mayo/mayo-0.8.0.ebuild | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/media-gfx/mayo/mayo-0.8.0.ebuild b/media-gfx/mayo/mayo-0.8.0.ebuild index c8b8608013..8fe1a4d742 100644 --- a/media-gfx/mayo/mayo-0.8.0.ebuild +++ b/media-gfx/mayo/mayo-0.8.0.ebuild @@ -15,12 +15,13 @@ KEYWORDS="~amd64" RDEPEND=" >=sci-libs/opencascade-7.7.0-r2 - =media-libs/assimp-5.3.1 " +BDEPEND="sys-devel/gcc:13" DEPEND="${RDEPEND}" @@ -28,6 +29,19 @@ PATCHES=( "${FILESDIR}"/${P}-nogit.patch ) +pkg_pretend() { + # https://bugs.gentoo.org/935121 + if tc-is-gcc && ver_test $(gcc-version) -ne 13 ; then + ewarn "GCC 13 is not in use! Versions different to gcc-13 are known to fail to compile." + ewarn "That is so even when any gcc >= 9 should work according to upstream." + ewarn "See https://bugs.gentoo.org/935121" + elif tc-is-clang; then + ewarn "LLVM/Clang >= 6 should work according to upstream but it is untested." + ewarn "If compilation fails, gcc-13 is known to work." + ewarn "See https://bugs.gentoo.org/935121" + fi +} + src_configure() { eqmake5 "CASCADE_INC_DIR=/usr/include/opencascade" "CASCADE_LIB_DIR=/usr/$(get_libdir)/opencascade" "ASSIMP_INC_DIR=/usr/include/assimp" "ASSIMP_LIB_DIR=/usr/$(get_libdir)" mayo.pro }