diff --git a/srcpkgs/tbb/patches/musl.patch b/srcpkgs/tbb/patches/musl.patch new file mode 100644 index 00000000000..0a3aa7d4f34 --- /dev/null +++ b/srcpkgs/tbb/patches/musl.patch @@ -0,0 +1,18 @@ +--- src/tbbmalloc/proxy.cpp.orig 2018-10-17 14:05:31.311723013 +0200 ++++ src/tbbmalloc/proxy.cpp 2018-10-17 14:06:32.972726194 +0200 +@@ -28,6 +28,7 @@ + // of aligned_alloc as required by new C++ standard, this makes it hard to + // redefine aligned_alloc here. However, running on systems with new libc + // version, it still needs it to be redefined, thus tricking system headers ++#if defined(__GLIBC__) + #if defined(__GLIBC_PREREQ) && !__GLIBC_PREREQ(2, 16) && _GLIBCXX_HAVE_ALIGNED_ALLOC + // tell that there is no aligned_alloc + #undef _GLIBCXX_HAVE_ALIGNED_ALLOC +@@ -37,6 +38,7 @@ + #include + #undef aligned_alloc + #endif // defined(__GLIBC_PREREQ)&&!__GLIBC_PREREQ(2, 16)&&_GLIBCXX_HAVE_ALIGNED_ALLOC ++#endif // defined(__GLIBC__) + #endif // __linux__ && !__ANDROID__ + + #include "proxy.h" diff --git a/srcpkgs/tbb/template b/srcpkgs/tbb/template index 7ed89e411ca..d46078348c2 100644 --- a/srcpkgs/tbb/template +++ b/srcpkgs/tbb/template @@ -16,9 +16,6 @@ checksum=a4875c6b6853213083e52ecd303546bdf424568ec67cfc7e51d132a7c037c66a only_for_archs="i686-musl x86_64-musl armv7l-musl aarch64-musl i686 x86_64 armv7l aarch64" case "$XBPS_TARGET_MACHINE" in - *-musl) - broken="../../src/tbbmalloc/proxy.cpp:31:47: error: missing binary operator before token (" - ;; armv7l*) make_build_args="arch=armv7" ;;