git » pipewire.git » commit 84c34d5

upgpkg: 1:0.3.75-2

author David Runge
2023-07-24 14:32:30 UTC
committer David Runge
2023-07-24 14:32:30 UTC
parent 32f3912d87e54684df8c3bf024f4044f2811d2d6

upgpkg: 1:0.3.75-2

Rebuild to add missing include (which breaks building clients):
https://gitlab.freedesktop.org/pipewire/pipewire/-/merge_requests/1664

PKGBUILD +13 -3
pipewire-0.3.75-add_missing_header.patch +26 -0

diff --git a/PKGBUILD b/PKGBUILD
index d3d9f66..9494448 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -21,7 +21,7 @@ pkgname=(
 )
 _commit=a3bd0f7a0a8dec9045deeb5eb3eb92b09ff75d57  # tags/0.3.75
 pkgver=0.3.75
-pkgrel=1
+pkgrel=2
 epoch=1
 pkgdesc="Low-latency audio/video router and processor"
 url="https://pipewire.org"
@@ -65,8 +65,12 @@ makedepends=(
   webrtc-audio-processing
 )
 checkdepends=(desktop-file-utils)
-source=("git+https://gitlab.freedesktop.org/pipewire/pipewire.git#commit=$_commit")
-b2sums=('SKIP')
+source=(
+  "git+https://gitlab.freedesktop.org/pipewire/pipewire.git#commit=$_commit"
+  $pkgbase-0.3.75-add_missing_header.patch
+)
+b2sums=('SKIP'
+        'fbf3a698d61fa6f098d9560378c64f9520d2a82957fa11c8dc9a0cad075b3d68de6db70e9842eeb9275f452283ed87cd96a7cfe0bb52e758efd3df8e93bea6d5')
 
 pkgver() {
   cd pipewire
@@ -74,6 +78,9 @@ pkgver() {
 }
 
 prepare() {
+  # fix missing include: https://gitlab.freedesktop.org/pipewire/pipewire/-/merge_requests/1664
+  patch -Np1 -d $pkgbase -i ../$pkgname-0.3.75-add_missing_header.patch
+
   cd pipewire
 
   # remove export of LD_LIBRARY_PATH for pw-jack as it would add /usr/lib
@@ -382,7 +389,10 @@ package_pipewire-roc() {
 package_gst-plugin-pipewire() {
   pkgdesc="Multimedia graph framework - pipewire plugin"
   depends=(
+    glib2
+    glibc
     gst-plugins-base-libs
+    gstreamer
     libpipewire-$_ver.so
     pipewire
     pipewire-session-manager
diff --git a/pipewire-0.3.75-add_missing_header.patch b/pipewire-0.3.75-add_missing_header.patch
new file mode 100644
index 0000000..cff7678
--- /dev/null
+++ b/pipewire-0.3.75-add_missing_header.patch
@@ -0,0 +1,26 @@
+From 193384b26aba3917d086ac3f009aa2cab9d197d2 Mon Sep 17 00:00:00 2001
+From: "Tom A. Wagner" <tom.a.wagner@protonmail.com>
+Date: Mon, 24 Jul 2023 12:48:33 +0200
+Subject: [PATCH] pipewire: add missing stdbool.h include to version.h.in
+
+The header file only works when included in a file where stdbool.h was already included otherwise.
+---
+ src/pipewire/version.h.in | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/pipewire/version.h.in b/src/pipewire/version.h.in
+index 87fc0cfad..94c645b3a 100644
+--- a/src/pipewire/version.h.in
++++ b/src/pipewire/version.h.in
+@@ -11,6 +11,8 @@
+ extern "C" {
+ #endif
+ 
++#include <stdbool.h>
++
+ /** Return the version of the header files. Keep in mind that this is
+ a macro and not a function, so it is impossible to get the pointer of
+ it. */
+-- 
+GitLab
+