summaryrefslogtreecommitdiffstats
path: root/debian/patches/Don-t-build_same_binary_twice.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/Don-t-build_same_binary_twice.patch')
-rw-r--r--debian/patches/Don-t-build_same_binary_twice.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/debian/patches/Don-t-build_same_binary_twice.patch b/debian/patches/Don-t-build_same_binary_twice.patch
new file mode 100644
index 0000000..1854dd9
--- /dev/null
+++ b/debian/patches/Don-t-build_same_binary_twice.patch
@@ -0,0 +1,36 @@
+From: Dylan Aïssi <dylan.aissi@collabora.com>
+Date: Thu, 4 Nov 2021 16:01:36 +0100
+Subject: [PATCH] meson: create a symlink for pipewire-pulse instead of
+ building binary twice
+
+Because meson does not have native support for symlinks.
+See https://github.com/mesonbuild/meson/issues/1602
+
+Inspired by xserver:
+https://gitlab.freedesktop.org/xorg/xserver/-/commit/a3931ec6f43857aeed7feac5d223d7db6728145e
+
+Signed-off-by: Dylan Aïssi <dylan.aissi@collabora.com>
+---
+ src/daemon/meson.build | 12 +++++-------
+ 1 file changed, 5 insertions(+), 7 deletions(-)
+
+--- a/src/daemon/meson.build
++++ b/src/daemon/meson.build
+@@ -93,12 +93,11 @@
+ dependencies : [ spa_dep, pipewire_dep, ],
+ )
+
+-executable('pipewire-pulse',
+- pipewire_daemon_sources,
+- install: true,
+- c_args : pipewire_c_args,
+- include_directories : [ configinc ],
+- dependencies : [ spa_dep, pipewire_dep, ],
++meson.add_install_script(
++ 'sh', '-c',
++ 'ln -fs pipewire @0@@1@'.format(
++ '${DESTDIR}',
++ join_paths(get_option('prefix'), get_option('bindir'), 'pipewire-pulse'))
+ )
+
+ executable('pipewire-avb',