From ae123c6f7eaa31ada3d82b6479b668186181740f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Sun, 13 May 2018 10:50:09 +0200 Subject: [PATCH] csound: fix i686* and *-musl builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jürgen Buchmüller --- srcpkgs/csound/patches/buffersize.patch | 11 +++++++++++ srcpkgs/csound/patches/musl.patch | 11 +++++++++++ srcpkgs/csound/patches/unused-variable.patch | 10 ++++++++++ 3 files changed, 32 insertions(+) create mode 100644 srcpkgs/csound/patches/buffersize.patch create mode 100644 srcpkgs/csound/patches/unused-variable.patch diff --git a/srcpkgs/csound/patches/buffersize.patch b/srcpkgs/csound/patches/buffersize.patch new file mode 100644 index 00000000000..d7e9712196d --- /dev/null +++ b/srcpkgs/csound/patches/buffersize.patch @@ -0,0 +1,11 @@ +--- OOps/ugrw1.c 2018-05-10 10:31:20.000000000 +0200 ++++ OOps/ugrw1.c 2018-05-13 10:40:15.438512047 +0200 +@@ -1057,7 +1057,7 @@ + */ + static int32_t sprints(char *outstring, char *fmt, MYFLT **kvals, int32_t numVals) + { +- char tmp[8],cc; ++ char tmp[10],cc; + int32_t j = 0; + int32_t len = 8192; + while (*fmt) { diff --git a/srcpkgs/csound/patches/musl.patch b/srcpkgs/csound/patches/musl.patch index 967c30cf8af..42fdf73b213 100644 --- a/srcpkgs/csound/patches/musl.patch +++ b/srcpkgs/csound/patches/musl.patch @@ -9,3 +9,14 @@ #include { +--- Opcodes/linuxjoystick.c 2018-05-10 10:31:20.000000000 +0200 ++++ Opcodes/linuxjoystick.c 2018-05-13 10:47:51.360535568 +0200 +@@ -36,7 +36,7 @@ + */ + + #include "linuxjoystick.h" +-#include ++#include + + static int32_t linuxjoystick (CSOUND *csound, LINUXJOYSTICK *stick) + { diff --git a/srcpkgs/csound/patches/unused-variable.patch b/srcpkgs/csound/patches/unused-variable.patch new file mode 100644 index 00000000000..9361060e8e0 --- /dev/null +++ b/srcpkgs/csound/patches/unused-variable.patch @@ -0,0 +1,10 @@ +--- Top/threadsafe.c 2018-05-10 10:31:20.000000000 +0200 ++++ Top/threadsafe.c 2018-05-13 10:45:03.246526895 +0200 +@@ -551,6 +551,7 @@ + csoundSpinLock(lock); + *pval = val; + csoundSpinUnLock(lock); ++ (void)x; + } + #endif + }