14
0
forked from pool/python-cbor2

Accepting request 1178996 from home:glaubitz:branches:devel:languages:python

- Update to 5.6.4
  * Fixed compilation of C extension failing on GCC 14
  * Fixed compiler warnings when building C extension
- Drop patches for issues fixed upstream
  * https://github.com/agronholm/cbor2/pull/238.patch

OBS-URL: https://build.opensuse.org/request/show/1178996
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cbor2?expand=0&rev=25
This commit is contained in:
2024-06-06 13:46:51 +00:00
committed by Git OBS Bridge
parent 4428b713f9
commit 8f26a6b682
5 changed files with 13 additions and 29 deletions

View File

@@ -1,23 +0,0 @@
From d59066471c54258a24654a4319f723eab663fabe Mon Sep 17 00:00:00 2001
From: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Date: Wed, 5 Jun 2024 17:09:59 +0200
Subject: [PATCH] Fix incorrect return type of raise_from()
Fixes #236.
---
source/decoder.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/source/decoder.c b/source/decoder.c
index 6fd74ce..bd7fa47 100644
--- a/source/decoder.c
+++ b/source/decoder.c
@@ -348,7 +348,7 @@ _CBORDecoder_get_immutable(CBORDecoderObject *self, void *closure)
// Utility functions /////////////////////////////////////////////////////////
-static int
+static void
raise_from(PyObject *new_exc_type, const char *message) {
// This requires the error indicator to be set
PyObject *cause;

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e6f0ae2751c2d333a960e0807c0611494eb1245631a167965acbc100509455d3
size 100224

3
cbor2-5.6.4.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1c533c50dde86bef1c6950602054a0ffa3c376e8b0e20c7b8f5b108793f6983e
size 100865

View File

@@ -1,3 +1,12 @@
-------------------------------------------------------------------
Thu Jun 6 10:36:17 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 5.6.4
* Fixed compilation of C extension failing on GCC 14
* Fixed compiler warnings when building C extension
- Drop patches for issues fixed upstream
* https://github.com/agronholm/cbor2/pull/238.patch
-------------------------------------------------------------------
Wed Jun 5 15:47:30 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -18,14 +18,12 @@
%{?sle15_python_module_pythons}
Name: python-cbor2
Version: 5.6.3
Version: 5.6.4
Release: 0
Summary: Pure Python CBOR (de)serializer with extensive tag support
License: MIT
URL: https://github.com/agronholm/cbor2
Source: https://files.pythonhosted.org/packages/source/c/cbor2/cbor2-%{version}.tar.gz
# PATCH-FIX-UPSTREAM - Fix incorrect return type of raise_from()
Patch: https://github.com/agronholm/cbor2/pull/238.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module hypothesis}
BuildRequires: %{python_module pip}