Hello community,

here is the log from the commit of package nghttp2 for openSUSE:Factory checked 
in at 2016-02-05 00:30:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/nghttp2 (Old)
 and      /work/SRC/openSUSE:Factory/.nghttp2.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "nghttp2"

Changes:
--------
--- /work/SRC/openSUSE:Factory/nghttp2/nghttp2.changes  2016-01-28 
17:19:37.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.nghttp2.new/nghttp2.changes     2016-02-05 
00:30:01.000000000 +0100
@@ -1,0 +2,6 @@
+Thu Jan 28 14:43:56 UTC 2016 - rguent...@suse.com
+
+- Add nghttp2-c++14.patch to properly guard make_unique templates.
+  [bsc#964140]  
+
+-------------------------------------------------------------------

New:
----
  nghttp2-c++14.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ nghttp2.spec ++++++
--- /var/tmp/diff_new_pack.7VDa5U/_old  2016-02-05 00:30:02.000000000 +0100
+++ /var/tmp/diff_new_pack.7VDa5U/_new  2016-02-05 00:30:02.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package nghttp2
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -31,6 +31,7 @@
 Source1:        baselibs.conf
 # PATCH-FIX-OPENSUSE nghttp2-remove-python-build.patch
 Patch0:         %{name}-remove-python-build.patch
+Patch1:         %{name}-c++14.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  boost-devel
@@ -114,6 +115,7 @@
 %prep
 %setup -q
 %patch0 -p1
+%patch1
 
 %build
 autoreconf -fiv

++++++ nghttp2-c++14.patch ++++++
--- src/template.h.orig 2016-01-28 15:30:56.549094834 +0100
+++ src/template.h      2016-01-28 15:42:13.188970636 +0100
@@ -37,6 +37,9 @@
 
 namespace nghttp2 {
 
+#if __cplusplus > 201103L
+using std::make_unique;
+#else
 template <typename T, typename... U>
 typename std::enable_if<!std::is_array<T>::value, std::unique_ptr<T>>::type
 make_unique(U &&... u) {
@@ -48,6 +51,7 @@
 make_unique(size_t size) {
   return std::unique_ptr<T>(new typename std::remove_extent<T>::type[size]());
 }
+#endif
 
 // std::forward is constexpr since C++14
 template <typename... T>

Reply via email to