git: f71ecd52765b - main - sysutils/minikube: Unbreak on i386

From: Dmitri Goutnik <dmgk_at_FreeBSD.org>
Date: Sun, 17 Jul 2022 19:19:52 UTC
The branch main has been updated by dmgk:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f71ecd52765b4237472af8a3bcbef791013f3d72

commit f71ecd52765b4237472af8a3bcbef791013f3d72
Author:     Dmitri Goutnik <dmgk@FreeBSD.org>
AuthorDate: 2022-07-17 17:07:30 +0000
Commit:     Dmitri Goutnik <dmgk@FreeBSD.org>
CommitDate: 2022-07-17 19:18:31 +0000

    sysutils/minikube: Unbreak on i386
    
    vendor/github.com/shirou/gopsutil/v3/process/process_freebsd.go:118:9: cannot use k.Start.Sec * 1000 + k.Start.Usec / 1000 (value of type int32) as type int64 in return statement
    
    Convert process.Timespec fields to int64 on all archs.
    
    Reported by:    fallout
    Approved by:    portmgr (blanket, build fix)
---
 ..._github.com_shirou_gopsutil_v3_process_process__freebsd.go | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/sysutils/minikube/files/patch-vendor_github.com_shirou_gopsutil_v3_process_process__freebsd.go b/sysutils/minikube/files/patch-vendor_github.com_shirou_gopsutil_v3_process_process__freebsd.go
new file mode 100644
index 000000000000..a2a4c3bc360e
--- /dev/null
+++ b/sysutils/minikube/files/patch-vendor_github.com_shirou_gopsutil_v3_process_process__freebsd.go
@@ -0,0 +1,11 @@
+--- vendor/github.com/shirou/gopsutil/v3/process/process_freebsd.go.orig	2022-07-17 16:56:05 UTC
++++ vendor/github.com/shirou/gopsutil/v3/process/process_freebsd.go
+@@ -115,7 +115,7 @@ func (p *Process) createTimeWithContext(ctx context.Co
+ 	if err != nil {
+ 		return 0, err
+ 	}
+-	return k.Start.Sec*1000 + k.Start.Usec/1000, nil
++	return int64(k.Start.Sec)*1000 + int64(k.Start.Usec)/1000, nil
+ }
+ 
+ func (p *Process) StatusWithContext(ctx context.Context) ([]string, error) {