diff options
author | Sam James <sam@gentoo.org> | 2023-05-31 04:06:04 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-05-31 04:06:04 +0100 |
commit | 57ce221edfeafd9b91be2ce4aacbedda83f62215 (patch) | |
tree | 095cac3b15f7f4104a8f54c5a3d3e938fec6f2b0 /media-tv/kodi | |
parent | sys-fs/zfs-kmod: restore die-hard if kernel exceeds supported maximum (diff) | |
download | gentoo-57ce221edfeafd9b91be2ce4aacbedda83f62215.tar.gz gentoo-57ce221edfeafd9b91be2ce4aacbedda83f62215.tar.bz2 gentoo-57ce221edfeafd9b91be2ce4aacbedda83f62215.zip |
media-tv/kodi: fix build w/ new flatbuffers
Closes: https://bugs.gentoo.org/907420
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-tv/kodi')
-rw-r--r-- | media-tv/kodi/files/kodi-19.5-flatbuffers.patch | 35 | ||||
-rw-r--r-- | media-tv/kodi/kodi-19.5.ebuild | 13 |
2 files changed, 42 insertions, 6 deletions
diff --git a/media-tv/kodi/files/kodi-19.5-flatbuffers.patch b/media-tv/kodi/files/kodi-19.5-flatbuffers.patch new file mode 100644 index 000000000000..3e8f00c1449f --- /dev/null +++ b/media-tv/kodi/files/kodi-19.5-flatbuffers.patch @@ -0,0 +1,35 @@ +https://github.com/xbmc/xbmc/pull/23334 + +From 07d8c98a0a65e005b85ef70e06eb1b9bbe7f764c Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Markus=20H=C3=A4rer?= <markus.haerer@gmx.net> +Date: Sun, 28 May 2023 00:49:40 +0200 +Subject: [PATCH] SavestateFlatBuffer: Remove forward declararion of + FlatBufferBuilder + +This caused a compiler error with recent faltbuffers because the type changed: + +In file included from xbmc/cores/RetroPlayer/savestates/SavestateDatabase.cpp:12: +xbmc/cores/RetroPlayer/savestates/SavestateFlatBuffer.h:19:7: error: definition of type 'FlatBufferBuilder' conflicts with type alias of the same name +class FlatBufferBuilder; + ^ +/usr/include/flatbuffers/flatbuffer_builder.h:1414:7: note: 'FlatBufferBuilder' declared here +using FlatBufferBuilder = FlatBufferBuilderImpl<false>; + ^ +1 error generated. + +(cherry picked from commit 351184d7e4e3edc447d04a297769eb41a477ba68) +--- a/xbmc/cores/RetroPlayer/savestates/SavestateFlatBuffer.h ++++ b/xbmc/cores/RetroPlayer/savestates/SavestateFlatBuffer.h +@@ -14,11 +14,6 @@ + + #include <flatbuffers/flatbuffers.h> + +-namespace flatbuffers +-{ +-class FlatBufferBuilder; +-} +- + namespace KODI + { + namespace RETRO + diff --git a/media-tv/kodi/kodi-19.5.ebuild b/media-tv/kodi/kodi-19.5.ebuild index 2a49d55230af..6dffb81372ec 100644 --- a/media-tv/kodi/kodi-19.5.ebuild +++ b/media-tv/kodi/kodi-19.5.ebuild @@ -33,12 +33,6 @@ fi inherit autotools cmake desktop libtool linux-info pax-utils python-single-r1 xdg -PATCHES=( - "${FILESDIR}/${PN}-19.4-atomic.patch" - "${FILESDIR}/${PN}-19.4-dav1d-1.0.0.patch" - "${FILESDIR}/${PN}-19.5-gcc-13.patch" -) - DESCRIPTION="A free and open source media-player and entertainment hub" HOMEPAGE="https://kodi.tv/ https://kodi.wiki/" @@ -195,6 +189,13 @@ In some cases Kodi needs to access multicast addresses. Please consider enabling IP_MULTICAST under Networking options. " +PATCHES=( + "${FILESDIR}/${PN}-19.4-atomic.patch" + "${FILESDIR}/${PN}-19.4-dav1d-1.0.0.patch" + "${FILESDIR}/${PN}-19.5-gcc-13.patch" + "${FILESDIR}/${PN}-19.5-flatbuffers.patch" +) + pkg_setup() { check_extra_config python-single-r1_pkg_setup |