From 45dcf3ec690a8ac11c62dce2d3fba6d14f507768 Mon Sep 17 00:00:00 2001 From: Sam James Date: Thu, 15 May 2025 09:03:51 +0100 Subject: [PATCH] app-text/calibre: add -std=gnu17 workaround to 7.22.0 It can be dropped w/ >=7.25.0. Closes: https://bugs.gentoo.org/949509 Signed-off-by: Sam James --- app-text/calibre/calibre-7.22.0.ebuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app-text/calibre/calibre-7.22.0.ebuild b/app-text/calibre/calibre-7.22.0.ebuild index f1f0180630d48..9ee965558d70a 100644 --- a/app-text/calibre/calibre-7.22.0.ebuild +++ b/app-text/calibre/calibre-7.22.0.ebuild @@ -6,7 +6,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{10..13} ) PYTHON_REQ_USE="sqlite,ssl" -inherit edo toolchain-funcs python-single-r1 qmake-utils verify-sig xdg +inherit edo flag-o-matic toolchain-funcs python-single-r1 qmake-utils verify-sig xdg DESCRIPTION="Ebook management application" HOMEPAGE="https://calibre-ebook.com/" @@ -164,6 +164,10 @@ src_compile() { # TODO: get qmake called by setup.py to respect CC and CXX too tc-export CC CXX + # Workaround for GCC 15 (bug #949509) + # Can be dropped w/ >=7.25.0 + append-cflags -std=gnu17 + # bug 821871 local MY_LIBDIR="${ESYSROOT}/usr/$(get_libdir)" export FT_LIB_DIR="${MY_LIBDIR}" HUNSPELL_LIB_DIR="${MY_LIBDIR}" PODOFO_LIB_DIR="${MY_LIBDIR}"