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 <sam@gentoo.org>
This commit is contained in:
Sam James
2025-05-15 09:03:51 +01:00
parent 8fbdd8e01d
commit 45dcf3ec69

View File

@@ -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}"