File: gopsutil-v4.patch

package info (click to toggle)
podman 5.6.1%2Bds2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,244 kB
  • sloc: sh: 4,493; python: 2,676; perl: 1,885; ansic: 1,484; makefile: 988; ruby: 42; csh: 8
file content (68 lines) | stat: -rw-r--r-- 2,350 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
From: Guillem Jover <gjover@sipwise.com>
Date: Tue, 1 Oct 2024 22:48:05 +0200
Subject: Do not hardcode gopsutil v4

Forwarded: Not-needed
Debian-Bug: https://bugs.debian.org/1083117

We can use v4 when no version suffix is used. Remove it so that we can
upgrade the gopsutil modules from v3 to v4 in Debian.
---
 cmd/podman/machine/init.go     | 2 +-
 cmd/podman/machine/server9p.go | 2 +-
 pkg/machine/e2e/init_test.go   | 2 +-
 pkg/machine/gvproxy_unix.go    | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/cmd/podman/machine/init.go b/cmd/podman/machine/init.go
index 2b3277d..d1cce42 100644
--- a/cmd/podman/machine/init.go
+++ b/cmd/podman/machine/init.go
@@ -15,7 +15,7 @@ import (
 	"github.com/containers/podman/v5/pkg/machine/define"
 	"github.com/containers/podman/v5/pkg/machine/shim"
 	"github.com/containers/podman/v5/pkg/machine/vmconfigs"
-	"github.com/shirou/gopsutil/v4/mem"
+	"github.com/shirou/gopsutil/mem"
 	"github.com/sirupsen/logrus"
 	"github.com/spf13/cobra"
 )
diff --git a/cmd/podman/machine/server9p.go b/cmd/podman/machine/server9p.go
index dae39f7..a24158e 100644
--- a/cmd/podman/machine/server9p.go
+++ b/cmd/podman/machine/server9p.go
@@ -11,7 +11,7 @@ import (
 	"github.com/containers/common/pkg/completion"
 	"github.com/containers/podman/v5/cmd/podman/registry"
 	"github.com/containers/podman/v5/pkg/fileserver"
-	psutil "github.com/shirou/gopsutil/v4/process"
+	psutil "github.com/shirou/gopsutil/process"
 	"github.com/sirupsen/logrus"
 	"github.com/spf13/cobra"
 )
diff --git a/pkg/machine/e2e/init_test.go b/pkg/machine/e2e/init_test.go
index e1bbca4..234b1d4 100644
--- a/pkg/machine/e2e/init_test.go
+++ b/pkg/machine/e2e/init_test.go
@@ -15,7 +15,7 @@ import (
 	. "github.com/onsi/ginkgo/v2"
 	. "github.com/onsi/gomega"
 	. "github.com/onsi/gomega/gexec"
-	"github.com/shirou/gopsutil/v4/mem"
+	"github.com/shirou/gopsutil/mem"
 	"github.com/sirupsen/logrus"
 )
 
diff --git a/pkg/machine/gvproxy_unix.go b/pkg/machine/gvproxy_unix.go
index da76fc4..f5e2afd 100644
--- a/pkg/machine/gvproxy_unix.go
+++ b/pkg/machine/gvproxy_unix.go
@@ -9,7 +9,7 @@ import (
 	"time"
 
 	"github.com/containers/podman/v5/pkg/machine/define"
-	psutil "github.com/shirou/gopsutil/v4/process"
+	psutil "github.com/shirou/gopsutil/process"
 	"github.com/sirupsen/logrus"
 	"golang.org/x/sys/unix"
 )