From 5856cc4d120489106979bacf5fc39478cdd08ee5 Mon Sep 17 00:00:00 2001 From: termux-pacman-bot Date: Fri, 21 Nov 2025 07:39:43 +0000 Subject: [PATCH] bump(main/pipewire): 1.4.9 Signed-off-by: Aditya Alok --- packages/pipewire/build.sh | 5 ++--- packages/pipewire/runtime_dir.patch | 8 ++++---- packages/pipewire/strdupa.patch | 26 ++++++++++++++++++++++++++ 3 files changed, 32 insertions(+), 7 deletions(-) create mode 100644 packages/pipewire/strdupa.patch diff --git a/packages/pipewire/build.sh b/packages/pipewire/build.sh index df5065d240..3d983c3f9c 100644 --- a/packages/pipewire/build.sh +++ b/packages/pipewire/build.sh @@ -3,10 +3,9 @@ TERMUX_PKG_DESCRIPTION="A server and user space API to deal with multimedia pipe TERMUX_PKG_LICENSE="MIT, LGPL-2.1, LGPL-3.0, GPL-2.0" TERMUX_PKG_LICENSE_FILE="COPYING, LICENSE" TERMUX_PKG_MAINTAINER="@termux" -TERMUX_PKG_VERSION="1.2.7" -TERMUX_PKG_REVISION=2 +TERMUX_PKG_VERSION="1.4.9" TERMUX_PKG_SRCURL="https://gitlab.freedesktop.org/pipewire/pipewire/-/archive/${TERMUX_PKG_VERSION}/pipewire-${TERMUX_PKG_VERSION}.tar.bz2" -TERMUX_PKG_SHA256=3c00292f9a419610c9eeb6e45b958d460afb601ecc6894012574a3b9f118616a +TERMUX_PKG_SHA256=e606aa3f6d53ec4c56fe35034d35cadfe0bbea1a5275e4e006dd7d1abaec6b92 TERMUX_PKG_AUTO_UPDATE=true TERMUX_PKG_DEPENDS="ffmpeg, glib, libc++, liblua54, libopus, libsndfile, libwebrtc-audio-processing, lilv, ncurses, openssl, pulseaudio, readline" diff --git a/packages/pipewire/runtime_dir.patch b/packages/pipewire/runtime_dir.patch index 1e8b2133b3..ad6d2cfa8b 100644 --- a/packages/pipewire/runtime_dir.patch +++ b/packages/pipewire/runtime_dir.patch @@ -86,12 +86,12 @@ --- a/src/tools/pw-container.c +++ b/src/tools/pw-container.c -@@ -150,7 +150,7 @@ int main(int argc, char *argv[]) +@@ -150,7 +150,7 @@ }; struct spa_error_location loc; int c, res, listen_fd, close_fd[2]; -- char temp[PATH_MAX] = "/tmp/pipewire-XXXXXX"; -+ char temp[PATH_MAX] = "@TERMUX_PREFIX@/tmp/pipewire-XXXXXX"; +- char temp[] = "/tmp/pipewire-XXXXXX"; ++ char temp[] = "@TERMUX_PREFIX@/tmp/pipewire-XXXXXX"; struct sockaddr_un sockaddr = {0}; - + data.props = pw_properties_new( diff --git a/packages/pipewire/strdupa.patch b/packages/pipewire/strdupa.patch new file mode 100644 index 0000000000..c7b8c9c4a2 --- /dev/null +++ b/packages/pipewire/strdupa.patch @@ -0,0 +1,26 @@ +--- pipewire-1.4.9/spa/plugins/filter-graph/filter-graph.c.orig 2025-11-17 12:09:43.614306994 +0530 ++++ pipewire-1.4.9/spa/plugins/filter-graph/filter-graph.c 2025-11-17 12:25:37.989005819 +0530 +@@ -34,6 +34,10 @@ + #include "audio-plugin.h" + #include "audio-dsp-impl.h" + ++#if !defined(strdupa) ++#define strdupa(s) strcpy(alloca(strlen(s) + 1), s) ++#endif ++ + #undef SPA_LOG_TOPIC_DEFAULT + #define SPA_LOG_TOPIC_DEFAULT &log_topic + SPA_LOG_TOPIC_DEFINE_STATIC(log_topic, "spa.filter-graph"); +--- pipewire-1.4.9/src/modules/network-utils.h.orig 2025-11-17 12:21:52.460494715 +0530 ++++ pipewire-1.4.9/src/modules/network-utils.h 2025-11-17 12:24:19.353902408 +0530 +@@ -12,6 +12,10 @@ + #define ifr_ifindex ifr_index + #endif + ++#if !defined(strdupa) ++#define strdupa(s) strcpy(alloca(strlen(s) + 1), s) ++#endif ++ + static inline int pw_net_parse_address(const char *address, uint16_t port, + struct sockaddr_storage *addr, socklen_t *len) + {