diff --git a/srcpkgs/chuck/patches/musl-glob.patch b/srcpkgs/chuck/patches/musl-glob.patch new file mode 100644 index 00000000000..6083183bc36 --- /dev/null +++ b/srcpkgs/chuck/patches/musl-glob.patch @@ -0,0 +1,16 @@ +In musl libc there is no GLOB_TILDE defined. + +--- chuck-1.3.5.2/src/util_string.cpp 2015-10-21 11:04:45.000000000 +0200 ++++ chuck-1.3.5.2/src/util_string.cpp 2015-10-25 15:54:10.284686182 +0100 +@@ -41,6 +41,11 @@ + #endif // __PLATFORM_LINUX__ + + #include ++ ++#if !defined(__GLIBC__) ++#define GLOB_TILDE 0 // unsupported GNU libc extension ++#endif ++ + using namespace std; + + diff --git a/srcpkgs/chuck/patches/musl-limits_h.patch b/srcpkgs/chuck/patches/musl-limits_h.patch new file mode 100644 index 00000000000..38d1819e6e9 --- /dev/null +++ b/srcpkgs/chuck/patches/musl-limits_h.patch @@ -0,0 +1,12 @@ +PATH_MAX is defined in + +--- chuck-1.3.5.2/src/util_serial.cpp 2015-10-21 11:04:45.000000000 +0200 ++++ chuck-1.3.5.2/src/util_serial.cpp 2015-10-25 15:57:34.953700938 +0100 +@@ -118,6 +118,7 @@ + #elif defined(__PLATFORM_LINUX__) + + ++#include + #include + #include + #include diff --git a/srcpkgs/chuck/patches/musl-termios_h.patch b/srcpkgs/chuck/patches/musl-termios_h.patch new file mode 100644 index 00000000000..09f66d344d4 --- /dev/null +++ b/srcpkgs/chuck/patches/musl-termios_h.patch @@ -0,0 +1,33 @@ +The header file is obsolete. Instead use the +header and the struct termios for musl libc. + +--- chuck-1.3.5.2/src/util_console.cpp 2015-10-21 11:04:45.000000000 +0200 ++++ chuck-1.3.5.2/src/util_console.cpp 2015-10-25 15:50:25.091669947 +0100 +@@ -95,9 +95,12 @@ + #ifdef __PLATFORM_MACOSX__ + #include + static struct termios g_save; +-#else ++#elif defined(__GLIBC__) + #include + static struct termio g_save; ++#else ++ #include ++ static struct termios g_save; + #endif + + #include +@@ -122,9 +125,12 @@ + #ifdef __PLATFORM_MACOSX__ + struct termios term; + if( ioctl( 0, TIOCGETA, &term ) == -1 ) +-#else ++#elif defined(__GLIBC__) + struct termio term; + if( ioctl( 0, TCGETA, &term ) == -1 ) ++#else ++ struct termios term; ++ if( ioctl( 0, TCGETA, &term ) == -1 ) + #endif + { + EM_log( CK_LOG_SEVERE, "(kbhit disabled): standard input not a tty!"); diff --git a/srcpkgs/chuck/template b/srcpkgs/chuck/template index ff8c4b791c3..fb665943031 100644 --- a/srcpkgs/chuck/template +++ b/srcpkgs/chuck/template @@ -1,7 +1,7 @@ # Template file for 'chuck' pkgname=chuck version=1.3.5.2 -revision=1 +revision=2 build_wrksrc=src hostmakedepends="bison flex" makedepends="jack-devel libsndfile-devel liblo-devel"