From 1c346c2eebb3e2fb0da7d9c758938d57cdd23adc Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Fri, 12 Jul 2024 00:51:21 -0400 Subject: [PATCH] media-tv/tvheadend: mark as LTO-unsafe Signed-off-by: Eli Schwartz --- media-tv/tvheadend/tvheadend-4.3_p20240618.ebuild | 6 +++++- media-tv/tvheadend/tvheadend-9999.ebuild | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/media-tv/tvheadend/tvheadend-4.3_p20240618.ebuild b/media-tv/tvheadend/tvheadend-4.3_p20240618.ebuild index e9fefcd6df55f..733fd0370d439 100644 --- a/media-tv/tvheadend/tvheadend-4.3_p20240618.ebuild +++ b/media-tv/tvheadend/tvheadend-4.3_p20240618.ebuild @@ -6,7 +6,7 @@ EAPI=8 COMMIT="e855f62e6697cf756ad2eed2ed03b8d06ba2019b" PYTHON_COMPAT=( python3_{10..12} ) -inherit linux-info python-single-r1 systemd toolchain-funcs +inherit flag-o-matic linux-info python-single-r1 systemd toolchain-funcs DESCRIPTION="Tvheadend is a TV streaming server and digital video recorder" HOMEPAGE="https://tvheadend.org/" @@ -91,6 +91,10 @@ pkg_setup() { # most of them only take effect when --enable-ffmpeg_static is given. src_configure() { + # -Werror=lto-type-mismatch + # https://github.com/tvheadend/tvheadend/issues/1732 + filter-lto + CC="$(tc-getCC)" \ PKG_CONFIG="$(tc-getPKG_CONFIG)" \ econf \ diff --git a/media-tv/tvheadend/tvheadend-9999.ebuild b/media-tv/tvheadend/tvheadend-9999.ebuild index aa832d625e417..91152498ae00b 100644 --- a/media-tv/tvheadend/tvheadend-9999.ebuild +++ b/media-tv/tvheadend/tvheadend-9999.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{10..12} ) -inherit git-r3 linux-info python-single-r1 systemd toolchain-funcs +inherit flag-o-matic git-r3 linux-info python-single-r1 systemd toolchain-funcs DESCRIPTION="Tvheadend is a TV streaming server and digital video recorder" HOMEPAGE="https://tvheadend.org/" @@ -88,6 +88,10 @@ pkg_setup() { # most of them only take effect when --enable-ffmpeg_static is given. src_configure() { + # -Werror=lto-type-mismatch + # https://github.com/tvheadend/tvheadend/issues/1732 + filter-lto + CC="$(tc-getCC)" \ PKG_CONFIG="$(tc-getPKG_CONFIG)" \ econf \