pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

minio: add (temporary) patch to use correct sysctl to determine physical RAM. Upstream pull request submitted.



Module Name:	pkgsrc-wip
Committed By:	Matthias Petermann <mp%petermann-it.de@localhost>
Pushed By:	mp
Date:		Tue Nov 17 01:58:31 2020 +0100
Changeset:	33b030e87f8c98c534396473ccc93930a59f2a27

Added Files:
	minio/patches/patch-pkg_sys_stats__bsd.go

Log Message:
minio: add (temporary) patch to use correct sysctl to determine physical RAM. Upstream pull request submitted.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=33b030e87f8c98c534396473ccc93930a59f2a27

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 minio/patches/patch-pkg_sys_stats__bsd.go | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diffs:
diff --git a/minio/patches/patch-pkg_sys_stats__bsd.go b/minio/patches/patch-pkg_sys_stats__bsd.go
new file mode 100644
index 0000000000..39f92a7aa2
--- /dev/null
+++ b/minio/patches/patch-pkg_sys_stats__bsd.go
@@ -0,0 +1,17 @@
+$NetBSD$
+
+* Use correct sysctl to determine physical memory on systems
+  with large RAM 
+* See also: https://github.com/minio/minio/pull/10907
+
+--- pkg/sys/stats_bsd.go.orig	2020-11-17 00:42:33.825154889 +0000
++++ pkg/sys/stats_bsd.go
+@@ -24,7 +24,7 @@ import (
+ )
+ 
+ func getHwPhysmem() (uint64, error) {
+-	totalString, err := syscall.Sysctl("hw.physmem")
++	totalString, err := syscall.Sysctl("hw.physmem64")
+ 	if err != nil {
+ 		return 0, err
+ 	}


Home | Main Index | Thread Index | Old Index