1
0

Accepting request 1098819 from X11:Cinnamon:Factory

OBS-URL: https://build.opensuse.org/request/show/1098819
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nemo-extensions?expand=0&rev=23
This commit is contained in:
Dominique Leuenberger 2023-07-15 21:15:17 +00:00 committed by Git OBS Bridge
commit b704e0abd6
3 changed files with 37 additions and 1 deletions

28
fix-hwcaps.patch Normal file
View File

@ -0,0 +1,28 @@
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());

View File

@ -1,4 +1,10 @@
-------------------------------------------------------------------
Tue Jul 11 06:10:53 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
- Add fix-hwcaps.patch to fix the issue with Segmentation
fault with libpython3_11-1_0-x86-64-v3
(bsc#1212482)
-------------------------------------------------------------------
Mon Oct 3 02:50:43 UTC 2022 - Marguerite Su <i@marguerite.su>
- add FTBFS-setuptools-61.0.patch

View File

@ -1,7 +1,7 @@
#
# spec file for package nemo-extensions
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -32,6 +32,8 @@ Source: https://github.com/linuxmint/%{name}/archive/%{version}.tar.gz#/
Patch4: nemo-share-prevent-privilege-escalation.patch
# PATCH-FIX-UPSTREAM FTBFS-setuptools-61.0.patch -- fix build with setuptools 61.0
Patch5: FTBFS-setuptools-61.0.patch
# PATCH-FIX-OPENSUSE fix-hwcaps.patch bsc#1212482
Patch6: fix-hwcaps.patch
BuildRequires: fdupes
BuildRequires: gettext-runtime
BuildRequires: gnome-common