aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan Van Assche <me@dylanvanassche.be>2021-04-24 08:07:13 +0200
committerMichał Polański <michal@polanski.me>2021-04-24 16:56:14 +0000
commitc7f87f84e32477c89b752fb4143818fb831160d3 (patch)
tree8e6c965c19c3e920ab7f7537ce438fd37432cc11
parent2b8a97c48687943b665ffc52ab64429919ff2573 (diff)
downloadaports-c7f87f84e32477c89b752fb4143818fb831160d3.tar.gz
aports-c7f87f84e32477c89b752fb4143818fb831160d3.tar.bz2
aports-c7f87f84e32477c89b752fb4143818fb831160d3.tar.xz
community/audacity: force X11 instead of Wayland
Audacity leaks a lot of memory under Wayland while not under X11. Enforcing Audacity to run under X11 makes it finally usable for recording audio when using Wayland based compositors.
-rw-r--r--community/audacity/0001-audacity.desktop-force-X11-instead-of-Wayland.patch27
-rw-r--r--community/audacity/APKBUILD4
2 files changed, 30 insertions, 1 deletions
diff --git a/community/audacity/0001-audacity.desktop-force-X11-instead-of-Wayland.patch b/community/audacity/0001-audacity.desktop-force-X11-instead-of-Wayland.patch
new file mode 100644
index 0000000000..794a8dd2eb
--- /dev/null
+++ b/community/audacity/0001-audacity.desktop-force-X11-instead-of-Wayland.patch
@@ -0,0 +1,27 @@
+From ff67cdd8ef68ba293719bc249555268bc598549c Mon Sep 17 00:00:00 2001
+From: Dylan Van Assche <me@dylanvanassche.be>
+Date: Sat, 24 Apr 2021 07:44:21 +0200
+Subject: [PATCH] audacity.desktop: force X11 instead of Wayland
+
+Audacity leaks a lot of memory under Wayland when recording.
+See https://gitlab.alpinelinux.org/alpine/aports/-/issues/12634
+---
+ src/audacity.desktop.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/audacity.desktop.in b/src/audacity.desktop.in
+index 71d3cb4e7..00b210062 100644
+--- a/src/audacity.desktop.in
++++ b/src/audacity.desktop.in
+@@ -50,7 +50,7 @@ Icon=@AUDACITY_NAME@
+ Type=Application
+ Categories=AudioVideo;Audio;AudioVideoEditing;
+
+-Exec=env UBUNTU_MENUPROXY=0 @AUDACITY_NAME@ %F
++Exec=env UBUNTU_MENUPROXY=0 env GDK_BACKEND=x11 @AUDACITY_NAME@ %F
+ StartupNotify=false
+ Terminal=false
+ MimeType=application/x-audacity-project;@MIMETYPES@
+--
+2.31.1
+
diff --git a/community/audacity/APKBUILD b/community/audacity/APKBUILD
index 09f3fda5b7..c5d9b72fd0 100644
--- a/community/audacity/APKBUILD
+++ b/community/audacity/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=audacity
pkgver=2.4.2
-pkgrel=1
+pkgrel=2
pkgdesc="Multitrack audio editor"
url="https://www.audacityteam.org/"
arch="all"
@@ -28,6 +28,7 @@ makedepends="
"
subpackages="$pkgname-doc $pkgname-lang"
source="https://github.com/audacity/audacity/archive/Audacity-$pkgver.tar.gz
+ 0001-audacity.desktop-force-X11-instead-of-Wayland.patch
lame.pc"
builddir="$srcdir"/audacity-Audacity-$pkgver
@@ -66,4 +67,5 @@ package() {
}
sha512sums="0d9cdabf5ba2c7207e8d8e4a8bdfc3e7d32277386436ecb480e3ff781720f5449a56b310ba91c78ca67afb752e2ab736abd5b7ce40d19d153bfc4a2067343a3d Audacity-2.4.2.tar.gz
+43556b6c9f4ea874c313a222c82db8b431f63d3c3cd71c00b4133c82f54d17682dc904de54d7de0f5df371a823adf7584bddab0884487187b047e5dbd8ef6c78 0001-audacity.desktop-force-X11-instead-of-Wayland.patch
c82375495c8332c600a636c87db3ef884b86b6e854afab5ff93f1214e96e18f3b8704cdaead017046fda1b0ae29ccf39ff14754aebf4c397911f1506cd7da6f2 lame.pc"