aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorrakuco <rakuco@FreeBSD.org>2018-01-10 05:04:44 +0800
committerrakuco <rakuco@FreeBSD.org>2018-01-10 05:04:44 +0800
commit1c8f0c7d2dd77431191d5be7364db061cd0c318a (patch)
tree93ffa807659abf40df9fb21820896dbe31ac4872 /devel
parentbdc511bc93683f0ee5ccc57014a36d9d1c5f51a7 (diff)
downloadfreebsd-ports-gnome-1c8f0c7d2dd77431191d5be7364db061cd0c318a.tar.gz
freebsd-ports-gnome-1c8f0c7d2dd77431191d5be7364db061cd0c318a.tar.zst
freebsd-ports-gnome-1c8f0c7d2dd77431191d5be7364db061cd0c318a.zip
Backport a patch to fix the build with -std=gnu++14.
clang 6.0 defaults to -std=gnu++14 instead of -std=gnu++98. This backport fixes the following error: /wrkdirs/usr/ports/devel/py-krosspython/work/kross-interpreters-4.14.3/python/cxx/Objects.hxx:1081:15: error: cannot initialize a member subobject of type 'int' with an rvalue of type 'nullptr_t' , offset( NULL ) ^ ~~~~ PR: 224945
Diffstat (limited to 'devel')
-rw-r--r--devel/py-krosspython/files/patch-git_81e17bf27
1 files changed, 27 insertions, 0 deletions
diff --git a/devel/py-krosspython/files/patch-git_81e17bf b/devel/py-krosspython/files/patch-git_81e17bf
new file mode 100644
index 000000000000..ec6746654e36
--- /dev/null
+++ b/devel/py-krosspython/files/patch-git_81e17bf
@@ -0,0 +1,27 @@
+commit 81e17bf1d8514cc4f00191776022ba2e0c935b27
+Author: Tobias C. Berner <tcberner@FreeBSD.org>
+Date: Wed Jul 26 14:31:32 2017 +0200
+
+ Fix build on FreBSD
+
+ Summary:
+ kross-interpreters/python/cxx/Objects.hxx:1081:15: error: cannot initialize
+ a member subobject of type 'int' with an rvalue of type 'nullptr_t'
+ , offset( NULL )
+ ^ ~~~~
+
+ Reviewers: #freebsd, aspotashev
+
+ Differential Revision: https://phabricator.kde.org/D6928
+
+--- python/cxx/Objects.hxx
++++ python/cxx/Objects.hxx
+@@ -1078,7 +1078,7 @@ namespace Py
+ // TMM: added this seqref ctor for use with STL algorithms
+ seqref (Object& obj)
+ : s(dynamic_cast< SeqBase<T>&>(obj))
+- , offset( NULL )
++ , offset( 0 )
+ , the_item(s.getItem(offset))
+ {}
+ ~seqref()