summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Matteo Bernardini2024-02-03 16:12:51 +0100
committer Matteo Bernardini2024-03-16 09:16:49 +0100
commit73e0e4094d8b3d1174637b6c8e3b2367736fd020 (patch)
tree08c197af558e2d4d14983a9063dfc202943280d2
parentf2fd02d810ccafdcb54cd1ce380341a85bbefd77 (diff)
downloadslackbuilds-guitarix.tar.gz
audio/guitarix: Patch for the newer compiler.guitarix
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r--audio/guitarix/guitarix.SlackBuild2
-rw-r--r--audio/guitarix/patches/always_inline.patch22
-rw-r--r--audio/guitarix/patches/gcc-13.patch12
3 files changed, 36 insertions, 0 deletions
diff --git a/audio/guitarix/guitarix.SlackBuild b/audio/guitarix/guitarix.SlackBuild
index f55fb75477..eadb51e8cd 100644
--- a/audio/guitarix/guitarix.SlackBuild
+++ b/audio/guitarix/guitarix.SlackBuild
@@ -89,6 +89,8 @@ if [ "${LV2:-yes}" = "no" ]; then
LV2OPT=--no-lv2
fi
+for i in $CWD/patches/*; do patch -p2 < $i ; done
+
# grrr, -DNDEBUG doesn't get added to the flags automatically...
LIBDIR="/usr/lib${LIBDIRSUFFIX}"
./waf configure \
diff --git a/audio/guitarix/patches/always_inline.patch b/audio/guitarix/patches/always_inline.patch
new file mode 100644
index 0000000000..940649f11c
--- /dev/null
+++ b/audio/guitarix/patches/always_inline.patch
@@ -0,0 +1,22 @@
+diff --git a/trunk/src/ladspa/ladspa_guitarix.cpp b/trunk/src/ladspa/ladspa_guitarix.cpp
+index 1fccffb3..85c3a766 100644
+--- a/trunk/src/ladspa/ladspa_guitarix.cpp
++++ b/trunk/src/ladspa/ladspa_guitarix.cpp
+@@ -16,8 +16,6 @@
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+-#define always_inline inline __attribute__((always_inline))
+-
+ #include <stdlib.h>
+ #include <string.h>
+ #include <ladspa.h>
+@@ -34,6 +32,8 @@
+ #include "gx_faust_plugins.h"
+ #include "../plugins/pluginlib.h"
+
++#define always_inline inline __attribute__((always_inline))
++
+ #include "faust/gx_ampout_ladspa.cc"
+ #include "faust/gx_outputlevel_ladspa.cc"
+
diff --git a/audio/guitarix/patches/gcc-13.patch b/audio/guitarix/patches/gcc-13.patch
new file mode 100644
index 0000000000..90681810b1
--- /dev/null
+++ b/audio/guitarix/patches/gcc-13.patch
@@ -0,0 +1,12 @@
+diff --git a/trunk/src/LV2/DSP/gx_common.h b/trunk/src/LV2/DSP/gx_common.h
+index 71108442..ea230e34 100644
+--- a/trunk/src/LV2/DSP/gx_common.h
++++ b/trunk/src/LV2/DSP/gx_common.h
+@@ -28,6 +28,7 @@
+ #include <iostream>
+ #include <cstring>
+ #include <unistd.h>
++#include <cstdint>
+
+ ///////////////////////// DENORMAL PROTECTION WITH SSE /////////////////
+