[arch-commits] Commit in supercollider/trunk (PKGBUILD ftbfs-gcc-4.9.patch)
Evangelos Foutras
foutrelis at archlinux.org
Wed Jun 10 09:13:55 UTC 2015
Date: Wednesday, June 10, 2015 @ 11:13:55
Author: foutrelis
Revision: 135125
Fix build with recent GCC versions
Added:
supercollider/trunk/ftbfs-gcc-4.9.patch
Modified:
supercollider/trunk/PKGBUILD
---------------------+
PKGBUILD | 11 +++++++++--
ftbfs-gcc-4.9.patch | 20 ++++++++++++++++++++
2 files changed, 29 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-06-10 09:04:15 UTC (rev 135124)
+++ PKGBUILD 2015-06-10 09:13:55 UTC (rev 135125)
@@ -17,9 +17,16 @@
'vim: vim interface'
'ruby: vim support')
install="$pkgname.install"
-source=("http://download.sourceforge.net/project/$pkgname/Source/${pkgver%.*}/$_name-$pkgver-Source-linux.tar.bz2")
-md5sums=('14d6063933230c74e42f5923a811e7c6')
+source=("http://download.sourceforge.net/project/$pkgname/Source/${pkgver%.*}/$_name-$pkgver-Source-linux.tar.bz2"
+ "ftbfs-gcc-4.9.patch")
+md5sums=('14d6063933230c74e42f5923a811e7c6'
+ '257a9198e650638a9a43bad2812760f7')
+prepare() {
+ cd "$srcdir/$_name-Source"
+ patch -Np1 -i ../ftbfs-gcc-4.9.patch
+}
+
build() {
cd "$srcdir/$_name-Source"
[ -d b ] || mkdir b && cd b
Added: ftbfs-gcc-4.9.patch
===================================================================
--- ftbfs-gcc-4.9.patch (rev 0)
+++ ftbfs-gcc-4.9.patch 2015-06-10 09:13:55 UTC (rev 135125)
@@ -0,0 +1,20 @@
+From: Felipe Sateler <fsateler at debian.org>
+Date: Fri, 6 Jun 2014 13:15:18 -0400
+Subject: Fix implementation of aligned_allocator::construct<U>.
+
+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>(args)...);
++ ::new(p) U(std::forward<Args>(args)...);
+ }
+ #endif
+
More information about the arch-commits
mailing list