[packages/mediastreamer] fix constness with glibc 2.43
atler
atler at pld-linux.org
Wed Feb 18 19:06:18 CET 2026
commit e4894f1429a26aff0b964a010ba53e40f72ea81b
Author: Jan Palus <atler at pld-linux.org>
Date: Wed Feb 18 19:05:56 2026 +0100
fix constness with glibc 2.43
glibc2.43.patch | 37 +++++++++++++++++++++++++++++++++++++
mediastreamer.spec | 4 +++-
2 files changed, 40 insertions(+), 1 deletion(-)
---
diff --git a/mediastreamer.spec b/mediastreamer.spec
index e731c4d..409897a 100644
--- a/mediastreamer.spec
+++ b/mediastreamer.spec
@@ -23,7 +23,7 @@
%bcond_without zxing # QRcode support via zxing-cpp-nu
#
Summary: Audio/Video real-time streaming
-Summary(pl.UTF-8): Przesyłanie strumieni audio/video w czasie rzeczywistym
+Summary(pl.UTF-8): Przesyłanie strumieni audio/video w czasie rzeczywistym
Name: mediastreamer
Version: 5.4.38
Release: 2
@@ -41,6 +41,7 @@ Patch5: %{name}-cmake-SDL.patch
Patch6: %{name}-types.patch
Patch7: ffmpeg_5_0_fixes.patch
Patch8: %{name}-cmake-find.patch
+Patch9: glibc2.43.patch
URL: https://www.linphone.org/technical-corner/mediastreamer2-ortp
%{?with_opengl:BuildRequires: OpenGL-GLX-devel}
%{?with_sdl:BuildRequires: SDL-devel >= 1.2.0}
@@ -171,6 +172,7 @@ Statyczne biblioteki mediastreamer.
%patch -P6 -p1
%patch -P7 -p1
%patch -P8 -p1
+%patch -P9 -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/glibc2.43.patch b/glibc2.43.patch
new file mode 100644
index 0000000..c62b4a6
--- /dev/null
+++ b/glibc2.43.patch
@@ -0,0 +1,37 @@
+--- mediastreamer2-5.4.38/src/voip/ice.c.orig 2025-08-07 11:32:51.000000000 +0200
++++ mediastreamer2-5.4.38/src/voip/ice.c 2026-02-18 18:58:34.220916612 +0100
+@@ -2089,7 +2089,7 @@
+ const MSStunMessage *msg,
+ const MSStunAddress *remote_addr) {
+ const char *username = ms_stun_message_get_username(msg);
+- char *colon = strchr(username, ':');
++ const char *colon = strchr(username, ':');
+ if ((colon == NULL) || (strncmp(username, ice_check_list_local_ufrag(cl), colon - username) != 0)) {
+ ms_error("ice: Wrong USERNAME attribute (colon=%p)", colon);
+ ice_send_error_response(rtp_session, evt_data, msg, remote_addr, MS_STUN_ERROR_CODE_UNAUTHORIZED,
+--- mediastreamer2-5.4.38/tools/common.c.orig 2025-08-07 11:32:51.000000000 +0200
++++ mediastreamer2-5.4.38/tools/common.c 2026-02-18 19:02:33.895239557 +0100
+@@ -44,7 +44,7 @@
+ char subtype[64] = {0};
+ char clockrate[64] = {0};
+ char nchannels[64];
+- char *separator;
++ const char *separator;
+
+ if (strlen(name) >= sizeof(clockrate) - 1) {
+ fprintf(stderr, "Cannot parse %s: too long.\n", name);
+@@ -53,12 +53,12 @@
+
+ separator = strchr(name, '/');
+ if (separator) {
+- char *separator2;
++ const char *separator2;
+
+ strncpy(type, name, separator - name);
+ separator2 = strchr(separator + 1, '/');
+ if (separator2) {
+- char *separator3;
++ const char *separator3;
+
+ strncpy(subtype, separator + 1, separator2 - separator - 1);
+ separator3 = strchr(separator2 + 1, '/');
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mediastreamer.git/commitdiff/e4894f1429a26aff0b964a010ba53e40f72ea81b
More information about the pld-cvs-commit
mailing list