pkgsrc-Changes archive

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

CVS commit: pkgsrc/net/powerdns-recursor



Module Name:    pkgsrc
Committed By:   joerg
Date:           Mon May 22 23:41:52 UTC 2017

Modified Files:
        pkgsrc/net/powerdns-recursor: distinfo
Added Files:
        pkgsrc/net/powerdns-recursor/patches: patch-ext_json11_json11.cpp

Log Message:
Merge patch from powerdns package to avoid ordering nullptrs.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 pkgsrc/net/powerdns-recursor/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/net/powerdns-recursor/patches/patch-ext_json11_json11.cpp

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

Modified files:

Index: pkgsrc/net/powerdns-recursor/distinfo
diff -u pkgsrc/net/powerdns-recursor/distinfo:1.17 pkgsrc/net/powerdns-recursor/distinfo:1.18
--- pkgsrc/net/powerdns-recursor/distinfo:1.17  Fri Mar 31 19:41:13 2017
+++ pkgsrc/net/powerdns-recursor/distinfo       Mon May 22 23:41:52 2017
@@ -1,10 +1,11 @@
-$NetBSD: distinfo,v 1.17 2017/03/31 19:41:13 fhajny Exp $
+$NetBSD: distinfo,v 1.18 2017/05/22 23:41:52 joerg Exp $
 
 SHA1 (pdns-recursor-4.0.4.tar.bz2) = e3d2f18e0ea929e425bc9da4256f76331797f691
 RMD160 (pdns-recursor-4.0.4.tar.bz2) = 12b1b7239156d9b898199c02a1edd6875301a7b1
 SHA512 (pdns-recursor-4.0.4.tar.bz2) = 9473dfe9abc509b2bb953139dd7892de2027ee1508902fa0c2cd30dd9a88878fcf44370b8372d573cbab12de32bb8c604005d3b39ea34db2ef86786e689d36ab
 Size (pdns-recursor-4.0.4.tar.bz2) = 1050596 bytes
 SHA1 (patch-dns.hh) = 7e9c1b10a066a605b74ebdbee2d894aed50f6c68
+SHA1 (patch-ext_json11_json11.cpp) = 2de8ea8b51556bd3e3c1a88f681697eff239ab1a
 SHA1 (patch-iputils.hh) = ab1c952d27648b6db9fd74eba987d10b79837517
 SHA1 (patch-kqueuemplexer.cc) = 87b3b6670393ee60fc96cf91c5acf575adfd06c0
 SHA1 (patch-qtype.hh) = f14eb9ad7efc7dd4a0ce220c1f93044ef69e99c2

Added files:

Index: pkgsrc/net/powerdns-recursor/patches/patch-ext_json11_json11.cpp
diff -u /dev/null pkgsrc/net/powerdns-recursor/patches/patch-ext_json11_json11.cpp:1.1
--- /dev/null   Mon May 22 23:41:52 2017
+++ pkgsrc/net/powerdns-recursor/patches/patch-ext_json11_json11.cpp    Mon May 22 23:41:52 2017
@@ -0,0 +1,30 @@
+$NetBSD: patch-ext_json11_json11.cpp,v 1.1 2017/05/22 23:41:52 joerg Exp $
+
+Clang rejects ordering relations for nullptr, so introduce a template
+indirection.
+
+--- ext/json11/json11.cpp.orig 2017-01-13 08:55:55.000000000 +0000
++++ ext/json11/json11.cpp
+@@ -132,6 +132,13 @@ void Json::dump(string &out) const {
+  * Value wrappers
+  */
+ 
++template <typename T> bool json11_less(T a, T b) {
++  return a < b;
++}
++template <> bool json11_less(const std::nullptr_t a, const std::nullptr_t b) {
++  return false;
++}
++
+ template <Json::Type tag, typename T>
+ class Value : public JsonValue {
+ protected:
+@@ -150,7 +157,7 @@ protected:
+         return m_value == static_cast<const Value<tag, T> *>(other)->m_value;
+     }
+     bool less(const JsonValue * other) const override {
+-        return m_value < static_cast<const Value<tag, T> *>(other)->m_value;
++        return json11_less(m_value, static_cast<const Value<tag, T> *>(other)->m_value);
+     }
+ 
+     const T m_value;



Home | Main Index | Thread Index | Old Index