diff --git a/Fix_python_embed.patch b/Fix_python_embed.patch new file mode 100644 index 0000000..e978a07 --- /dev/null +++ b/Fix_python_embed.patch @@ -0,0 +1,31 @@ +From a528eb2b1564845c66a2c5b177ab39c8a345d2e4 Mon Sep 17 00:00:00 2001 +From: Eli Schwartz +Date: Sun, 17 Nov 2019 15:50:34 -0500 +Subject: [PATCH] nemo-python: be compatible with python 3.8 + +See https://bugs.python.org/issue36721 + +Fixes #336 +--- + nemo-python/meson.build | 8 +++++++- + 1 file changed, 7 insertions(+), 1 deletion(-) + +diff --git a/nemo-python/meson.build b/nemo-python/meson.build +index 93377d15..3f5a8e98 100644 +--- a/nemo-python/meson.build ++++ b/nemo-python/meson.build +@@ -7,7 +7,13 @@ gnome = import('gnome') + + deps = [] + +-python3 = dependency('python3') ++# In python 3.8, applications which embed python (i.e. not importable modules) ++# must use python3-embed, instead of python3. Check that first. ++# https://bugs.python.org/issue36721 ++python3 = dependency('python3-embed', required: false) ++if not python3.found() ++ python3 = dependency('python3') ++endif + nemo = dependency('libnemo-extension', required: true) + + deps += python3 diff --git a/nemo-extensions.spec b/nemo-extensions.spec index fd83205..6ebddcd 100644 --- a/nemo-extensions.spec +++ b/nemo-extensions.spec @@ -3,12 +3,13 @@ Name: nemo-extensions Version: 4.4.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Extensions for Nemo License: GPLv2+ and LGPLv2 URL: https://github.com/linuxmint/%{name} Source0: %url/archive/%{version}/%{name}-%{version}.tar.gz +Patch0: %url/commit/a528eb2b1564845c66a2c5b177ab39c8a345d2e4.patch#/Fix_python_embed.patch BuildRequires: desktop-file-utils BuildRequires: gpgme-devel @@ -314,6 +315,9 @@ desktop-file-install \ %{_mandir}/man1/nemo-seahorse-tool.1.* %changelog +* Thu Nov 21 2019 Leigh Scott - 4.4.0-2 +- Fix python embed issue + * Sat Nov 16 2019 Leigh Scott - 4.4.0-1 - Update to 4.4.0 release