Skip to contentSkip to conversation

package/vlc: fix build with newer versions of live555

PATCH In review Bernd Kuhls 2 participants 3 messages Nov 2, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/vlc: fix build with newer versions of live555

Needed to prevent build errors with upcoming bump of live555.

---
 ...5-fix-build-with-versions-2024.11.28.patch | 47 +++++++++++++++++++
 1 file changed, 47 insertions(+)
 create mode 100644 package/vlc/0011-live555-fix-build-with-versions-2024.11.28.patch
package/vlc/0011-live555-fix-build-with-versions-2024.11.28.patch new file +47 -0
new file mode 100644
index 0000000000..9708f680c9
@@ -0,0 +1,47 @@
+From 8befcbfa834b809602db24c9ba7456d8cfc25cdb Mon Sep 17 00:00:00 2001
+From: Florian Albrechtskirchinger <[email protected]>
+Date: Sun, 2 Mar 2025 08:30:43 +0100
+Subject: [PATCH] live555: fix build with versions >= 2024.11.28
+
+In the 2024.11.28 release (version 1732752000), live555 introduced
+`EventLoopWatchVariable` as a typedef for `std::atomic<char>`, replacing
+direct use of `char` in earlier versions. Add a conditional typedef to
+define it as `char` for older versions, and update `event_rtsp` and
+`event_data` to use `EventLoopWatchVariable`.
+
+Upstream: https://code.videolan.org/videolan/vlc/-/commit/8befcbfa834b809602db24c9ba7456d8cfc25cdb
+
+Signed-off-by: Bernd Kuhls <[email protected]>
+---
+ modules/access/live555.cpp | 8 ++++++--
+ 1 file changed, 6 insertions(+), 2 deletions(-)
+
+diff --git a/modules/access/live555.cpp b/modules/access/live555.cpp
+index 461766661e49..cacea3c46952 100644
+--- a/modules/access/live555.cpp
++++ b/modules/access/live555.cpp
+@@ -194,6 +194,10 @@ class RTSPClientVlc;
+ #define CAP_SUBSESSION_PAUSE    (1 << 3)
+ #define CAPS_DEFAULT            CAP_RATE_CONTROL
+ 
++#if LIVEMEDIA_LIBRARY_VERSION_INT < 1732752000 // 2024.11.28
++typedef char EventLoopWatchVariable;
++#endif
++
+ struct demux_sys_t
+ {
+     char            *p_sdp;    /* XXX mallocated */
+@@ -232,8 +236,8 @@ struct demux_sys_t
+     bool             b_no_data;     /* if we never received any data */
+     int              i_no_data_ti;  /* consecutive number of TaskInterrupt */
+ 
+-    char             event_rtsp;
+-    char             event_data;
++    EventLoopWatchVariable event_rtsp;
++    EventLoopWatchVariable event_data;
+ 
+     bool             b_get_param;   /* Does the server support GET_PARAMETER */
+     bool             b_paused;      /* Are we paused? */
+-- 
+GitLab
+
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 2/2 package/live555: bump version to 2025.10.13

Added -std=c++20 to enable std::atomic_flag::test which was introduced in gcc 11.1:
https://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html#status.iso.2020
(see P1135R6)

For older compilers -DNO_STD_LIB=1 can be used to enable a code path without std::atomic_flag::test, copied from:
https://github.com/DragonFlyBSD/DeltaPorts/commit/cfc388e6a6bf011e28f0cbebaeae74d2bb516a02

---
v2: removed UTF-8 characters (Julien)

 package/live555/live555.hash | 6 +++---
 package/live555/live555.mk   | 9 ++++++++-
 2 files changed, 11 insertions(+), 4 deletions(-)
package/live555/live555.hash +3 -3
index d4fa93d029..f0a56bda32 100644
@@ -1,5 +1,5 @@
-# From http://www.live555.com/liveMedia/public/live555-latest-md5.txt
-md5  3c1992b0e9b871bcad7491a3da541781  live.2021.05.03.tar.gz
+# From http://www.live555.com/liveMedia/public/live555-latest-sha1.txt
+sha1  483146b15c5fdb973b88fc318f2772f022253563  live.2025.10.13.tar.gz
 # Locally generated
-sha256  ae73241f9cc4ab740d60737c0438d62a7635af3822de5d84acf275793de42029  live.2021.05.03.tar.gz
+sha256  44eb6ae4ae02ef68a5028d9fc8b70c45b9ba45c058f846b68bc4d32c74355f49  live.2025.10.13.tar.gz
 sha256  da7eabb7bafdf7d3ae5e9f223aa5bdc1eece45ac569dc21b3b037520b4464768  COPYING.LESSER
package/live555/live555.mk +8 -1
index 1e1531ee53..6d12d1c17c 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-LIVE555_VERSION = 2021.05.03
+LIVE555_VERSION = 2025.10.13
 LIVE555_SOURCE = live.$(LIVE555_VERSION).tar.gz
 # upstream site removes older versions, use videolan.org instead
 LIVE555_SITE = https://download.videolan.org/contrib/live555
@@ -29,6 +29,13 @@ LIVE555_LIBRARY_LINK = $(TARGET_CC) -o
 LIVE555_CFLAGS += -fPIC
 endif
 
+# "struct std::atomic_flag" has no member named "test"
+ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_11),y)
+LIVE555_CFLAGS += -std=c++20
+else
+LIVE555_CFLAGS += -DNO_STD_LIB=1
+endif
+
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
 LIVE555_DEPENDENCIES += host-pkgconf openssl
 LIVE555_CONSOLE_LIBS = `$(PKG_CONFIG_HOST_BINARY) --libs openssl`
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot