From c56c4a97191c51f27f2cffc98c7547382012d140835c55193d4ab7408a9b0490 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 14 Aug 2018 14:59:11 +0000 Subject: [PATCH] - Update to 4.3.0: * Fix the possibility of a rare crash in the C extension when deallocating items. See https://github.com/zopefoundation/persistent/issues/66 * Change cPickleCache's comparison of object sizes to determine whether an object can go in the cache to use PyObject_TypeCheck(). This matches what the pure Python implementation does and is a stronger test that the object really is compatible with the cache. Previously, an object could potentially include cPersistent_HEAD and not set tp_base to cPersistenceCAPI->pertype and still be eligible for the pickle cache; that is no longer the case. See https://github.com/zopefoundation/persistent/issues/69 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-persistent?expand=0&rev=12 --- persistent-4.2.4.2.tar.gz | 3 --- persistent-4.3.0.tar.gz | 3 +++ python-persistent.changes | 16 ++++++++++++++++ python-persistent.spec | 6 +++--- 4 files changed, 22 insertions(+), 6 deletions(-) delete mode 100644 persistent-4.2.4.2.tar.gz create mode 100644 persistent-4.3.0.tar.gz diff --git a/persistent-4.2.4.2.tar.gz b/persistent-4.2.4.2.tar.gz deleted file mode 100644 index c4c0a31..0000000 --- a/persistent-4.2.4.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cf264cd55866c7ffbcbe1328f8d8b28fd042a5dd0c03a03f68c0887df3aa1964 -size 96135 diff --git a/persistent-4.3.0.tar.gz b/persistent-4.3.0.tar.gz new file mode 100644 index 0000000..32ca803 --- /dev/null +++ b/persistent-4.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d8e2253a35f46ae318e65f0e3b51cdce16d4646e284a26f88a2d84b4d2507f81 +size 98681 diff --git a/python-persistent.changes b/python-persistent.changes index 3f2ef27..99eb224 100644 --- a/python-persistent.changes +++ b/python-persistent.changes @@ -1,3 +1,19 @@ +------------------------------------------------------------------- +Tue Aug 14 14:55:56 UTC 2018 - mcepl@suse.com + +- Update to 4.3.0: + * Fix the possibility of a rare crash in the C extension when + deallocating items. See + https://github.com/zopefoundation/persistent/issues/66 + * Change cPickleCache's comparison of object sizes to determine + whether an object can go in the cache to use PyObject_TypeCheck(). + This matches what the pure Python implementation does and is + a stronger test that the object really is compatible with the + cache. Previously, an object could potentially include + cPersistent_HEAD and not set tp_base to cPersistenceCAPI->pertype + and still be eligible for the pickle cache; that is no longer the + case. See https://github.com/zopefoundation/persistent/issues/69 + ------------------------------------------------------------------- Thu Jul 26 08:35:19 UTC 2018 - tchvatal@suse.com diff --git a/python-persistent.spec b/python-persistent.spec index 1d9b22c..1b6314c 100644 --- a/python-persistent.spec +++ b/python-persistent.spec @@ -19,14 +19,14 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-persistent -Version: 4.2.4.2 +Version: 4.3.0 Release: 0 Summary: Translucent persistent objects License: ZPL-2.1 Group: Development/Languages/Python URL: https://github.com/zopefoundation/persistent Source: https://files.pythonhosted.org/packages/source/p/persistent/persistent-%{version}.tar.gz -Patch0: persistent-4.2.4.2-switch-off-tests.patch +Patch: persistent-4.2.4.2-switch-off-tests.patch # Documentation requirements: BuildRequires: %{python_module Sphinx} BuildRequires: %{python_module devel} @@ -62,8 +62,8 @@ This package contains documentation files for %{name}. %prep %setup -q -n persistent-%{version} +%autopatch -p1 rm -rf persistent.egg-info -%patch0 -p1 %build %python_build