python3-pivy: fix and rebuild for Python 3.8.
This commit is contained in:
parent
445514480c
commit
3c490f3596
2 changed files with 37 additions and 1 deletions
36
srcpkgs/python3-pivy/patches/73cd928f.patch
Normal file
36
srcpkgs/python3-pivy/patches/73cd928f.patch
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
From 73cd928fe1a9c2abbe6f28844a7fc695ad11d7cf Mon Sep 17 00:00:00 2001
|
||||||
|
From: Peter Lama <peterldev94@gmail.com>
|
||||||
|
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;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'python3-pivy'
|
# Template file for 'python3-pivy'
|
||||||
pkgname=python3-pivy
|
pkgname=python3-pivy
|
||||||
version=0.6.4
|
version=0.6.4
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="Coin3D-${pkgname#python3-}-a84100beff22"
|
wrksrc="Coin3D-${pkgname#python3-}-a84100beff22"
|
||||||
build_style=python3-module
|
build_style=python3-module
|
||||||
pycompile_module="pivy"
|
pycompile_module="pivy"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue