From 22ad7e865c1b7d85026798b44461d8a0cfb768eb4cb863281b47effcdd8ff958 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 15 Jul 2023 15:25:28 +0000 Subject: [PATCH] Accepting request 1098061 from home:dgarcia:branches:X11:Cinnamon:Factory - 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 --- fix-hwcaps.patch | 28 ++++++++++++++++++++++++++++ nemo-extensions.changes | 6 ++++++ nemo-extensions.spec | 4 +++- 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 fix-hwcaps.patch diff --git a/fix-hwcaps.patch b/fix-hwcaps.patch new file mode 100644 index 0000000..d80f935 --- /dev/null +++ b/fix-hwcaps.patch @@ -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()); + diff --git a/nemo-extensions.changes b/nemo-extensions.changes index 10435fc..21684f0 100644 --- a/nemo-extensions.changes +++ b/nemo-extensions.changes @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Tue Jul 11 06:10:53 UTC 2023 - Daniel Garcia + +- 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 - add FTBFS-setuptools-61.0.patch diff --git a/nemo-extensions.spec b/nemo-extensions.spec index ef7a84a..e5b3f39 100644 --- a/nemo-extensions.spec +++ b/nemo-extensions.spec @@ -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