From 02b1541b62f13c2333567b8fc090016a8cdc0b72 Mon Sep 17 00:00:00 2001 From: David Spencer Date: Fri, 21 Aug 2015 14:17:30 +0100 Subject: audio/SuperCollider: Patched SlackBuild. Fixes build failure with gcc-4.9 on -current. Signed-off-by: David Spencer Signed-off-by: Willy Sudiarto Raharjo --- audio/SuperCollider/SuperCollider.SlackBuild | 3 +++ audio/SuperCollider/ftbfs-gcc-4.9.patch | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 audio/SuperCollider/ftbfs-gcc-4.9.patch (limited to 'audio/SuperCollider') diff --git a/audio/SuperCollider/SuperCollider.SlackBuild b/audio/SuperCollider/SuperCollider.SlackBuild index 26abf77a4668..4deed9ce5a80 100644 --- a/audio/SuperCollider/SuperCollider.SlackBuild +++ b/audio/SuperCollider/SuperCollider.SlackBuild @@ -61,6 +61,9 @@ if [ "$LIBDIRSUFFIX" = "64" ]; then patch -p1 < $CWD/fixups_for_x86_64.diff fi +# Fix build failure with gcc-4.9 (thanks to Debian) +patch -p1 < $CWD/ftbfs-gcc-4.9.patch + # Pass AVAHI=yes to the script to enable avahi support if [ "${AVAHI:-no}" = "yes" ]; then avahi="OFF"; else avahi="ON"; fi diff --git a/audio/SuperCollider/ftbfs-gcc-4.9.patch b/audio/SuperCollider/ftbfs-gcc-4.9.patch new file mode 100644 index 000000000000..1b124f727776 --- /dev/null +++ b/audio/SuperCollider/ftbfs-gcc-4.9.patch @@ -0,0 +1,20 @@ +From: Felipe Sateler +Date: Fri, 6 Jun 2014 13:15:18 -0400 +Subject: Fix implementation of aligned_allocator::construct. + +Fixes a build failure with gcc >= 4.9, because it defines __cplusplus >= 201103L. + +A typo, apparently. This patch can be dropped in the next upstream release. +Index: supercollider/server/supernova/utilities/malloc_aligned.hpp +=================================================================== +--- supercollider.orig/server/supernova/utilities/malloc_aligned.hpp 2014-09-11 09:15:20.399357542 +0100 ++++ supercollider/server/supernova/utilities/malloc_aligned.hpp 2014-09-11 09:15:20.399357542 +0100 +@@ -243,7 +243,7 @@ + template< class U, class... Args > + void construct(U * p, Args&& ... args) + { +- ::new(p) T(std::forward(args)...); ++ ::new(p) U(std::forward(args)...); + } + #endif + -- cgit v1.2.3