zynaddsubfx: patch out ill-conceived code; fix armv5*

This commit is contained in:
Jürgen Buchmüller 2020-03-29 09:06:14 +02:00
parent 386118cbbd
commit 6ead88f7fb
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,16 @@
Source: @pullmoll
Upstream: no
Reason: This piece of code is ill-conceived and cannot work. Remove it.
--- rtosc/src/dispatch.c 2019-03-10 17:16:45.000000000 +0100
+++ rtosc/src/dispatch.c 2020-03-29 09:02:42.916119722 +0200
@@ -289,8 +289,7 @@
return false;
} else if(type == 4) {
//extract substring
- const char *sub=NULL;
- return strstr(a,sub);
+ return false;
} else if(type == RTOSC_MATCH_OPTIONS || type == 6) {
return false;
} else if(type == RTOSC_MATCH_ENUMERATED) {

View File

@ -17,6 +17,9 @@ distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${version}/${pkgname}-${ver
checksum=7447322268114a1e0ac5f281ac37a09a78e761a7be61999caf79100049789f63
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
armv5*) configure_args+=" -DSUPPORT_NEON=NO";;
esac
# The x86 assembler check is broken for cross compiling
case "$XBPS_TARGET_MACHINE" in
x86_64*|i686*);;