Port to C99
Related to: <https://fedoraproject.org/wiki/Changes/PortingToModernC> <https://fedoraproject.org/wiki/Toolchain/PortingToModernC>
This commit is contained in:
parent
85ca54564a
commit
bce32f8e8f
12
python-zstd-1.4.5.1-c99.patch
Normal file
12
python-zstd-1.4.5.1-c99.patch
Normal file
@ -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 */
|
||||||
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: python-%{pypi_name}
|
Name: python-%{pypi_name}
|
||||||
Version: %{zstd_version}.1
|
Version: %{zstd_version}.1
|
||||||
Release: 9%{?dist}
|
Release: 10%{?dist}
|
||||||
Summary: Zstd Bindings for Python
|
Summary: Zstd Bindings for Python
|
||||||
|
|
||||||
License: BSD
|
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
|
# From https://github.com/sergey-dryabzhinsky/python-zstd/commit/4e9b8b0cbf
|
||||||
Patch3: 0003-Port-to-Python-3.11-use-Py_SET_SIZE.patch
|
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: gcc
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3dist(setuptools)
|
BuildRequires: python3dist(setuptools)
|
||||||
@ -67,6 +70,9 @@ sed -i -e '/test_version/d' tests/__init__.py
|
|||||||
%{python3_sitearch}/%{pypi_name}*.so
|
%{python3_sitearch}/%{pypi_name}*.so
|
||||||
|
|
||||||
%changelog
|
%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
|
* 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
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user