1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-12 18:59:50 +03:00

testing/faust: upgrade to 2.79.3

This commit is contained in:
Sertonix 2025-06-07 16:09:25 +02:00 committed by Patrycja Rosa
parent a9d8bd3fc8
commit 7b9853008e
4 changed files with 12 additions and 98 deletions

View file

@ -1,9 +1,9 @@
# Contributor: Francesco Camuffo <dev@fmac.xyz>
# Maintainer: Francesco Camuffo <dev@fmac.xyz>
pkgname=faust
pkgver=2.60.3
pkgrel=2
_llvmver=16
pkgver=2.79.3
pkgrel=0
_llvmver=20
pkgdesc="Functional programming language for realtime audio signal processing"
url="https://faust.grame.fr"
arch="all"
@ -27,8 +27,6 @@ subpackages="
"
source="$pkgname-$pkgver.tar.gz::https://github.com/grame-cncm/faust/releases/download/$pkgver/faust-$pkgver.tar.gz
busybox.patch
gcc13.patch
no-execinfo.patch
usage.patch
"
@ -37,10 +35,12 @@ prepare() {
# XXX: if the tests compile this faust segfaults
rm -v examples/physicalModeling/fds/2dKirchhoffThinPlate.dsp
# FIXME test fails
rm -v examples/misc/sflooper.dsp
}
build() {
cmake -B "$pkgname"-build -G Ninja \
cmake -B .build -G Ninja \
-S build \
-C build/backends/all.cmake \
-C build/targets/all.cmake \
@ -49,9 +49,10 @@ build() {
-DINCLUDE_DYNAMIC=ON \
-DINCLUDE_STATIC=OFF \
-DINCLUDE_ITP=ON \
-DLINK_LLVM_STATIC=OFF \
-DLLVM_CONFIG=/usr/lib/llvm$_llvmver/bin/llvm-config \
-Wno-dev
cmake --build "$pkgname"-build
cmake --build .build
make VERBOSE=1 -C tools/sound2faust sound2faust sound2file
}
@ -60,11 +61,11 @@ check() {
}
package() {
DESTDIR="$pkgdir" cmake --install "$pkgname"-build
DESTDIR="$pkgdir" cmake --install .build
make VERBOSE=1 PREFIX=/usr DESTDIR="$pkgdir" install -C tools/sound2faust
# remove support for platforms not likely wanted
rm -rvf "$pkgdir"/usr/bin/faust2au \
rm -rv "$pkgdir"/usr/bin/faust2au \
"$pkgdir"/usr/lib/ios-libsndfile.a \
"$pkgdir"/usr/share/faust/AU \
"$pkgdir"/usr/share/faust/android \
@ -109,9 +110,7 @@ vim() {
}
sha512sums="
cdb31a519f5615ecdb36336d67de524b10acfc6e5449fea1a5a154a37d29f028c3db1ac0ba5f3bb9e0a39e00057397724dd5ad711fbab2ceacfb4cc1dee3e011 faust-2.60.3.tar.gz
0170f8319be36f9ce9f0f70889a9fb4169751500f3cc5f8c4c84d918b671933cdcbd69cb6f006f200c5ea6b55f5e926278aa77dc41b7ab7dd9bc7a29e2e23275 faust-2.79.3.tar.gz
2e2aae4b3fe760e41b3a9b1b82edc9cfac674944efb41c296e1c71f80763cbadc72544e0cbd7f5048095322779c3d432838ea66d32376a29b95bb08fe8c25e96 busybox.patch
edb822664f2277e58af82f6e339668c11a822880928646fddc21f4c245e81b70f9bc5e2892008dfe5c56a23b46aa50c40607f6ccca3a42029b7a21b0bf317302 gcc13.patch
fb1ef67a0c1ba56ba98e5c85935566c263a7b51a44c8ffd1789f7379b9bd14cbb2b373392e70c1c9974163559dbed910be3af64ccd3198633758998dee5c7bb2 no-execinfo.patch
ac45a55400970952daf7918f48b3d13efd06d5b3ffc1fa41e71d83eb3f53b31031fec353ab74e40c66667dbc3c6b32b2b38249a7e85c890221374cada38d4285 usage.patch
ab000187d62478d68cad1c520dde86fd774709b32c49d7d278f366b02a37599ab983f195a8c8cc7bee94607c5507930c254f9b8583ee3cdd20df62e69e8214c6 usage.patch
"

View file

@ -1,24 +0,0 @@
diff --git a/architecture/faust/dsp/dsp.h b/architecture/faust/dsp/dsp.h
index efa6fa1..ed38c22 100644
--- a/architecture/faust/dsp/dsp.h
+++ b/architecture/faust/dsp/dsp.h
@@ -25,6 +25,7 @@
#ifndef __dsp__
#define __dsp__
+#include <cstdint>
#include <string>
#include <vector>
#include <cstdint>
diff --git a/compiler/generator/Text.hh b/compiler/generator/Text.hh
index d8ea070..0ffe6b0 100644
--- a/compiler/generator/Text.hh
+++ b/compiler/generator/Text.hh
@@ -24,6 +24,7 @@
#include <string.h>
+#include <cstdint>
#include <fstream>
#include <iostream>
#include <list>

View file

@ -1,22 +0,0 @@
diff --git a/compiler/errors/exception.hh b/compiler/errors/exception.hh
index 5aa80ac..c4a5bc3 100644
--- a/compiler/errors/exception.hh
+++ b/compiler/errors/exception.hh
@@ -29,7 +29,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
//#include <io.h>
#endif
-#if !defined(EMCC) && !defined(WIN32) && !defined(ANDROID) && !defined(ALPINE)
+#if 0 && !defined(EMCC) && !defined(WIN32) && !defined(ANDROID) && !defined(ALPINE)
#include <execinfo.h>
#endif
@@ -54,7 +54,7 @@ class faustexception : public std::runtime_error {
inline void stacktrace(std::stringstream& str, int val)
{
-#if !defined(EMCC) && !defined(WIN32) && !defined(ANDROID) && !defined(ALPINE)
+#if 0 && !defined(EMCC) && !defined(WIN32) && !defined(ANDROID) && !defined(ALPINE)
void* callstack[val];
int frames = backtrace(callstack, val);
char** strs = backtrace_symbols(callstack, frames);

View file

@ -800,45 +800,6 @@ index 581a9bc..453cd36 100755
CXXFLAGS+=" $MYGCCFLAGS" # So that additional CXXFLAGS can be used
diff --git a/tools/faust2appls/faust2wasm b/tools/faust2appls/faust2wasm
index 98b18a4..414fcac 100755
--- a/tools/faust2appls/faust2wasm
+++ b/tools/faust2appls/faust2wasm
@@ -2,7 +2,7 @@
. faustpath
. faustoptflags
-. usage.sh
+. faust-usage.sh
#-------------------------------------------------------------------
# Wrapping resources
diff --git a/tools/faust2appls/faust2webaudiowasm b/tools/faust2appls/faust2webaudiowasm
index c34e3cd..745eaa5 100755
--- a/tools/faust2appls/faust2webaudiowasm
+++ b/tools/faust2appls/faust2webaudiowasm
@@ -2,7 +2,7 @@
. faustpath
. faustoptflags
-. usage.sh
+. faust-usage.sh
#-------------------------------------------------------------------
# Wrapping resources
diff --git a/tools/faust2appls/faust2webaudiowast b/tools/faust2appls/faust2webaudiowast
index fc8c649..ba6af2a 100755
--- a/tools/faust2appls/faust2webaudiowast
+++ b/tools/faust2appls/faust2webaudiowast
@@ -2,7 +2,7 @@
. faustpath
. faustoptflags
-. usage.sh
+. faust-usage.sh
#-------------------------------------------------------------------
# Wrapping resources
diff --git a/tools/faust2appls/faust2winunity b/tools/faust2appls/faust2winunity
index bdb24c1..08ed834 100755
--- a/tools/faust2appls/faust2winunity