Skip to content

Commit

Permalink
*/*: Add warning only GCC 13 compiles (so far).
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/935121
Signed-off-by: Ivan Lloro <[email protected]>
  • Loading branch information
IvanLloro committed Jul 2, 2024
1 parent 4144aba commit 814f22b
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion media-gfx/mayo/mayo-0.8.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,33 @@ 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}"

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
}
Expand Down

0 comments on commit 814f22b

Please sign in to comment.