Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jan 2018 21:04:44 +0000 (UTC)
From:      Raphael Kubo da Costa <rakuco@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r458573 - head/devel/py-krosspython/files
Message-ID:  <201801092104.w09L4icN003111@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rakuco
Date: Tue Jan  9 21:04:44 2018
New Revision: 458573
URL: https://svnweb.freebsd.org/changeset/ports/458573

Log:
  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

Added:
  head/devel/py-krosspython/files/
  head/devel/py-krosspython/files/patch-git_81e17bf   (contents, props changed)

Added: head/devel/py-krosspython/files/patch-git_81e17bf
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-krosspython/files/patch-git_81e17bf	Tue Jan  9 21:04:44 2018	(r458573)
@@ -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()



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801092104.w09L4icN003111>