git: d8128d02c2d6 - main - security/honeytrap: Unbreak on i386
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 17 Jul 2022 19:19:53 UTC
The branch main has been updated by dmgk: URL: https://cgit.FreeBSD.org/ports/commit/?id=d8128d02c2d62bd28f81020a0747ef03df9168b1 commit d8128d02c2d62bd28f81020a0747ef03df9168b1 Author: Dmitri Goutnik <dmgk@FreeBSD.org> AuthorDate: 2022-07-17 19:13:56 +0000 Commit: Dmitri Goutnik <dmgk@FreeBSD.org> CommitDate: 2022-07-17 19:18:31 +0000 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) --- security/honeytrap/files/patch-services_docker_docker.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/security/honeytrap/files/patch-services_docker_docker.go b/security/honeytrap/files/patch-services_docker_docker.go new file mode 100644 index 000000000000..aff51f963edd --- /dev/null +++ b/security/honeytrap/files/patch-services_docker_docker.go @@ -0,0 +1,11 @@ +--- 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": "",