From 00e9986c91761c4cb43221962b4e095065d033e7 Mon Sep 17 00:00:00 2001
From: Alexander Golubev <fatzer2@gmail.com>
Date: Fri, 24 Apr 2026 23:31:55 +0300
Subject: media-video/transcode: fix build with gcc-15

Closes: https://mirror.git.trinitydesktop.org/gitea/TDE/tde-packaging-gentoo/issues/476
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
---
 ...scode-1.1.7-build-fix-stdbool-h-detection.patch | 28 ++++++++++++++++++++++
 media-video/transcode/transcode-1.1.7-r8.ebuild    |  1 +
 2 files changed, 29 insertions(+)
 create mode 100644 media-video/transcode/files/transcode-1.1.7-build-fix-stdbool-h-detection.patch

diff --git a/media-video/transcode/files/transcode-1.1.7-build-fix-stdbool-h-detection.patch b/media-video/transcode/files/transcode-1.1.7-build-fix-stdbool-h-detection.patch
new file mode 100644
index 00000000..57aa5bde
--- /dev/null
+++ b/media-video/transcode/files/transcode-1.1.7-build-fix-stdbool-h-detection.patch
@@ -0,0 +1,28 @@
+From 889026d760b758f6234a0ac421b125a81784d66f Mon Sep 17 00:00:00 2001
+From: Alexander Golubev <fatzer2@gmail.com>
+Date: Fri, 24 Apr 2026 23:19:50 +0300
+Subject: [PATCH] [build] fix stdbool.h detection
+
+This fixes build with C23 standard.
+
+Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
+---
+ acinclude.m4 | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/acinclude.m4 b/acinclude.m4
+index 7c8cb28a..2ea5240c 100644
+--- a/acinclude.m4
++++ b/acinclude.m4
+@@ -38,6 +38,8 @@ AC_DEFINE([HAVE_LIMITS_H], 1,
+           [Define to 1 if you have the <limits.h> include file.])
+ AC_DEFINE([HAVE_STDARG_H], 1,
+           [Define to 1 if you have the <stdarg.h> include file.])
++AC_DEFINE([HAVE_STDBOOL_H], 1,
++          [Define to 1 if you have the <stdbool.h> include file.])
+ AC_DEFINE([HAVE_STDDEF_H], 1,
+           [Define to 1 if you have the <stddef.h> include file.])
+ AC_DEFINE([HAVE_STDINT_H], 1,
+-- 
+2.52.0
+
diff --git a/media-video/transcode/transcode-1.1.7-r8.ebuild b/media-video/transcode/transcode-1.1.7-r8.ebuild
index a7cdbce1..b718e6e2 100644
--- a/media-video/transcode/transcode-1.1.7-r8.ebuild
+++ b/media-video/transcode/transcode-1.1.7-r8.ebuild
@@ -90,6 +90,7 @@ PATCHES=(
 	"${PATCHDIR}"/${P}-ffmpeg-set-default-for-rc_strategy-to-0.patch
 	"${PATCHDIR}"/${P}-ffmpeg-fix-ffmpeg-import.patch
 	"${PATCHDIR}"/${P}-export_ffmpeg-more-fixes-for-ffmpeg-3.1-port-fixes.patch
+	"${FILESDIR}"/${P}-build-fix-stdbool-h-detection.patch
 )
 
 src_prepare() {
-- 
cgit v1.2.3

