Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
7c7693548a | ||
|
05d572f7b0 |
12
python-psutil-include-unistd.h.patch
Normal file
12
python-psutil-include-unistd.h.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff --git a/psutil/_psutil_linux.c b/psutil/_psutil_linux.c
|
||||||
|
index a6ee602..56fd4f6 100644
|
||||||
|
--- a/psutil/_psutil_linux.c
|
||||||
|
+++ b/psutil/_psutil_linux.c
|
||||||
|
@@ -24,6 +24,7 @@
|
||||||
|
#include <linux/sockios.h>
|
||||||
|
#include <linux/if.h>
|
||||||
|
#include <sys/resource.h>
|
||||||
|
+#include <unistd.h>
|
||||||
|
|
||||||
|
// see: https://github.com/giampaolo/psutil/issues/659
|
||||||
|
#ifdef PSUTIL_ETHTOOL_MISSING_TYPES
|
@ -3,10 +3,10 @@
|
|||||||
|
|
||||||
Name: python-%{srcname}
|
Name: python-%{srcname}
|
||||||
Version: 5.9.5
|
Version: 5.9.5
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: %{sum}
|
Summary: %{sum}
|
||||||
|
|
||||||
License: BSD
|
License: BSD-3-Clause
|
||||||
URL: https://github.com/giampaolo/psutil
|
URL: https://github.com/giampaolo/psutil
|
||||||
Source0: %{url}/archive/release-%{version}/%{srcname}-%{version}.tar.gz
|
Source0: %{url}/archive/release-%{version}/%{srcname}-%{version}.tar.gz
|
||||||
#
|
#
|
||||||
@ -17,6 +17,13 @@ Patch0: python-psutil-skip-tests-in-mock.patch
|
|||||||
# avoid: AssertionError: 7883822.420000001 != 7883822.42
|
# avoid: AssertionError: 7883822.420000001 != 7883822.42
|
||||||
#
|
#
|
||||||
Patch1: python-psutil-test-sum-floats-via-almost-equal.patch
|
Patch1: python-psutil-test-sum-floats-via-almost-equal.patch
|
||||||
|
#
|
||||||
|
# include unistd.h to avoid (on Python 3.13+):
|
||||||
|
# error: implicit declaration of function ‘syscall’
|
||||||
|
# error: implicit declaration of function ‘close’
|
||||||
|
# upstream PR: https://github.com/giampaolo/psutil/pull/2321
|
||||||
|
#
|
||||||
|
Patch2: python-psutil-include-unistd.h.patch
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: grep
|
BuildRequires: grep
|
||||||
@ -95,6 +102,9 @@ make test APPVEYOR=1 PYTHON=%{__python3} PYTHONPATH=%{buildroot}/%{python3_sitea
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 08 2023 Karolina Surma <ksurma@redhat.com> - 5.9.5-2
|
||||||
|
- Declare the license as an SPDX expression
|
||||||
|
|
||||||
* Fri Aug 04 2023 Jonathan Wright <jonathan@almalinux.org> - 5.9.5-1
|
* Fri Aug 04 2023 Jonathan Wright <jonathan@almalinux.org> - 5.9.5-1
|
||||||
- Update to 5.9.5 rhbz#2135931
|
- Update to 5.9.5 rhbz#2135931
|
||||||
- Skip unreliable test rhbz#2169395
|
- Skip unreliable test rhbz#2169395
|
||||||
|
Loading…
Reference in New Issue
Block a user