deleted file mode 100644
@@ -1,86 +0,0 @@
-From f4e174870eb8cbe60c922d3bf181f3eb2347523c Mon Sep 17 00:00:00 2001
-From: Jonas Holmberg <jonashg@axis.com>
-Date: Mon, 2 Mar 2026 10:28:26 +0100
-Subject: [PATCH] module-protocol-native: Fix socket activation
-
-Fix path comparison in is_socket_unix() and don't unset LISTEN_FDS since
-the function that uses it is called more than once and it was not unset
-when sd_listen_fds() was used.
-
-Fixes #5140
-Upstream-Status: Backport
-[https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/f4e174870eb8cbe60c922d3bf181f3eb2347523c]
----
- src/modules/module-protocol-native.c | 2 +-
- src/modules/module-protocol-pulse/server.c | 2 +-
- src/modules/network-utils.h | 14 +++++---------
- 3 files changed, 7 insertions(+), 11 deletions(-)
-
-diff --git a/src/modules/module-protocol-native.c b/src/modules/module-protocol-native.c
-index 2be92a847..98a43829b 100644
---- a/src/modules/module-protocol-native.c
-+++ b/src/modules/module-protocol-native.c
-@@ -907,7 +907,7 @@ static int add_socket(struct pw_protocol *protocol, struct server *s, struct soc
- bool activated = false;
-
- {
-- int i, n = listen_fd();
-+ int i, n = listen_fds();
- for (i = 0; i < n; ++i) {
- if (is_socket_unix(LISTEN_FDS_START + i, SOCK_STREAM,
- s->addr.sun_path) > 0) {
-diff --git a/src/modules/module-protocol-pulse/server.c b/src/modules/module-protocol-pulse/server.c
-index aeab710b0..637757dfd 100644
---- a/src/modules/module-protocol-pulse/server.c
-+++ b/src/modules/module-protocol-pulse/server.c
-@@ -576,7 +576,7 @@ static bool is_stale_socket(int fd, const struct sockaddr_un *addr_un)
-
- static int check_socket_activation(const char *path)
- {
-- const int n = listen_fd();
-+ const int n = listen_fds();
-
- for (int i = 0; i < n; i++) {
- const int fd = LISTEN_FDS_START + i;
-diff --git a/src/modules/network-utils.h b/src/modules/network-utils.h
-index a89b7d3bd..6ff80dd7a 100644
---- a/src/modules/network-utils.h
-+++ b/src/modules/network-utils.h
-@@ -143,7 +143,7 @@ static inline bool pw_net_addr_is_any(struct sockaddr_storage *addr)
-
- /* Returns the number of file descriptors passed for socket activation.
- * Returns 0 if none, -1 on error. */
--static inline int listen_fd(void)
-+static inline int listen_fds(void)
- {
- uint32_t n;
- int i, flags;
-@@ -161,8 +161,6 @@ static inline int listen_fd(void)
- return -1;
- }
-
-- unsetenv("LISTEN_FDS");
--
- return (int)n;
- }
-
-@@ -192,12 +190,10 @@ static inline int is_socket_unix(int fd, int type, const char *path)
- if (addr.sun_family != AF_UNIX)
- return 0;
- size_t length = strlen(path);
-- if (length > 0) {
-- if (len < offsetof(struct sockaddr_un, sun_path) + length)
-- return 0;
-- if (memcmp(addr.sun_path, path, length) != 0)
-- return 0;
-- }
-+ if (len < offsetof(struct sockaddr_un, sun_path) + length + 1)
-+ return 0;
-+ if (memcmp(addr.sun_path, path, length + 1) != 0)
-+ return 0;
- }
-
- return 1;
-2.34.1
-
deleted file mode 100644
@@ -1,89 +0,0 @@
-From fa64e2873682180eae5ce5bd02298fa6739cf005 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= <pobrn@protonmail.com>
-Date: Thu, 19 Feb 2026 20:56:36 +0100
-Subject: [PATCH] treewide: fix some `-Wdiscarded-qualifiers`
-
-Newer glibc versions have made certain `str*()` functions into macros
-that ensure that the const-ness of the argument is propagated to the
-return type.
-
-Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
-Upstream-Status: Backport [https://github.com/PipeWire/pipewire/commit/e46bfe67b60458e444ee2495209144b49e97d2f1]
----
- pipewire-jack/src/pipewire-jack.c | 2 +-
- spa/plugins/bluez5/bluez5-dbus.c | 7 ++-----
- spa/plugins/support/logger.c | 4 ++--
- 3 files changed, 5 insertions(+), 8 deletions(-)
-
-diff --git a/pipewire-jack/src/pipewire-jack.c b/pipewire-jack/src/pipewire-jack.c
-index 1bef74283..73627a67e 100644
---- a/pipewire-jack/src/pipewire-jack.c
-+++ b/pipewire-jack/src/pipewire-jack.c
-@@ -5318,7 +5318,7 @@ int jack_set_freewheel(jack_client_t* client, int onoff)
- pw_thread_loop_lock(c->context.loop);
- str = pw_properties_get(c->props, PW_KEY_NODE_GROUP);
- if (str != NULL) {
-- char *p = strstr(str, ",pipewire.freewheel");
-+ const char *p = strstr(str, ",pipewire.freewheel");
- if (p == NULL)
- p = strstr(str, "pipewire.freewheel");
- if (p == NULL && onoff)
-diff --git a/spa/plugins/bluez5/bluez5-dbus.c b/spa/plugins/bluez5/bluez5-dbus.c
-index 21a5e53de..7dfe45911 100644
---- a/spa/plugins/bluez5/bluez5-dbus.c
-+++ b/spa/plugins/bluez5/bluez5-dbus.c
-@@ -720,14 +720,12 @@ static const char *bap_features_get_uuid(struct bap_features *feat, size_t i)
- /** Get feature name at \a i, or NULL if uuid doesn't match */
- static const char *bap_features_get_name(struct bap_features *feat, size_t i, const char *uuid)
- {
-- char *pos;
--
- if (i >= feat->dict.n_items)
- return NULL;
- if (!spa_streq(feat->dict.items[i].value, uuid))
- return NULL;
-
-- pos = strchr(feat->dict.items[i].key, ':');
-+ const char *pos = strchr(feat->dict.items[i].key, ':');
- if (!pos)
- return NULL;
- return pos + 1;
-@@ -1336,7 +1334,6 @@ static struct spa_bt_adapter *adapter_find(struct spa_bt_monitor *monitor, const
- static int parse_modalias(const char *modalias, uint16_t *source, uint16_t *vendor,
- uint16_t *product, uint16_t *version)
- {
-- char *pos;
- unsigned int src, i, j, k;
-
- if (spa_strstartswith(modalias, "bluetooth:"))
-@@ -1346,7 +1343,7 @@ static int parse_modalias(const char *modalias, uint16_t *source, uint16_t *vend
- else
- return -EINVAL;
-
-- pos = strchr(modalias, ':');
-+ const char *pos = strchr(modalias, ':');
- if (pos == NULL)
- return -EINVAL;
-
-diff --git a/spa/plugins/support/logger.c b/spa/plugins/support/logger.c
-index c6e6ca4b8..6ea5f31b5 100644
---- a/spa/plugins/support/logger.c
-+++ b/spa/plugins/support/logger.c
-@@ -73,7 +73,7 @@ impl_log_logtv(void *object,
- char timestamp[18] = {0};
- char topicstr[32] = {0};
- char filename[64] = {0};
-- char location[1000 + RESERVED_LENGTH], *p, *s;
-+ char location[1000 + RESERVED_LENGTH], *p;
- static const char * const levels[] = { "-", "E", "W", "I", "D", "T", "*T*" };
- const char *prefix = "", *suffix = "";
- int size, len;
-@@ -118,7 +118,7 @@ impl_log_logtv(void *object,
-
-
- if (impl->line && line != 0) {
-- s = strrchr(file, '/');
-+ const char *s = strrchr(file, '/');
- spa_scnprintf(filename, sizeof(filename), "[%16.16s:%5i %s()]",
- s ? s + 1 : file, line, func);
- }
similarity index 98%
rename from meta-multimedia/recipes-multimedia/pipewire/pipewire_1.6.0.bb
rename to meta-multimedia/recipes-multimedia/pipewire/pipewire_1.6.2.bb
@@ -12,11 +12,9 @@ LIC_FILES_CHKSUM = " \
DEPENDS = "dbus ncurses"
-SRCREV = "700cea78dbe7564131d51b21a7795e2567ee048a"
+SRCREV = "95da54a482b68475958bbc3fa572a9c20df0df74"
BRANCH = "${@oe.utils.trim_version('${PV}', 2)}"
-SRC_URI = "git://gitlab.freedesktop.org/pipewire/pipewire.git;branch=${BRANCH};protocol=https;tag=${PV} \
- file://0001-treewide-fix-some-Wdiscarded-qualifiers.patch \
- file://0001-module-protocol-native-Fix-socket-activation.patch"
+SRC_URI = "git://gitlab.freedesktop.org/pipewire/pipewire.git;branch=${BRANCH};protocol=https;tag=${PV}"
inherit meson pkgconfig systemd gettext useradd
- remove two backport patches PipeWire 1.6.2 (2026-03-16) This is a bugfix release that is API and ABI compatible with the previous 1.6.x releases. Highlights - Fix a potential crash when the wrong memory was freed. - Fix a optimization with shared memory over some links that could cause errors later on. - Fix SOFA filter and default control input in LADSPA and LV2. - Some other small fixes and improvements. PipeWire - Remove an optimization to skip share mem in links, it causes problems later on. (#5159) Modules - Don't try to free invalid memory or close invalid fds when the client aborted before allocating buffer memory. (#5162) SPA - support ACP_IGNORE_DB in udev. - Use 0x as a prefix for hex values. - Mark Props as write-only in libcamera. - Small optimization in the audio mixer. - Fix initialization of control properties for SOFA and biquads in the filter-graph. (#5152) - Fix min/max default values for LADSPA and LV2. JACK - Fix jack_port_type_id(). Return values that are compatible with JACK1/2. Older versions: PipeWire 1.6.1 (2026-03-09) This is a bugfix release that is API and ABI compatible with the previous 1.6.x releases. Highlights - Fix socket activation, which could cause a failure to start PipeWire in some setups. - Fix crashes in many JACK apps when nodes/ports are quickly added/removed such as when there are notifications (like when changing the volume in KDE). - Fix playback of encoded formats in pw-cat again. - Some other smaller fixes and improvements. Modules - Fix socket activation. (#5140) - Remove node.link-group from driver nodes. SPA - Fix the libcamera stop sequence. JACK - Never return NULL from jack_port_by_id(). (#3512) GStreamer - Improve the timestamps on buffers. Tools - Fix playback of encoded formats. (#5155) --- ...rotocol-native-Fix-socket-activation.patch | 86 ------------------ ...ewide-fix-some-Wdiscarded-qualifiers.patch | 89 ------------------- .../{pipewire_1.6.0.bb => pipewire_1.6.2.bb} | 6 +- 3 files changed, 2 insertions(+), 179 deletions(-) delete mode 100644 meta-multimedia/recipes-multimedia/pipewire/pipewire/0001-module-protocol-native-Fix-socket-activation.patch delete mode 100644 meta-multimedia/recipes-multimedia/pipewire/pipewire/0001-treewide-fix-some-Wdiscarded-qualifiers.patch rename meta-multimedia/recipes-multimedia/pipewire/{pipewire_1.6.0.bb => pipewire_1.6.2.bb} (98%)