diff --git a/srcpkgs/python3-pivy/patches/73cd928f.patch b/srcpkgs/python3-pivy/patches/73cd928f.patch new file mode 100644 index 00000000000..edff803822a --- /dev/null +++ b/srcpkgs/python3-pivy/patches/73cd928f.patch @@ -0,0 +1,36 @@ +From 73cd928fe1a9c2abbe6f28844a7fc695ad11d7cf Mon Sep 17 00:00:00 2001 +From: Peter Lama +Date: Fri, 24 Aug 2018 17:25:47 -0700 +Subject: [PATCH] Fix issue #39: PyUnicode_AsUTF8 returns const char* + +Even with python 2, it doesn't seem like char* is needed + +--- Inventor/nodes/SoMarkerSet.i ++++ Inventor/nodes/SoMarkerSet.i +@@ -5,7 +5,7 @@ + short WIDTH, HEIGHT; + size.getValue(WIDTH, HEIGHT); + short BYTEWIDTH = (WIDTH + 7) / 2; +- char* coin_marker; ++ const char* coin_marker; + #ifdef PY_2 + if (PyString_Check(string)) + { +@@ -49,4 +49,4 @@ + delete[] bitmapbytes; + bitmapbytes = NULL; + } +-} +\ No newline at end of file ++} +--- Inventor/sensors/SoSensor.i ++++ Inventor/sensors/SoSensor.i +@@ -4,7 +4,7 @@ SoSensorPythonCB(void * data, SoSensor * sensor) + { + PyGILState_STATE gil = PyGILState_Ensure(); + swig_type_info * swig_type = 0; +- char * sensor_cast_name = NULL; ++ const char * sensor_cast_name = NULL; + PyObject * func, * arglist; + PyObject * result, * pysensor; + diff --git a/srcpkgs/python3-pivy/template b/srcpkgs/python3-pivy/template index 4a733e805e3..9caa13837e2 100644 --- a/srcpkgs/python3-pivy/template +++ b/srcpkgs/python3-pivy/template @@ -1,7 +1,7 @@ # Template file for 'python3-pivy' pkgname=python3-pivy version=0.6.4 -revision=1 +revision=2 wrksrc="Coin3D-${pkgname#python3-}-a84100beff22" build_style=python3-module pycompile_module="pivy"