commit:     b0e387303c355882ad6b8be31718e35a73bc6c37
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 23 20:40:44 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jul 23 20:40:44 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0e38730

media-tv/mythtv: filter LTO

Initially found 0fe8f246b7758fc01ae044ed99af1e4ca19b4042 via this
when looking to sync with ffmpeg but turns out there's mythtv-specific
lto-type-mismatch issues so nevermind.

Closes: https://bugs.gentoo.org/860987
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-tv/mythtv/mythtv-35.0_p20250723.ebuild | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/media-tv/mythtv/mythtv-35.0_p20250723.ebuild 
b/media-tv/mythtv/mythtv-35.0_p20250723.ebuild
index 1fe8372aefad..d7f2edb3d13b 100644
--- a/media-tv/mythtv/mythtv-35.0_p20250723.ebuild
+++ b/media-tv/mythtv/mythtv-35.0_p20250723.ebuild
@@ -273,6 +273,13 @@ src_configure() {
        myconf+=( --enable-symbol-visibility )
        myconf+=( --enable-pic )
 
+       # libavformat/format.c:37:22: error: type of 
'ff_mythtv_mpegtsraw_demuxer' does not match original declaration 
[-Werror=lto-type-mismatch]
+       # libavformat/mpegts-mythtv.c:3731:21: note: type 'const struct 
FFInputFormat' should match type 'struct AVInputFormat'
+       filter-lto
+
+       # Needed just like ffmpeg (bug #860987)
+       tc-is-lto && myconf+=( --enable-lto )
+
        if tc-is-cross-compiler ; then
                myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) )
                myconf+=( --cross-prefix="${CHOST}"- )

Reply via email to