From ce00af85d5533a631a5dccde37971a9b00ac1ae8 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Feb 07 2020 16:16:58 +0000 Subject: First version Fix bluez5 plugins build --- diff --git a/0001-bluez5-declare-factory-as-extern.patch b/0001-bluez5-declare-factory-as-extern.patch new file mode 100644 index 0000000..f8597d3 --- /dev/null +++ b/0001-bluez5-declare-factory-as-extern.patch @@ -0,0 +1,25 @@ +From 7a976c7ca8e893960889f75a9c0b526f46c960c3 Mon Sep 17 00:00:00 2001 +From: Wim Taymans +Date: Fri, 7 Feb 2020 17:14:50 +0100 +Subject: [PATCH] bluez5: declare factory as extern + +--- + spa/plugins/bluez5/bluez5-monitor.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/spa/plugins/bluez5/bluez5-monitor.c b/spa/plugins/bluez5/bluez5-monitor.c +index e82ac5a8..71517cc6 100644 +--- a/spa/plugins/bluez5/bluez5-monitor.c ++++ b/spa/plugins/bluez5/bluez5-monitor.c +@@ -75,7 +75,7 @@ struct spa_bt_monitor { + struct spa_list transport_list; + }; + +-struct spa_handle_factory spa_a2dp_sink_factory; ++extern struct spa_handle_factory spa_a2dp_sink_factory; + + static void fill_item(struct spa_bt_monitor *this, struct spa_bt_transport *transport, + struct spa_pod **result, struct spa_pod_builder *builder) +-- +2.24.1 + diff --git a/pipewire0.2.spec b/pipewire0.2.spec index 5bd9c12..f002981 100644 --- a/pipewire0.2.spec +++ b/pipewire0.2.spec @@ -28,6 +28,7 @@ Source0: https://github.com/PipeWire/pipewire/archive/%{version}/pipewire-%{vers ## upstream patches Patch1: 0001-build-and-link-a2dp-codecs.c-as-well.patch +Patch2: 0001-bluez5-declare-factory-as-extern.patch ## upstreamable patches @@ -82,6 +83,7 @@ to interface with a PipeWire media server. %setup -q -T -b0 -n pipewire-%{version}%{?gitrel:-%{gitrel}-g%{shortcommit}} %patch1 -p1 -b .0001 +%patch2 -p1 -b .0002 %build %meson -D docs=false -D man=false -D gstreamer=disabled -D systemd=false