5.4.3, fix FTBFS.

This commit is contained in:
Gwyn Ciesla 2018-01-22 10:19:30 -06:00
parent a4bfc7f353
commit 531faaa8c4
4 changed files with 45 additions and 5 deletions

1
.gitignore vendored
View File

@ -19,3 +19,4 @@ psutil-0.1.3.tar.gz
/psutil-5.0.1.tar.gz /psutil-5.0.1.tar.gz
/psutil-5.2.1.tar.gz /psutil-5.2.1.tar.gz
/psutil-5.2.2.tar.gz /psutil-5.2.2.tar.gz
/psutil-5.4.3.tar.gz

View File

@ -0,0 +1,36 @@
--- psutil/tests/test_memory_leaks.py~ 2018-01-01 14:32:56.000000000 -0600
+++ psutil/tests/test_memory_leaks.py 2018-01-22 10:03:05.206021533 -0600
@@ -365,14 +365,14 @@
@skip_if_linux()
# Windows implementation is based on a single system-wide
# function (tested later).
- @unittest.skipIf(WINDOWS, "worthless on WINDOWS")
- def test_connections(self):
- # TODO: UNIX sockets are temporarily implemented by parsing
- # 'pfiles' cmd output; we don't want that part of the code to
- # be executed.
- with create_sockets():
- kind = 'inet' if SUNOS else 'all'
- self.execute(self.proc.connections, kind)
+# @unittest.skipIf(WINDOWS, "worthless on WINDOWS")
+# def test_connections(self):
+# # TODO: UNIX sockets are temporarily implemented by parsing
+# # 'pfiles' cmd output; we don't want that part of the code to
+# # be executed.
+# with create_sockets():
+# kind = 'inet' if SUNOS else 'all'
+# self.execute(self.proc.connections, kind)
@unittest.skipIf(not HAS_ENVIRON, "not supported")
def test_environ(self):
--- psutil/tests/test_memory_leaks.py~ 2018-01-22 10:04:04.000000000 -0600
+++ psutil/tests/test_memory_leaks.py 2018-01-22 10:08:05.378651502 -0600
@@ -200,7 +200,7 @@
"pid", "as_dict", "children", "cpu_affinity", "cpu_percent",
"ionice", "is_running", "kill", "memory_info_ex", "memory_percent",
"nice", "oneshot", "parent", "rlimit", "send_signal", "suspend",
- "terminate", "wait"))
+ "terminate", "wait", "connections"))
for name in dir(psutil.Process):
if name.startswith('_'):
continue

View File

@ -5,8 +5,8 @@
%global __provides_exclude_from ^(%{python2_sitearch}|%{python3_sitearch})/.*\\.so$ %global __provides_exclude_from ^(%{python2_sitearch}|%{python3_sitearch})/.*\\.so$
Name: python-%{srcname} Name: python-%{srcname}
Version: 5.2.2 Version: 5.4.3
Release: 3%{?dist} Release: 1%{?dist}
Summary: %{sum} Summary: %{sum}
License: BSD License: BSD
@ -16,7 +16,7 @@ Source0: https://github.com/giampaolo/psutil/archive/release-%{version}.t
# Disable upstream failing test # Disable upstream failing test
# https://github.com/giampaolo/psutil/issues/946 # https://github.com/giampaolo/psutil/issues/946
# #
Patch0: psutil-5.0.1-disable-broken-tests.patch Patch0: psutil-5.4.3-disable-broken-tests.patch
BuildRequires: python2-devel BuildRequires: python2-devel
BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-devel
@ -59,7 +59,7 @@ ifconfig, nice, ionice, iostat, iotop, uptime, pidof, tty, who, taskset, pmap.
%prep %prep
%autosetup -p1 -n %{srcname}-release-%{version} %autosetup -p0 -n %{srcname}-release-%{version}
# Remove shebangs # Remove shebangs
find psutil -name \*.py | while read file; do find psutil -name \*.py | while read file; do
@ -100,6 +100,9 @@ make test-memleaks PYTHON=%{__python3}
%changelog %changelog
* Mon Jan 22 2018 Gwyn Ciesla <limburgher@gmail.com> - 5.4.3-1
- 5.4.3
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.2-3 * Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (psutil-5.2.2.tar.gz) = d4c996b968edd1e91ec9567e37443134f00ff4c6111a991aad8f4fb59f79b77e3fa6860bfa4f5d0fae0cfa17c2fa7c54e2d8e4c8afb55b6ea3eca580653dcc44 SHA512 (psutil-5.4.3.tar.gz) = e94a8f184000fa43ad8490badea6838b82e17d1a0f5e17cc61658dcac4eb841782bd393faf056de6e6ad26d04415a68bef59361ae2e0f77f822bb4ed37d84247