Hello community,
here is the log from the commit of package python-leveldb for
openSUSE:Leap:15.2 checked in at 2020-03-15 13:35:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-leveldb (Old)
and /work/SRC/openSUSE:Leap:15.2/.python-leveldb.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-leveldb"
Sun Mar 15 13:35:40 2020 rev:16 rq:783198 version:0.20
Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-leveldb/python-leveldb.changes
2020-03-09 18:07:37.780884954 +0100
+++
/work/SRC/openSUSE:Leap:15.2/.python-leveldb.new.3160/python-leveldb.changes
2020-03-15 13:35:41.166813936 +0100
@@ -1,0 +2,5 @@
+Mon Mar 9 08:28:58 UTC 2020 - Ondřej Súkup <[email protected]>
+
+- add python_38.patch to fix python3.8 build
+
+-------------------------------------------------------------------
New:
----
python_38.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-leveldb.spec ++++++
--- /var/tmp/diff_new_pack.xeNhCN/_old 2020-03-15 13:35:42.334814632 +0100
+++ /var/tmp/diff_new_pack.xeNhCN/_new 2020-03-15 13:35:42.358814646 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-leveldb
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -23,8 +23,9 @@
Summary: Python bindings for leveldb database library
License: BSD-3-Clause
Group: Development/Languages/Python
-Url: http://code.google.com/p/py-leveldb/
+URL: http://code.google.com/p/py-leveldb/
Source:
https://files.pythonhosted.org/packages/source/l/leveldb/leveldb-%{version}.tar.gz
+Patch0: python_38.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
@@ -38,6 +39,7 @@
%prep
%setup -q -n leveldb-%{version}
+%patch0 -p1
chmod -x README
%build
++++++ python_38.patch ++++++
>From 93547221d6ff19418491201b8f2931c10413102b Mon Sep 17 00:00:00 2001
From: Carl George <[email protected]>
Date: Sun, 8 Sep 2019 07:32:44 -0500
Subject: [PATCH] Fix method descriptors for Python 3.8
Importing leveldb in Python 3.8 raises `SystemError: bad call flags`.
This is due to a change in Python where the method descriptor flags are
checked at import time, rather than when the methods are called. This
change fixes the incorrect method description.
Adapted from @vstinner's fix for the same problem in libcomps.
https://github.com/rpm-software-management/libcomps/pull/50
---
leveldb_object.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/leveldb_object.cc b/leveldb_object.cc
index ec9756f..da88d42 100644
--- a/leveldb_object.cc
+++ b/leveldb_object.cc
@@ -763,7 +763,7 @@ static PyMethodDef PyLevelDB_methods[] = {
{(char*)"Delete", (PyCFunction)PyLevelDB_Delete,
METH_VARARGS | METH_KEYWORDS, (char*)"delete a value in the database" },
{(char*)"Write", (PyCFunction)PyLevelDB_Write,
METH_VARARGS | METH_KEYWORDS, (char*)"apply a write-batch"},
{(char*)"RangeIter", (PyCFunction)PyLevelDB_RangeIter,
METH_VARARGS | METH_KEYWORDS, (char*)"key/value range scan"},
- {(char*)"GetStats", (PyCFunction)PyLevelDB_GetStatus,
METH_VARARGS | METH_NOARGS, (char*)"get a mapping of all DB statistics"},
+ {(char*)"GetStats", (PyCFunction)PyLevelDB_GetStatus,
METH_NOARGS, (char*)"get a mapping of all DB statistics"},
{(char*)"CreateSnapshot", (PyCFunction)PyLevelDB_CreateSnapshot,
METH_NOARGS, (char*)"create a new snapshot from current DB state"},
{(char*)"CompactRange", (PyCFunction)PyLevelDB_CompactRange,
METH_VARARGS | METH_KEYWORDS, (char*)"Compact keys in the range"},
{NULL}