Notification time stamped 2023-06-30 15:14:33 UTC
From bce32f8e8f4f37a4224b61c347c5c7e7ca60dee8 Mon Sep 17 00:00:00 2001 From: Nikita Popov npopov@redhat.com Date: Feb 01 2023 14:55:43 +0000 Subject: Port to C99
Related to:
https://fedoraproject.org/wiki/Changes/PortingToModernC https://fedoraproject.org/wiki/Toolchain/PortingToModernC
---
diff --git a/python-zstd-1.4.5.1-c99.patch b/python-zstd-1.4.5.1-c99.patch new file mode 100644 index 0000000..9b89c73 --- /dev/null +++ b/python-zstd-1.4.5.1-c99.patch @@ -0,0 +1,12 @@ +diff -up zstd-1.4.5.1/src/util.c.c99 zstd-1.4.5.1/src/util.c +--- zstd-1.4.5.1/src/util.c.c99 2023-02-01 15:53:06.830812528 +0100 ++++ zstd-1.4.5.1/src/util.c 2023-02-01 15:53:18.823927411 +0100 +@@ -18,7 +18,7 @@ extern "C" { + ******************************************/ + #include "util.h" /* note : ensure that platform.h is included first ! */ + #include <errno.h> +-#include <assert.h> ++#include <string.h> + + #if defined(_MSC_VER) || defined(__MINGW32__) || defined (__MSVCRT__) + #include <direct.h> /* needed for _mkdir in windows */ diff --git a/python-zstd.spec b/python-zstd.spec index 520985b..8e3dfc2 100644 --- a/python-zstd.spec +++ b/python-zstd.spec @@ -3,7 +3,7 @@
Name: python-%{pypi_name} Version: %{zstd_version}.1 -Release: 9%{?dist} +Release: 10%{?dist} Summary: Zstd Bindings for Python
License: BSD @@ -22,6 +22,9 @@ Patch2: python-zstd-1.4.5.1-py_ssize_t_clean.patch # From https://github.com/sergey-dryabzhinsky/python-zstd/commit/4e9b8b0cbf Patch3: 0003-Port-to-Python-3.11-use-Py_SET_SIZE.patch
+# Part of https://github.com/sergey-dryabzhinsky/python-zstd/commit/b823bc087b2 +Patch4: python-zstd-1.4.5.1-c99.patch + BuildRequires: gcc BuildRequires: python3-devel BuildRequires: python3dist(setuptools) @@ -67,6 +70,9 @@ sed -i -e '/test_version/d' tests/__init__.py %{python3_sitearch}/%{pypi_name}*.so
%changelog +* Wed Feb 01 2023 Nikita Popov npopov@redhat.com - 1.4.5.1-10 +- Port to C99 + * Fri Jan 20 2023 Fedora Release Engineering releng@fedoraproject.org - 1.4.5.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
https://src.fedoraproject.org/rpms/python-zstd/c/bce32f8e8f4f37a4224b61c347c...
scm-commits@lists.fedoraproject.org