[packages/python-gevent] Rel 8; fix 32bit builds
arekm
arekm at pld-linux.org
Sat Mar 15 02:32:00 CET 2025
commit 602844ecd47b0729a358543b5db003bbe0e54458
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat Mar 15 00:40:28 2025 +0100
Rel 8; fix 32bit builds
32bit.patch | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
python-gevent.spec | 6 +++++-
2 files changed, 57 insertions(+), 1 deletion(-)
---
diff --git a/python-gevent.spec b/python-gevent.spec
index e6a62e9..f56e4d9 100644
--- a/python-gevent.spec
+++ b/python-gevent.spec
@@ -19,7 +19,7 @@ Summary: A coroutine-based Python 2 networking library
Summary(pl.UTF-8): Biblioteka sieciowa dla Pythona 2 oparta na korutynach
Name: python-%{module}
Version: 21.12.0
-Release: 7
+Release: 8
Epoch: 1
License: MIT
Group: Libraries/Python
@@ -29,6 +29,7 @@ Source0: https://files.pythonhosted.org/packages/source/g/gevent/%{module}-%{ver
Patch0: %{name}-sphinx-python3.patch
Patch1: known_failures-pld.patch
Patch2: not-final.patch
+Patch3: 32bit.patch
URL: http://www.gevent.org/
%{?with_system_c_ares:BuildRequires: c-ares-devel >= 1.10.0}
%{?with_system_libev:BuildRequires: libev-devel >= 4.23}
@@ -157,6 +158,9 @@ Dokumentacja API modułu Pythona gevent.
%patch -P 0 -p1
#%%patch -P 1 -p1
%patch -P 2 -p1
+cd deps/libuv
+%patch -P 3 -p1
+cd ../..
find . -type f -name '*.orig' | xargs -r %{__rm}
diff --git a/32bit.patch b/32bit.patch
new file mode 100644
index 0000000..33fc967
--- /dev/null
+++ b/32bit.patch
@@ -0,0 +1,52 @@
+From 07dddbeb44fe4e5a6bbbc9167ab00f0a8f8ddaca Mon Sep 17 00:00:00 2001
+From: Ben Noordhuis <info at bnoordhuis.nl>
+Date: Thu, 5 Nov 2020 09:33:03 +0100
+Subject: [PATCH] linux: fix -Wincompatible-pointer-types warning
+
+`ssize_t` is 32 bits on 32 bits architectures, `off_t` is 64 bits
+(because libuv builds with `-D_LARGEFILE_SOURCE`.)
+
+Introduced in commit ca10e36149 ("linux: use copy_file_range for
+uv_fs_copyfile when possible") merged in July of this year.
+
+Fixes: https://github.com/libuv/libuv/issues/3011
+PR-URL: https://github.com/libuv/libuv/pull/3028
+Reviewed-By: Colin Ihrig <cjihrig at gmail.com>
+Reviewed-By: Richard Lau <rlau at redhat.com>
+---
+ src/unix/linux-syscalls.c | 4 ++--
+ src/unix/linux-syscalls.h | 4 ++--
+ 2 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/src/unix/linux-syscalls.c b/src/unix/linux-syscalls.c
+index 44daaf12d49..5ba3ffd6b88 100644
+--- a/src/unix/linux-syscalls.c
++++ b/src/unix/linux-syscalls.c
+@@ -222,9 +222,9 @@ int uv__dup3(int oldfd, int newfd, int flags) {
+
+ ssize_t
+ uv__fs_copy_file_range(int fd_in,
+- ssize_t* off_in,
++ off_t* off_in,
+ int fd_out,
+- ssize_t* off_out,
++ off_t* off_out,
+ size_t len,
+ unsigned int flags)
+ {
+diff --git a/src/unix/linux-syscalls.h b/src/unix/linux-syscalls.h
+index 761ff32e21b..c85231f6bf4 100644
+--- a/src/unix/linux-syscalls.h
++++ b/src/unix/linux-syscalls.h
+@@ -66,9 +66,9 @@ ssize_t uv__pwritev(int fd, const struct iovec *iov, int iovcnt, int64_t offset)
+ int uv__dup3(int oldfd, int newfd, int flags);
+ ssize_t
+ uv__fs_copy_file_range(int fd_in,
+- ssize_t* off_in,
++ off_t* off_in,
+ int fd_out,
+- ssize_t* off_out,
++ off_t* off_out,
+ size_t len,
+ unsigned int flags);
+ int uv__statx(int dirfd,
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-gevent.git/commitdiff/602844ecd47b0729a358543b5db003bbe0e54458
More information about the pld-cvs-commit
mailing list