Source: kitty
Source-Version: 0.36.4-1
Severity: wishlist
Tags: patch

Hi!

I'm trying to upgrade the golang-github-shirou-gopsutil package from
v3 to v4, and this is one of the reverse dependencies that would fail
to build if I uploading it now.

The attached patch removes the hardcoded v3 suffix, which should make
it build with both v3 and v4. So it would be nice if this could be
uploaded right away to make this not block this mini-transition
anymore. :)

Thanks,
Guillem
From b6000c9f68a871ec68f7de07814ea36bc694195c Mon Sep 17 00:00:00 2001
From: Guillem Jover <[email protected]>
Date: Wed, 2 Oct 2024 00:31:28 +0200
Subject: [PATCH] Do not hardcode gopsutil v3

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.
---
 .../patches/Do-not-hardcode-gopsutil-v3.patch | 58 +++++++++++++++++++
 debian/patches/series                         |  1 +
 2 files changed, 59 insertions(+)
 create mode 100644 debian/patches/Do-not-hardcode-gopsutil-v3.patch

diff --git a/debian/patches/Do-not-hardcode-gopsutil-v3.patch b/debian/patches/Do-not-hardcode-gopsutil-v3.patch
new file mode 100644
index 000000000..8477385d4
--- /dev/null
+++ b/debian/patches/Do-not-hardcode-gopsutil-v3.patch
@@ -0,0 +1,58 @@
+From: Guillem Jover <[email protected]>
+Date: Tue, 01 Oct 2024 23:09:48 +0200
+Subject: Do not hardcode gopsutil v3
+
+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.
+
+---
+ tools/config/api.go  |    2 +-
+ tools/tui/run.go     |    2 +-
+ tools/tui/tmux.go    |    2 +-
+ tools/utils/paths.go |    2 +-
+ 4 files changed, 4 insertions(+), 4 deletions(-)
+
+--- a/tools/config/api.go
++++ b/tools/config/api.go
+@@ -19,7 +19,7 @@ import (
+ 
+ 	"kitty/tools/utils"
+ 
+-	"github.com/shirou/gopsutil/v3/process"
++	"github.com/shirou/gopsutil/process"
+ 	"golang.org/x/sys/unix"
+ )
+ 
+--- a/tools/tui/run.go
++++ b/tools/tui/run.go
+@@ -13,7 +13,7 @@ import (
+ 	"strings"
+ 	"sync"
+ 
+-	"github.com/shirou/gopsutil/v3/process"
++	"github.com/shirou/gopsutil/process"
+ 	"golang.org/x/sys/unix"
+ 
+ 	"kitty/tools/config"
+--- a/tools/tui/tmux.go
++++ b/tools/tui/tmux.go
+@@ -13,7 +13,7 @@ import (
+ 	"sync"
+ 	"time"
+ 
+-	"github.com/shirou/gopsutil/v3/process"
++	"github.com/shirou/gopsutil/process"
+ 	"golang.org/x/sys/unix"
+ 
+ 	"kitty/tools/utils"
+--- a/tools/utils/paths.go
++++ b/tools/utils/paths.go
+@@ -19,7 +19,7 @@ import (
+ 	"sync"
+ 	"unicode/utf8"
+ 
+-	"github.com/shirou/gopsutil/v3/process"
++	"github.com/shirou/gopsutil/process"
+ 	"golang.org/x/sys/unix"
+ )
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 1fb86c52a..a28cf892e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -9,3 +9,4 @@
 0009-skip-two-tests-on-ppc64.patch
 0010-disable-kitten-update-self-command.patch
 0011-ignore-vendor-dir.patch
+Do-not-hardcode-gopsutil-v3.patch
-- 
2.45.2

Reply via email to