git » audacity.git » commit 72942c6

Rebuild to fix issues with LTO affecting UI widgets.

author David Runge
2023-05-02 16:24:55 UTC
committer David Runge
2023-05-02 16:24:55 UTC
parent d723cb02f8b0e924ff95feb16076a1654f87d944

Rebuild to fix issues with LTO affecting UI widgets.

Disable LTO as it breaks some of the UI widgets:
https://github.com/audacity/audacity/issues/4637
https://github.com/audacity/audacity/issues/4639

PKGBUILD +3 -10

diff --git a/PKGBUILD b/PKGBUILD
index 8907b35..e6271b2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@ pkgname=(
   audacity-docs
 )
 pkgver=3.3.1
-pkgrel=1
+pkgrel=2
 epoch=1
 pkgdesc="A program that lets you manipulate digital audio waveforms"
 arch=(x86_64)
@@ -50,6 +50,7 @@ makedepends=(
   vamp-plugin-sdk
   vst3sdk
 )
+options=(!lto)
 source=(
   https://github.com/audacity/audacity/archive/refs/tags/$_name-$pkgver.tar.gz
   https://github.com/$pkgbase/$pkgbase/releases/download/$_name-$pkgver/$pkgbase-manual-v$pkgver.tar.gz
@@ -74,7 +75,7 @@ build() {
     -D audacity_obey_system_dependencies=ON
     -D audacity_use_vst3sdk=system
     -S $pkgname-$_name-$pkgver
-    -Wno-dev
+    -W no-dev
   )
 
   export VST3SDK='/usr/share/vst3sdk'
@@ -142,14 +143,6 @@ package_audacity() {
 
   DESTDIR="$pkgdir" cmake --install build
   install -vDm 644 $pkgname-$_name-$pkgver/lib-src/libnyquist/nyquist/license.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.nyquist"
-
-  # remove unsafe RPATH: https://github.com/audacity/audacity/issues/3289
-  (
-  cd "$pkgdir/usr/lib/$pkgname/modules"
-  chrpath --delete mod-script-pipe.so
-  chmod 755 mod-script-pipe.so
-  )
-  # NOTE: private libraries are public: https://github.com/audacity/audacity/issues/3812
 }
 
 package_audacity-docs() {