pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pan2-git: Add a patch to fix the build with clang, from upstream.



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By:	wiz
Date:		Thu Mar 17 11:06:43 2016 +0100
Changeset:	bb30d76e51bcdbc82fc4dc9081a6a69a9c7455b5

Modified Files:
	pan2-git/distinfo
Added Files:
	pan2-git/patches/patch-pan_data-impl_groups.cc

Log Message:
pan2-git: Add a patch to fix the build with clang, from upstream.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=bb30d76e51bcdbc82fc4dc9081a6a69a9c7455b5

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 pan2-git/distinfo                              |  1 +
 pan2-git/patches/patch-pan_data-impl_groups.cc | 22 ++++++++++++++++++++++
 2 files changed, 23 insertions(+)

diffs:
diff --git a/pan2-git/distinfo b/pan2-git/distinfo
index 7ecbdf3..4d66f3a 100644
--- a/pan2-git/distinfo
+++ b/pan2-git/distinfo
@@ -1,2 +1,3 @@
 $NetBSD: distinfo,v 1.5 2014/03/23 14:01:50 thomasklausner Exp $
 
+SHA1 (patch-pan_data-impl_groups.cc) = edfe8fb944a0ff50bd15cf00044f849e503bbecb
diff --git a/pan2-git/patches/patch-pan_data-impl_groups.cc b/pan2-git/patches/patch-pan_data-impl_groups.cc
new file mode 100644
index 0000000..f073b13
--- /dev/null
+++ b/pan2-git/patches/patch-pan_data-impl_groups.cc
@@ -0,0 +1,22 @@
+$NetBSD$
+
+Fix for building with clang.
+https://bugzilla.gnome.org/attachment.cgi?id=324116&action=edit
+
+--- pan/data-impl/groups.cc.orig	2015-11-15 00:23:37.000000000 +0000
++++ pan/data-impl/groups.cc
+@@ -81,7 +81,14 @@ namespace
+   }
+ }
+ 
++#include <ciso646> // detect std::lib
++#ifdef _LIBCPP_VERSION
++// using libc++
++#include <algorithm>
++#else
++// using libstdc++
+ #include <ext/algorithm>
++#endif
+ 
+ void
+ DataImpl :: load_newsrc (const Quark       & server,


Home | Main Index | Thread Index | Old Index