svn commit: r520008 - head/graphics/opencv/files

Antoine Brodin antoine at FreeBSD.org
Fri Dec 13 09:41:04 UTC 2019


Author: antoine
Date: Fri Dec 13 09:41:03 2019
New Revision: 520008
URL: https://svnweb.freebsd.org/changeset/ports/520008

Log:
  Fix build with python 3.7
  
  PR:		233770

Added:
  head/graphics/opencv/files/patch-modules_python_src2_cv2.cpp   (contents, props changed)

Added: head/graphics/opencv/files/patch-modules_python_src2_cv2.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/opencv/files/patch-modules_python_src2_cv2.cpp	Fri Dec 13 09:41:03 2019	(r520008)
@@ -0,0 +1,11 @@
+--- modules/python/src2/cv2.cpp.orig	2018-02-23 08:38:33 UTC
++++ modules/python/src2/cv2.cpp
+@@ -886,7 +886,7 @@ bool pyopencv_to(PyObject* obj, String& value, const c
+     (void)name;
+     if(!obj || obj == Py_None)
+         return true;
+-    char* str = PyString_AsString(obj);
++    const char* str = PyString_AsString(obj);
+     if(!str)
+         return false;
+     value = String(str);


More information about the svn-ports-all mailing list