commit:     8e6ea2a32454b265ef68be83bbc28b5319061421
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 29 07:03:00 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Apr 29 07:08:35 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e6ea2a3

media-tv/mythtv: fix build w/ gcc 13

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

 media-tv/mythtv/files/mythtv-32.0-gcc13.patch | 40 +++++++++++++++++++++++++++
 media-tv/mythtv/mythtv-32.0-r4.ebuild         |  1 +
 2 files changed, 41 insertions(+)

diff --git a/media-tv/mythtv/files/mythtv-32.0-gcc13.patch 
b/media-tv/mythtv/files/mythtv-32.0-gcc13.patch
new file mode 100644
index 000000000000..5d60da0c72b1
--- /dev/null
+++ b/media-tv/mythtv/files/mythtv-32.0-gcc13.patch
@@ -0,0 +1,40 @@
+https://bugs.gentoo.org/899770
+https://github.com/MythTV/mythtv/commit/3b76df2bb45789f075b6b83d6e6b436aebaf2e83
+
+From 3b76df2bb45789f075b6b83d6e6b436aebaf2e83 Mon Sep 17 00:00:00 2001
+From: David Hampton <myt...@love2code.net>
+Date: Thu, 19 Jan 2023 14:52:28 -0500
+Subject: [PATCH] Assume existence of stdint.h in exiv2.
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Based on this commit to exiv2.
+
+    Author: Luis Díaz Más <pipon...@gmail.com>
+    Date:   Wed Sep 16 21:40:05 2020 +0200
+
+        Assume existence of stdint.h
+--- a/external/libexiv2/xmpsdk/include/MD5.h
++++ b/external/libexiv2/xmpsdk/include/MD5.h
+@@ -25,18 +25,7 @@
+ 
+ #include <sys/types.h>
+ 
+-#ifdef _MSC_VER
+-//   _MSC_VER   1600 == Visual Studio 2010
+-# if _MSC_VER < 1600
+-#  ifdef  EXV_HAVE_STDINT_H
+-#   undef EXV_HAVE_STDINT_H
+-#  endif
+-# endif
+-#endif
+-
+-#if defined(EXV_HAVE_STDINT_H) || defined(__MINGW32__) || defined(__MING64__) 
|| defined(__APPLE__)
+-# include <stdint.h>
+-#endif
++#include <cstdint>
+ 
+ /* MSVC doesn't provide C99 types, but it has MS specific variants */
+ #ifdef _MSC_VER
+

diff --git a/media-tv/mythtv/mythtv-32.0-r4.ebuild 
b/media-tv/mythtv/mythtv-32.0-r4.ebuild
index ce9af87d74fa..80e017be9774 100644
--- a/media-tv/mythtv/mythtv-32.0-r4.ebuild
+++ b/media-tv/mythtv/mythtv-32.0-r4.ebuild
@@ -152,6 +152,7 @@ python_check_deps() {
 
 PATCHES=(
        "${FILESDIR}"/${PN}-32.0-python-version.patch
+       "${FILESDIR}"/${PN}-32.0-gcc13.patch
 )
 
 DISABLE_AUTOFORMATTING="yes"

Reply via email to