Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package kdevelop5-plugin-python3 for
openSUSE:Factory checked in at 2023-03-17 17:04:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kdevelop5-plugin-python3 (Old)
and /work/SRC/openSUSE:Factory/.kdevelop5-plugin-python3.new.31432 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kdevelop5-plugin-python3"
Fri Mar 17 17:04:12 2023 rev:46 rq:1072470 version:22.12.3
Changes:
--------
---
/work/SRC/openSUSE:Factory/kdevelop5-plugin-python3/kdevelop5-plugin-python3.changes
2023-03-03 22:28:42.567373556 +0100
+++
/work/SRC/openSUSE:Factory/.kdevelop5-plugin-python3.new.31432/kdevelop5-plugin-python3.changes
2023-03-17 17:04:39.913807667 +0100
@@ -1,0 +2,6 @@
+Thu Mar 16 13:22:29 UTC 2023 - Antonio Larrosa <[email protected]>
+
+- Add patch that fixes build with python < 3.9 as in SLE/Backports:
+ * fix-for-python3.6.patch
+
+-------------------------------------------------------------------
New:
----
fix-for-python3.6.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ kdevelop5-plugin-python3.spec ++++++
--- /var/tmp/diff_new_pack.FEnGaZ/_old 2023-03-17 17:04:40.605811314 +0100
+++ /var/tmp/diff_new_pack.FEnGaZ/_new 2023-03-17 17:04:40.609811335 +0100
@@ -34,12 +34,14 @@
Source1:
https://download.kde.org/stable/release-service/%{version}/src/%{rname}-%{version}.tar.xz.sig
Source2: applications.keyring
%endif
+# FIX-PATCH-UPSTREAM fix-for-python3.6.patch [email protected] -- Fix build
with python < 3.9
+Patch0: fix-for-python3.6.patch
+BuildRequires: %mypython >= 3.4.3
+BuildRequires: %mypython-devel >= 3.4.3
BuildRequires: extra-cmake-modules
BuildRequires: fdupes
BuildRequires: kdevelop5
BuildRequires: kf5-filesystem
-BuildRequires: %mypython >= 3.4.3
-BuildRequires: %mypython-devel >= 3.4.3
BuildRequires: cmake(KDevPlatform)
BuildRequires: cmake(KF5I18n)
BuildRequires: cmake(KF5TextEditor)
@@ -48,8 +50,8 @@
BuildRequires: cmake(Qt5Test)
BuildRequires: cmake(Qt5Widgets)
Requires: kdevelop5
-Recommends: %{name}-lang
Recommends: %mypython-pep8
+Recommends: %{name}-lang
Provides: kdevelop4-plugin-python = %{version}
Obsoletes: kdevelop4-plugin-python < %{version}
# The following are needed due to old unstable packages in KDE repositories
++++++ fix-for-python3.6.patch ++++++
Index: kdev-python-22.12.3/parser/python_grammar.h
===================================================================
--- kdev-python-22.12.3.orig/parser/python_grammar.h
+++ kdev-python-22.12.3/parser/python_grammar.h
@@ -78,6 +78,14 @@ public:
PyObject* ast_List;
PyObject* ast_Tuple;
PyObject* ast_Slice;
+#if PYTHON_VERSION < QT_VERSION_CHECK(3, 8, 0)
+ PyObject* ast_Ellipsis;
+ PyObject* ast_NameConstant;
+#endif
+#if PYTHON_VERSION < QT_VERSION_CHECK(3, 9, 0)
+ PyObject* ast_ExtSlice;
+ PyObject* ast_Index;
+#endif
// expr_context
PyObject* ast_expr_context;
@@ -250,6 +258,16 @@ public:
Py_GRAMMAR_GET(mod, List);
Py_GRAMMAR_GET(mod, Tuple);
Py_GRAMMAR_GET(mod, Slice);
+#if PYTHON_VERSION < QT_VERSION_CHECK(3, 8, 0)
+ Py_GRAMMAR_GET(mod, Ellipsis);
+ Py_GRAMMAR_GET(mod, NameConstant);
+#endif
+#if PYTHON_VERSION < QT_VERSION_CHECK(3, 9, 0)
+ Py_GRAMMAR_GET(mod, ExtSlice);
+ Py_GRAMMAR_GET(mod, Index);
+#endif
+
+
Py_GRAMMAR_GET(mod, expr_context);
Py_GRAMMAR_GET(mod, Load);
@@ -397,6 +415,14 @@ public:
Py_XDECREF(ast_List);
Py_XDECREF(ast_Tuple);
Py_XDECREF(ast_Slice);
+#if PYTHON_VERSION < QT_VERSION_CHECK(3, 8, 0)
+ Py_XDECREF(ast_Ellipsis);
+ Py_XDECREF(ast_NameConstant);
+#endif
+#if PYTHON_VERSION < QT_VERSION_CHECK(3, 9, 0)
+ Py_XDECREF(ast_ExtSlice);
+ Py_XDECREF(ast_Index);
+#endif
Py_XDECREF(ast_expr_context);
Py_XDECREF(ast_Load);