forked from pool/nemo-extensions
Dirk Mueller
2bca42e497
- Add fix-hwcaps.patch to fix the issue with Segmentation fault with libpython3_11-1_0-x86-64-v3 (bsc#1212482) OBS-URL: https://build.opensuse.org/request/show/1098061 OBS-URL: https://build.opensuse.org/package/show/X11:Cinnamon:Factory/nemo-extensions?expand=0&rev=73
29 lines
1.2 KiB
Diff
29 lines
1.2 KiB
Diff
Index: nemo-extensions-5.2.0/nemo-python/meson.build
|
|
===================================================================
|
|
--- nemo-extensions-5.2.0.orig/nemo-python/meson.build
|
|
+++ nemo-extensions-5.2.0/nemo-python/meson.build
|
|
@@ -39,6 +39,8 @@ pyextdir = join_paths(get_option('prefix
|
|
|
|
cdata.set_quoted('NEMO_EXTENSION_DIR', nemo.get_pkgconfig_variable('extensiondir'))
|
|
cdata.set_quoted('PYTHON_LIBPATH', libpath)
|
|
+cdata.set_quoted('PYTHON_LIBNAME', python3.get_variable('INSTSONAME'))
|
|
+
|
|
cdata.set('PYGOBJECT_MAJOR_VERSION', 3)
|
|
cdata.set('PYGOBJECT_MINOR_VERSION', 0)
|
|
cdata.set('PYGOBJECT_MICRO_VERSION', 0)
|
|
Index: nemo-extensions-5.2.0/nemo-python/src/nemo-python.c
|
|
===================================================================
|
|
--- nemo-extensions-5.2.0.orig/nemo-python/src/nemo-python.c
|
|
+++ nemo-extensions-5.2.0/nemo-python/src/nemo-python.c
|
|
@@ -175,8 +175,8 @@ nemo_python_init_python (void)
|
|
if (Py_IsInitialized())
|
|
return TRUE;
|
|
|
|
- debug("g_module_open " PYTHON_LIBPATH);
|
|
- libpython = g_module_open(PYTHON_LIBPATH, 0);
|
|
+ debug("g_module_open " PYTHON_LIBNAME);
|
|
+ libpython = g_module_open (PYTHON_LIBNAME, 0);
|
|
if (!libpython)
|
|
g_warning("g_module_open libpython failed: %s", g_module_error());
|
|
|