#23 Fix build with Python 3.13.0a1
Merged 8 months ago by salimma. Opened 8 months ago by churchyard.
rpms/ churchyard/python-psutil py3.13  into  rawhide

@@ -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

file modified
+7
@@ -17,6 +17,13 @@ 

  # avoid: AssertionError: 7883822.420000001 != 7883822.42

  #

  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:  grep

No need to bump the release or build this.

Pull-Request has been merged by salimma

8 months ago

Merged, thanks. I take it you'll be rebuilding this in your sidetag