Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-tv/kodi/files/, media-tv/kodi/
Date: Mon, 30 Jan 2023 03:28:02
Message-Id: 1675049085.b1abe11db602377ba9c72c9944feefba52160b17.sam@gentoo
1 commit: b1abe11db602377ba9c72c9944feefba52160b17
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 30 03:10:44 2023 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 30 03:24:45 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1abe11d
7
8 media-tv/kodi: fix build w/ gcc 13
9
10 Closes: https://bugs.gentoo.org/892503
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 media-tv/kodi/files/kodi-19.5-gcc-13.patch | 58 ++++++++++++++++++++++++++++++
14 media-tv/kodi/kodi-19.5.ebuild | 1 +
15 2 files changed, 59 insertions(+)
16
17 diff --git a/media-tv/kodi/files/kodi-19.5-gcc-13.patch b/media-tv/kodi/files/kodi-19.5-gcc-13.patch
18 new file mode 100644
19 index 000000000000..130c3c225486
20 --- /dev/null
21 +++ b/media-tv/kodi/files/kodi-19.5-gcc-13.patch
22 @@ -0,0 +1,58 @@
23 +https://bugs.gentoo.org/892503
24 +https://github.com/xbmc/xbmc/pull/22627
25 +https://github.com/xbmc/xbmc/pull/22631
26 +
27 +From 6730f62c5d709f8789e11d3f979c597fe702daa3 Mon Sep 17 00:00:00 2001
28 +From: Sam James <sam@g.o>
29 +Date: Sun, 29 Jan 2023 22:14:16 +0000
30 +Subject: [PATCH] windowing: X11: Add missing <cstdint> include (fix build with
31 + GCC 13)
32 +
33 +GCC 13 (as usual for new compiler releases) shuffles around some
34 +internal includes and so <cstdint> etc is no longer transitively included.
35 +
36 +See https://www.gnu.org/software/gcc/gcc-13/porting_to.html.
37 +
38 +Bug: https://bugs.gentoo.org/892503
39 +--- a/xbmc/windowing/X11/GLContext.h
40 ++++ b/xbmc/windowing/X11/GLContext.h
41 +@@ -8,6 +8,7 @@
42 +
43 + #pragma once
44 +
45 ++#include <cstdint>
46 + #include <string>
47 +
48 + #include <X11/Xlib.h>
49 +
50 +--- a/xbmc/cores/VideoPlayer/VideoRenderers/ColorManager.h
51 ++++ b/xbmc/cores/VideoPlayer/VideoRenderers/ColorManager.h
52 +@@ -12,6 +12,7 @@
53 + #include <lcms2.h>
54 + #endif
55 +
56 ++#include <cstdint>
57 + #include <string>
58 +
59 + extern "C"
60 +--- a/xbmc/pictures/Picture.h
61 ++++ b/xbmc/pictures/Picture.h
62 +@@ -11,6 +11,8 @@
63 + #include "pictures/PictureScalingAlgorithm.h"
64 + #include "utils/Job.h"
65 +
66 ++#include <cstddef>
67 ++#include <cstdint>
68 + #include <string>
69 + #include <vector>
70 +
71 +--- a/xbmc/platform/Filesystem.h
72 ++++ b/xbmc/platform/Filesystem.h
73 +@@ -8,6 +8,7 @@
74 +
75 + #pragma once
76 +
77 ++#include <cstdint>
78 + #include <string>
79 + #include <system_error>
80 + namespace KODI
81
82 diff --git a/media-tv/kodi/kodi-19.5.ebuild b/media-tv/kodi/kodi-19.5.ebuild
83 index bda9d573b7d2..68653e38cf72 100644
84 --- a/media-tv/kodi/kodi-19.5.ebuild
85 +++ b/media-tv/kodi/kodi-19.5.ebuild
86 @@ -36,6 +36,7 @@ inherit autotools cmake desktop libtool linux-info pax-utils python-single-r1 xd
87 PATCHES=(
88 "${FILESDIR}/${PN}-19.4-atomic.patch"
89 "${FILESDIR}/${PN}-19.4-dav1d-1.0.0.patch"
90 + "${FILESDIR}/${PN}-19.5-gcc-13.patch"
91 )
92
93 DESCRIPTION="A free and open source media-player and entertainment hub"