[SCM] soundscaperenderer/master: Worked around template-bug in g++ (Closes: #761529)

umlaeute at users.alioth.debian.org umlaeute at users.alioth.debian.org
Thu Sep 18 22:42:27 UTC 2014


The following commit has been merged in the master branch:
commit 9b4549aec31c5d466d6c52688a0dfc44712c931c
Author: IOhannes m zmölnig <zmoelnig at umlautQ.umlaeute.mur.at>
Date:   Thu Sep 18 16:03:47 2014 +0200

    Worked around template-bug in g++ (Closes: #761529)
    
    g++-4.9 has a bug when dealing with varargs templates.

diff --git a/debian/patches/g++hack_vararg_template.patch b/debian/patches/g++hack_vararg_template.patch
new file mode 100644
index 0000000..cdfbf58
--- /dev/null
+++ b/debian/patches/g++hack_vararg_template.patch
@@ -0,0 +1,25 @@
+Description: fix FTBFS with g++ due to variadic templats
+ it seems like g++-4.9 has a bug when expanding templated classes with varargs.
+ the workaround is to replace the braces with parentheses in the ctor
+ initialization.
+ .
+ g++-4.8 is not affected, neither is clang++-3.5
+Author: IOhannes m zmölnig
+Bug: https://github.com/SoundScapeRenderer/ssr/issues/22
+Applied-Upstream: https://github.com/SoundScapeRenderer/ssr/commit/e6f2b07c5329d7a30afaa8b25b3ed4677f8e394f
+Last-Update: 2014-09-18
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- soundscaperenderer.orig/apf/apf/misc.h
++++ soundscaperenderer/apf/apf/misc.h
+@@ -98,8 +98,8 @@
+     /// Constructor. Any arguments are forwarded to both old and current value.
+     template<typename... Args>
+     explicit BlockParameter(Args&&... args)
+-      : _current{args...}
+-      , _old{std::forward<Args>(args)...}
++      : _current(args...)
++      , _old(std::forward<Args>(args)...)
+     {}
+ 
+     /// Assignment operator.
diff --git a/debian/patches/series b/debian/patches/series
index ceb7c6f..b400224 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 upstreamversion.patch
 exclude_pdf.patch
+g++hack_vararg_template.patch

-- 
soundscaperenderer packaging



More information about the pkg-multimedia-commits mailing list