[arch-commits] Commit in suil/trunk (PKGBUILD suil-0.10.16-fix_gtk_linking.patch)
David Runge
dvzrv at gemini.archlinux.org
Fri Sep 2 20:02:58 UTC 2022
Date: Friday, September 2, 2022 @ 20:02:58
Author: dvzrv
Revision: 1290982
upgpkg: suil 0.10.16-3: Rebuild to fix an issue with plugins crashing hosts upon reopening their GUI.
Fix an issue that was affecting some hosts (e.g. ardour) when reoping a plugin UI:
https://gitlab.com/lv2/suil/-/issues/7
Added:
suil/trunk/suil-0.10.16-fix_gtk_linking.patch
Modified:
suil/trunk/PKGBUILD
------------------------------------+
PKGBUILD | 18 ++++++++---
suil-0.10.16-fix_gtk_linking.patch | 57 +++++++++++++++++++++++++++++++++++
2 files changed, 71 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-09-02 20:02:07 UTC (rev 1290981)
+++ PKGBUILD 2022-09-02 20:02:58 UTC (rev 1290982)
@@ -5,7 +5,7 @@
pkgbase=suil
pkgname=(suil suil-docs)
pkgver=0.10.16
-pkgrel=2
+pkgrel=3
pkgdesc="A lightweight C library for loading and wrapping LV2 plugin UIs"
arch=(x86_64)
url="https://drobilla.net/software/suil.html"
@@ -12,11 +12,16 @@
license=(ISC)
makedepends=(doxygen gtk2 gtk3 lv2 meson python-sphinx python-sphinx-lv2-theme qt5-base qt5-x11extras)
options=(debug)
-source=(https://download.drobilla.net/$pkgname-$pkgver.tar.xz{,.sig})
+source=(
+ https://download.drobilla.net/$pkgname-$pkgver.tar.xz{,.sig}
+ $pkgbase-0.10.16-fix_gtk_linking.patch
+)
sha512sums=('9b1dac07b017934a93f70d514ec477785683e7ed5949b62a2c4ad139c1e84265399f54d3140dcf0e542d20a0919286aacb52103c91e2f6fc7ebd707db2d98ac4'
- 'SKIP')
+ 'SKIP'
+ '79fbfe748714c430026d499bf9e7f46cc686e52dcb325d9a9c04206ad0324f7100453a54f7b5ca9eb2562aa0f36215666077346775ef3db8dbe88c361dc2fedf')
b2sums=('614217013b39215f4b6d9414451a55fbca42dd038c6bc961d3769660707bf2da45432c97628edef8dacb8630437bcb304d10616ced2fd9cf9a6a4d094f196f6c'
- 'SKIP')
+ 'SKIP'
+ 'e9d70fc61783acaf40670ce37ab68c57e244dd570ca1e2b9949f301eb31ad0203530f7e5230bc9904d58cde54bd86413052cd0fe2a24f3f68b70004cebf04f34')
validpgpkeys=('907D226E7E13FA337F014A083672782A9BF368F3') # David Robillard <d at drobilla.net>
_pick() {
@@ -29,6 +34,11 @@
done
}
+prepare() {
+ # fix issues with opening lv2 plugins multiple times: https://gitlab.com/lv2/suil/-/issues/7
+ patch -Np1 -d $pkgname-$pkgver -i ../$pkgbase-0.10.16-fix_gtk_linking.patch
+}
+
build() {
arch-meson $pkgname-$pkgver build -D cocoa=disabled
meson compile -C build
Added: suil-0.10.16-fix_gtk_linking.patch
===================================================================
--- suil-0.10.16-fix_gtk_linking.patch (rev 0)
+++ suil-0.10.16-fix_gtk_linking.patch 2022-09-02 20:02:58 UTC (rev 1290982)
@@ -0,0 +1,57 @@
+diff --git a/meson.build b/meson.build
+index b19e5e0..c72af31 100644
+--- a/meson.build
++++ b/meson.build
+@@ -43,6 +43,9 @@ subdir('meson/suppressions')
+ suil_abs_module_dir = get_option('prefix') / suil_module_dir
+ platform_defines = ['-DSUIL_MODULE_DIR="@0@"'.format(suil_abs_module_dir)]
+
++nodelete_c_link_args = cc.get_supported_link_arguments(['-Wl,-z,nodelete'])
++nodelete_cpp_link_args = cpp.get_supported_link_arguments(['-Wl,-z,nodelete'])
++
+ ################
+ # Dependencies #
+ ################
+@@ -220,6 +223,7 @@ if gtk2_dep.found() and qt5_dep.found()
+ include_directories: include_dirs,
+ install: true,
+ install_dir: suil_module_dir,
++ link_args: nodelete_cpp_link_args,
+ )
+ endif
+
+@@ -233,6 +237,7 @@ if gtk2_dep.found() and gtk2_x11_dep.found() and x11_dep.found()
+ include_directories: include_dirs,
+ install: true,
+ install_dir: suil_module_dir,
++ link_args: nodelete_c_link_args,
+ )
+ endif
+
+@@ -246,6 +251,7 @@ if gtk3_dep.found() and gtk3_x11_dep.found() and x11_dep.found()
+ include_directories: include_dirs,
+ install: true,
+ install_dir: suil_module_dir,
++ link_args: nodelete_c_link_args,
+ )
+ endif
+
+@@ -259,6 +265,7 @@ if gtk3_dep.found() and gtk3_x11_dep.found() and qt5_dep.found()
+ include_directories: include_dirs,
+ install: true,
+ install_dir: suil_module_dir,
++ link_args: nodelete_cpp_link_args,
+ )
+ endif
+
+@@ -285,6 +292,7 @@ if gtk2_dep.found() and host_machine.system() == 'windows'
+ include_directories: include_dirs,
+ install: true,
+ install_dir: suil_module_dir,
++ link_args: nodelete_cpp_link_args,
+ )
+ endif
+
+--
+GitLab
+
More information about the arch-commits
mailing list