summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-01-30 03:10:44 +0000
committerSam James <sam@gentoo.org>2023-01-30 03:24:45 +0000
commitb1abe11db602377ba9c72c9944feefba52160b17 (patch)
treeb05a0806e696b59aec33d1869dd1afe72f7259e2 /media-tv
parentdev-util/valgrind: fix tests w/ gcc 13 (diff)
downloadgentoo-b1abe11db602377ba9c72c9944feefba52160b17.tar.gz
gentoo-b1abe11db602377ba9c72c9944feefba52160b17.tar.bz2
gentoo-b1abe11db602377ba9c72c9944feefba52160b17.zip
media-tv/kodi: fix build w/ gcc 13
Closes: https://bugs.gentoo.org/892503 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-tv')
-rw-r--r--media-tv/kodi/files/kodi-19.5-gcc-13.patch58
-rw-r--r--media-tv/kodi/kodi-19.5.ebuild1
2 files changed, 59 insertions, 0 deletions
diff --git a/media-tv/kodi/files/kodi-19.5-gcc-13.patch b/media-tv/kodi/files/kodi-19.5-gcc-13.patch
new file mode 100644
index 000000000000..130c3c225486
--- /dev/null
+++ b/media-tv/kodi/files/kodi-19.5-gcc-13.patch
@@ -0,0 +1,58 @@
+https://bugs.gentoo.org/892503
+https://github.com/xbmc/xbmc/pull/22627
+https://github.com/xbmc/xbmc/pull/22631
+
+From 6730f62c5d709f8789e11d3f979c597fe702daa3 Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Sun, 29 Jan 2023 22:14:16 +0000
+Subject: [PATCH] windowing: X11: Add missing <cstdint> include (fix build with
+ GCC 13)
+
+GCC 13 (as usual for new compiler releases) shuffles around some
+internal includes and so <cstdint> etc is no longer transitively included.
+
+See https://www.gnu.org/software/gcc/gcc-13/porting_to.html.
+
+Bug: https://bugs.gentoo.org/892503
+--- a/xbmc/windowing/X11/GLContext.h
++++ b/xbmc/windowing/X11/GLContext.h
+@@ -8,6 +8,7 @@
+
+ #pragma once
+
++#include <cstdint>
+ #include <string>
+
+ #include <X11/Xlib.h>
+
+--- a/xbmc/cores/VideoPlayer/VideoRenderers/ColorManager.h
++++ b/xbmc/cores/VideoPlayer/VideoRenderers/ColorManager.h
+@@ -12,6 +12,7 @@
+ #include <lcms2.h>
+ #endif
+
++#include <cstdint>
+ #include <string>
+
+ extern "C"
+--- a/xbmc/pictures/Picture.h
++++ b/xbmc/pictures/Picture.h
+@@ -11,6 +11,8 @@
+ #include "pictures/PictureScalingAlgorithm.h"
+ #include "utils/Job.h"
+
++#include <cstddef>
++#include <cstdint>
+ #include <string>
+ #include <vector>
+
+--- a/xbmc/platform/Filesystem.h
++++ b/xbmc/platform/Filesystem.h
+@@ -8,6 +8,7 @@
+
+ #pragma once
+
++#include <cstdint>
+ #include <string>
+ #include <system_error>
+ namespace KODI
diff --git a/media-tv/kodi/kodi-19.5.ebuild b/media-tv/kodi/kodi-19.5.ebuild
index bda9d573b7d2..68653e38cf72 100644
--- a/media-tv/kodi/kodi-19.5.ebuild
+++ b/media-tv/kodi/kodi-19.5.ebuild
@@ -36,6 +36,7 @@ inherit autotools cmake desktop libtool linux-info pax-utils python-single-r1 xd
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"