[glade] Python plugin: fix linking error



commit 6f4fb5672f41201a20e0f879a7d7d7b96f045425
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date:   Fri Jun 5 20:13:15 2020 -0300

    Python plugin: fix linking error
    
    Since pygobject 3.8 we need to link with python-3.8-embed to avoid
    missing symbols when loading the plugin.
    
    Fix compiler warning

 meson.build                   | 2 +-
 plugins/python/glade-python.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/meson.build b/meson.build
index 729e6df6..78f96809 100644
--- a/meson.build
+++ b/meson.build
@@ -138,7 +138,7 @@ pygobject_version = '3.8.0'
 pygobject_dep = dependency('pygobject-3.0', version: '>= ' + pygobject_version, required: 
get_option('python'))
 have_python = pygobject_dep.found()
 if have_python
-  python_dep = import('python').find_installation().dependency()
+  python_dep = dependency('python-3.8-embed', version: '>= 3.8')
 
   version_array = pygobject_version.split('.')
   config_h.set('PYGOBJECT_REQUIRED_MAJOR', version_array[0].to_int())
diff --git a/plugins/python/glade-python.c b/plugins/python/glade-python.c
index c7d38774..bbdbbe77 100644
--- a/plugins/python/glade-python.c
+++ b/plugins/python/glade-python.c
@@ -110,7 +110,7 @@ glade_python_setup ()
   if (PyErr_Occurred ())
     {
       PyObject *ptype, *pvalue, *ptraceback, *pstr;
-      char *pvalue_char = "";
+      const char *pvalue_char = "";
 
       PyErr_Fetch (&ptype, &pvalue, &ptraceback);
       PyErr_NormalizeException (&ptype, &pvalue, &ptraceback);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]