diff --git a/mem-used-bsc1181475.patch b/mem-used-bsc1181475.patch deleted file mode 100644 index 5333ad4..0000000 --- a/mem-used-bsc1181475.patch +++ /dev/null @@ -1,34 +0,0 @@ ---- - psutil/_pslinux.py | 12 ++++++------ - 1 file changed, 6 insertions(+), 6 deletions(-) - -Index: psutil-5.9.5/psutil/_pslinux.py -=================================================================== ---- psutil-5.9.5.orig/psutil/_pslinux.py -+++ psutil-5.9.5/psutil/_pslinux.py -@@ -474,12 +474,6 @@ def virtual_memory(): - except KeyError: - slab = 0 - -- used = total - free - cached - buffers -- if used < 0: -- # May be symptomatic of running within a LCX container where such -- # values will be dramatically distorted over those of the host. -- used = total - free -- - # - starting from 4.4.0 we match free's "available" column. - # Before 4.4.0 we calculated it as (free + buffers + cached) - # which matched htop. -@@ -510,6 +504,12 @@ def virtual_memory(): - # 24fd2605c51fccc375ab0287cec33aa767f06718/proc/sysinfo.c#L764 - avail = free - -+ used = total - avail -+ if used < 0: -+ # May be symptomatic of running within a LCX container where such -+ # values will be dramatically distorted over those of the host. -+ used = total - free -+ - percent = usage_percent((total - avail), total, round_=1) - - # Warn about missing metrics which are set to 0. diff --git a/psutil-7.0.0.tar.gz b/psutil-7.0.0.tar.gz deleted file mode 100644 index 8594680..0000000 --- a/psutil-7.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7be9c3eba38beccb6495ea33afd982a44074b78f28c434a1f51cc07fd315c456 -size 497003 diff --git a/psutil-7.1.0.tar.gz b/psutil-7.1.0.tar.gz new file mode 100644 index 0000000..7a545b5 --- /dev/null +++ b/psutil-7.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:655708b3c069387c8b77b072fc429a57d0e214221d01c0a772df7dfedcb3bcd2 +size 497660 diff --git a/python-psutil.changes b/python-psutil.changes index ceb7a39..d01d9d1 100644 --- a/python-psutil.changes +++ b/python-psutil.changes @@ -1,3 +1,50 @@ +------------------------------------------------------------------- +Fri Sep 26 08:06:59 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 7.1.0 + * 2581_, [Windows]: publish ARM64 wheels. (patch by Matthieu Darbois) + * 2571_, [FreeBSD]: Dropped support for FreeBSD 8 and earlier. FreeBSD 8 was + maintained from 2009 to 2013. + * 2575_: introduced `dprint` CLI tool to format .yml and .md files. + * 2473_, [macOS]: Fix build issue on macOS 11 and lower. + * 2494_, [Windows]: All APIs dealing with paths, such as + `Process.memory_maps()`_, `Process.exe()`_ and `Process.open_files()`_ does + not properly handle UNC paths. Paths such as ``\\??\\C:\\Windows\\Temp`` and + ``'\\Device\\HarddiskVolume1\\Windows\\Temp'`` are now converted to + ``C:\\Windows\\Temp``. (patch by Ben Peddell) + * 2506_, [Windows]: Windows service APIs had issues with unicode services using + special characters in their name. + * 2514_, [Linux]: `Process.cwd()`_ sometimes fail with `FileNotFoundError` due + to a race condition. + * 2526_, [Linux]: `Process.create_time()`_, which is used to univocally + identify a process over time, is subject to system clock updates, and as such + can lead to `Process.is_running()`_ returning a wrong result. A monotonic + creation time is now used instead. (patch by Jonathan Kohler) + * 2528_, [Linux]: `Process.children()`_ may raise ``PermissionError``. It will + now raise `AccessDenied`_ instead. + * 2540_, [macOS]: `boot_time()`_ is off by 45 seconds (C precision issue). + * 2541_, 2570_, 2578_ [Linux], [macOS], [NetBSD]: `Process.create_time()`_ does + not reflect system clock updates. + * 2542_: if system clock is updated `Process.children()`_ and + `Process.parent()`_ may not be able to return the right information. + * 2545_: [Illumos]: Fix handling of MIB2_UDP_ENTRY in `net_connections()`_. + * 2552_, [Windows]: `boot_time()`_ didn't take into account the time spent + during suspend / hibernation. + * 2560_, [Linux]: `Process.memory_maps()`_ may crash with `IndexError` on + RISCV64 due to a malformed `/proc/{PID}/smaps` file. (patch by Julien + Stephan) + * 2586_, [macOS], [CRITICAL]: fixed different places in C code which can + trigger a segfault. + * 2604_, [Linux]: `virtual_memory()`_ "used" memory does not match recent + versions of ``free`` CLI utility. (patch by Isaac K. Ko) + * 2605_, [Linux]: `psutil.sensors_battery()` reports a negative amount for + seconds left. + * 2607_, [Windows]: ``WindowsService.description()`` method may fail with + ``ERROR_NOT_FOUND``. Now it returns an empty string instead. + * 2610:, [macOS], [CRITICAL]: fix `cpu_freq()`_ segfault on ARM architectures. + * 2571_: dropped support for FreeBSD 8 and earlier. +- Drop mem-used-bsc1181475.patch, fixed upstream + ------------------------------------------------------------------- Thu May 29 08:05:29 UTC 2025 - Dirk Müller diff --git a/python-psutil.spec b/python-psutil.spec index cb51369..5d47789 100644 --- a/python-psutil.spec +++ b/python-psutil.spec @@ -23,14 +23,12 @@ %endif %{?sle15_python_module_pythons} Name: python-psutil -Version: 7.0.0 +Version: 7.1.0 Release: 0 Summary: A process utilities module for Python License: BSD-3-Clause URL: https://github.com/giampaolo/psutil Source: https://files.pythonhosted.org/packages/source/p/psutil/psutil-%{version}.tar.gz -# PATCH-FIX-SLE adopt change of used memory of procps -Patch4: mem-used-bsc1181475.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools}