ports/security/honeytrap/files/patch-services_docker_docker.go
Dmitri Goutnik d8128d02c2 security/honeytrap: Unbreak on i386
services/docker/docker.go:405:23: cannot use 16348065792 (untyped int constant) as int value in map literal (overflows)

Make constant literal int64 on all archs.

Reported by:	fallout
Approved by:	portmgr (blanket, build fix)
2022-07-17 14:18:31 -05:00

11 lines
386 B
Go

--- services/docker/docker.go.orig 2022-07-17 19:10:19 UTC
+++ services/docker/docker.go
@@ -402,7 +402,7 @@ var infoResp = map[string]interface{}{
"Mirrors": []interface{}{},
},
"NCPU": 8,
- "MemTotal": 16348065792,
+ "MemTotal": int64(16348065792),
"GenericResources": nil,
"DockerRootDir": "/var/lib/docker",
"HttpProxy": "",