commit:     814f22bd9f106c56a68c48b4cf7a1546923b6c0a
Author:     Ivan Lloro <ivan.lloro.boada <AT> gmail <DOT> com>
AuthorDate: Tue Jul  2 15:00:21 2024 +0000
Commit:     Ivan Lloro <ivan.lloro.boada <AT> gmail <DOT> com>
CommitDate: Tue Jul  2 15:00:23 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=814f22bd

*/*: Add warning only GCC 13 compiles (so far).

Closes: https://bugs.gentoo.org/935121
Signed-off-by: Ivan Lloro <ivan.lloro.boada <AT> gmail.com>

 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 c8b860801..8fe1a4d74 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
-       <sci-libs/opencascade-7.7.1
+       <sci-libs/opencascade-7.8.0
        dev-qt/qtcore:5
        dev-qt/qtgui:5
        dev-qt/qtwidgets:5
        >=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
 }

Reply via email to