From 87871bb06fa69f9d05a9555559f567b1eada32bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Thu, 21 May 2020 18:11:00 +0200 Subject: [PATCH] ir.lv2: Fix build with lv2 >= 1.1.18 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- .../0003-Fix-build-with-lv2-1.1.18.patch | 54 +++++++++++++++++++ recipes-musicians/ir.lv2/ir.lv2.inc | 1 + 2 files changed, 55 insertions(+) create mode 100644 recipes-musicians/ir.lv2/files/0003-Fix-build-with-lv2-1.1.18.patch diff --git a/recipes-musicians/ir.lv2/files/0003-Fix-build-with-lv2-1.1.18.patch b/recipes-musicians/ir.lv2/files/0003-Fix-build-with-lv2-1.1.18.patch new file mode 100644 index 0000000..602f4f8 --- /dev/null +++ b/recipes-musicians/ir.lv2/files/0003-Fix-build-with-lv2-1.1.18.patch @@ -0,0 +1,54 @@ +From d1c6690abb1b23712712da710b1629091fe13453 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= +Date: Thu, 21 May 2020 18:07:23 +0200 +Subject: [PATCH] Fix build with lv2 >= 1.1.18 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Upstream-Status: Pending + +Signed-off-by: Andreas Müller +--- + ir_gui.cc | 2 +- + lv2_ui.h | 4 ++-- + 2 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/ir_gui.cc b/ir_gui.cc +index 5a0a97b..5f67289 100644 +--- a/ir_gui.cc ++++ b/ir_gui.cc +@@ -1523,7 +1523,7 @@ static void cleanup(LV2UI_Handle ui) { + free(cp); + } + +-static LV2UI_Handle instantiate(const struct _LV2UI_Descriptor * descriptor, ++static LV2UI_Handle instantiate(const struct LV2UI_Descriptor * descriptor, + const char * plugin_uri, + const char * bundle_path, + LV2UI_Write_Function write_function, +diff --git a/lv2_ui.h b/lv2_ui.h +index d5b813d..b32fba7 100644 +--- a/lv2_ui.h ++++ b/lv2_ui.h +@@ -238,7 +238,7 @@ typedef void (*LV2UI_Write_Function)(LV2UI_Controller controller, + /** This struct contains the implementation of an UI. A pointer to an + object of this type is returned by the lv2ui_descriptor() function. + */ +-typedef struct _LV2UI_Descriptor { ++typedef struct LV2UI_Descriptor { + + /** The URI for this UI (not for the plugin it controls). */ + const char* URI; +@@ -268,7 +268,7 @@ typedef struct _LV2UI_Descriptor { + same array as the one the plugin host passes to a + plugin. + */ +- LV2UI_Handle (*instantiate)(const struct _LV2UI_Descriptor* descriptor, ++ LV2UI_Handle (*instantiate)(const struct LV2UI_Descriptor* descriptor, + const char* plugin_uri, + const char* bundle_path, + LV2UI_Write_Function write_function, +-- +2.21.1 + diff --git a/recipes-musicians/ir.lv2/ir.lv2.inc b/recipes-musicians/ir.lv2/ir.lv2.inc index 8c6190c..8228cc8 100644 --- a/recipes-musicians/ir.lv2/ir.lv2.inc +++ b/recipes-musicians/ir.lv2/ir.lv2.inc @@ -16,6 +16,7 @@ SRC_URI = " \ git://github.com/tomszilagyi/ir.lv2.git;branch=${IR_LV2_BRANCH} \ file://0001-Makefile-Do-not-add-usr-include-to-include-paths.patch \ file://0002-Makefile-force-correct-installation.patch \ + file://0003-Fix-build-with-lv2-1.1.18.patch \ " S = "${WORKDIR}/git"