[packages/mediastreamer] fix build with gcc >= 13

atler atler at pld-linux.org
Sun Oct 1 22:26:26 CEST 2023


commit 7ebc9031c50a11481826238043b10dd384336c2c
Author: Jan Palus <atler at pld-linux.org>
Date:   Sun Oct 1 22:18:50 2023 +0200

    fix build with gcc >= 13

 gcc13.patch        | 10 ++++++++++
 mediastreamer.spec |  2 ++
 2 files changed, 12 insertions(+)
---
diff --git a/mediastreamer.spec b/mediastreamer.spec
index fe6fda3..ab734b9 100644
--- a/mediastreamer.spec
+++ b/mediastreamer.spec
@@ -44,6 +44,7 @@ Patch7:		%{name}-gsm.patch
 Patch8:		%{name}-cmake-upnp.patch
 Patch9:		%{name}-bzrtp.patch
 Patch10:	%{name}-gcc.patch
+Patch11:	gcc13.patch
 URL:		http://www.linphone.org/technical-corner/mediastreamer2/overview
 %{?with_opengl:BuildRequires:	OpenGL-GLX-devel}
 %{?with_sdl:BuildRequires:	SDL-devel >= 1.2.0}
@@ -171,6 +172,7 @@ Statyczne biblioteki mediastreamer.
 %patch8 -p1
 %patch9 -p1
 %patch10 -p1
+%patch11 -p1
 
 # cmake checks for python3, so don't require python 2 as well
 %{__sed} -i -e '1s,/usr/bin/python$,%{__python3},' tools/xxd.py
diff --git a/gcc13.patch b/gcc13.patch
new file mode 100644
index 0000000..12ba30c
--- /dev/null
+++ b/gcc13.patch
@@ -0,0 +1,10 @@
+--- mediastreamer2-5.1.72/src/utils/qrcode_image.hpp.orig	2022-11-18 15:22:23.000000000 +0100
++++ mediastreamer2-5.1.72/src/utils/qrcode_image.hpp	2023-10-01 22:13:26.787540196 +0200
+@@ -20,6 +20,7 @@
+ #ifndef qrcode_image_h
+ #define qrcode_image_h
+ 
++#include <cstdint>
+ #include <zxing/LuminanceSource.h>
+ 
+ class QRCodeImage : public zxing::LuminanceSource {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mediastreamer.git/commitdiff/80dd7e6f12ea35141959b675857ac1060a9d92fd



More information about the pld-cvs-commit mailing list