You are not logged in.

#1 2023-09-28 15:32:25

stea
Member
Registered: 2023-08-30
Posts: 17

[SOLVED] Trouble building surge 1.9.0-3

The first problem I encountered was that sha512sums and b2sums of the PKGBUILD were wrong, so I updated them and commented about it on the AUR page. And then, during build(), I got the error

make: *** [Makefile:111: all] Error 2

I've tried building in a clean chroot, and I made sure my build environment was up-to-date with -Syu.
Full output of makepkg http://0x0.st/HVvV.txt

Last edited by stea (2023-09-28 23:29:17)

Offline

#2 2023-09-28 17:00:25

loqs
Member
Registered: 2014-03-06
Posts: 17,304

Re: [SOLVED] Trouble building surge 1.9.0-3

Please try applying the diff below to the surge PKGBUILD.  It updates the checksum for the changed github patch.  It switches to the catch2 package from the bundled copy to avoid the issue you encountered [1].  It also disabled LTO which was triggering '*** buffer overflow detected ***: terminated' later in the build.

diff --git a/PKGBUILD b/PKGBUILD
index 73036df..3ee71d0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,23 +12,26 @@ groups=('lv2-plugins' 'pro-audio' 'vst3-plugins')
 depends=('cairo' 'fontconfig' 'gcc-libs' 'glibc' 'libx11' 'libxcb'
 'libxkbcommon-x11' 'xcb-util' 'xcb-util-cursor' 'xcb-util-image'
 'xcb-util-keysyms' 'xcb-util-renderutil' 'xdg-utils')
-makedepends=('cmake' 'freetype2' 'libsndfile' 'lv2' 'python')
+makedepends=('cmake' 'freetype2' 'libsndfile' 'lv2' 'python' 'catch2')
 optdepends=(
   'lv2-host: for the LV2 plugin'
   'vst3-host: for the VST3 plugin'
 )
 checkdepends=('lv2lint')
 replaces=('surge-synthesizer')
+options=(!lto)
 source=("${pkgname}-${pkgver}.tgz::https://github.com/surge-synthesizer/releases/releases/download/${pkgver}/SurgeSrc_${pkgver}.tgz"
         "${pkgname}-1.9.0-test.patch::https://github.com/surge-synthesizer/surge/pull/4397/commits/077fbdda1c70413b6ff1af26f5ee0a7b814aa934.patch")
 sha512sums=('f06caae297026e9bbccdb097a47341dc1abd17dc7988d8d46368bec202fe701b1b7c9614b441f8d00a5a3a4f386d870a2da86c422ddd7324db216de7baa00836'
-            '90d5760b64bcbd782c6318d92ac19a89f84eb63bfe96c5122830cbdd1a78806e8422d1969bc1a8888e20fa2fd0872c69c0d298b909b3006067993fb2177ab2d5')
+            'c39a9afc1aaefcb5f58e1e7fde9a02958648ab02a3f8dcb8b4f60fee4bc67c75ceaac7448fc32f8b8322e284fa85c8ed684b8298627b95169a63776f7acb2625')
 b2sums=('b6574a48feefe6173afb2185be64423bb70d51d7376e9b5c44c4882d8e3e078c6b0430cb33aa23f9858a21db0be7b0dddfeebb57625149d79f066bb23639882e'
-        '7ca2599f7340e63f0f5f5e4d097c28fbc4d68d06c4de33da63b55b50404ebf14007717aa803dea28c0d124b70887848d4479ff19a640f752e13839fbf6f0a7f3')
+        'c000bcde88e448bbe1b39eb3be80812c3fb953e0e528bb3d647bc03edb76b76fbb02173667ea3b5bad371a33d67ea30be41cee5ff4c1936963f5c4bd66a695a0')
 
 prepare() {
   mv -v "$pkgname" "$pkgname-$pkgver"
   cd "$pkgname-$pkgver"
+  rm libs/catch2/include/catch2/catch2.hpp
+  ln -s /usr/include/catch2/catch.hpp libs/catch2/include/catch2/catch2.hpp
   # first shot at improving reproducibility:
   # https://github.com/surge-synthesizer/surge/issues/2389
   sed -e 's/@SURGE_BUILD_DATE@/0/g' \

[1] https://github.com/catchorg/Catch2/issues/2421

Last edited by loqs (2023-09-28 17:00:55)

Offline

#3 2023-09-28 23:29:05

stea
Member
Registered: 2023-08-30
Posts: 17

Re: [SOLVED] Trouble building surge 1.9.0-3

Thank you. The build works now.

Offline

Board footer

Powered by FluxBB