From owner-svn-ports-all@freebsd.org Tue Jan 15 08:18:16 2019 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E4D2514A5C5B; Tue, 15 Jan 2019 08:18:15 +0000 (UTC) (envelope-from joneum@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 74EC174466; Tue, 15 Jan 2019 08:18:15 +0000 (UTC) (envelope-from joneum@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 61E2118243; Tue, 15 Jan 2019 08:18:15 +0000 (UTC) (envelope-from joneum@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x0F8IFHu053696; Tue, 15 Jan 2019 08:18:15 GMT (envelope-from joneum@FreeBSD.org) Received: (from joneum@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x0F8IEgN053692; Tue, 15 Jan 2019 08:18:14 GMT (envelope-from joneum@FreeBSD.org) Message-Id: <201901150818.x0F8IEgN053692@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: joneum set sender to joneum@FreeBSD.org using -f From: Jochen Neumeister Date: Tue, 15 Jan 2019 08:18:14 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r490353 - in branches/2019Q1/sysutils/docker-freebsd: . files X-SVN-Group: ports-branches X-SVN-Commit-Author: joneum X-SVN-Commit-Paths: in branches/2019Q1/sysutils/docker-freebsd: . files X-SVN-Commit-Revision: 490353 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 74EC174466 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.95 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.96)[-0.956,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-0.999,0] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jan 2019 08:18:16 -0000 Author: joneum Date: Tue Jan 15 08:18:14 2019 New Revision: 490353 URL: https://svnweb.freebsd.org/changeset/ports/490353 Log: MFH: r490308 Add patch to fix an error: docker run hello-world Error response from daemon: json: cannot set embedded pointer to unexported struct: runconfig.hostConfigWrapper PR: 227618 Sponsored by: Netzkommune GmbH Approved by: ports-secteam (miwi) Added: branches/2019Q1/sysutils/docker-freebsd/files/patch-pkg_system_meminfo__unsupported.go - copied unchanged from r490308, head/sysutils/docker-freebsd/files/patch-pkg_system_meminfo__unsupported.go branches/2019Q1/sysutils/docker-freebsd/files/patch-runconfig_config.go - copied unchanged from r490308, head/sysutils/docker-freebsd/files/patch-runconfig_config.go branches/2019Q1/sysutils/docker-freebsd/files/patch-runconfig_hostconfig.go - copied unchanged from r490308, head/sysutils/docker-freebsd/files/patch-runconfig_hostconfig.go Modified: branches/2019Q1/sysutils/docker-freebsd/Makefile Directory Properties: branches/2019Q1/ (props changed) Modified: branches/2019Q1/sysutils/docker-freebsd/Makefile ============================================================================== --- branches/2019Q1/sysutils/docker-freebsd/Makefile Tue Jan 15 08:09:44 2019 (r490352) +++ branches/2019Q1/sysutils/docker-freebsd/Makefile Tue Jan 15 08:18:14 2019 (r490353) @@ -3,7 +3,7 @@ PORTNAME= docker-freebsd PORTVERSION= 20150625 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils MAINTAINER= ports@FreeBSD.org Copied: branches/2019Q1/sysutils/docker-freebsd/files/patch-pkg_system_meminfo__unsupported.go (from r490308, head/sysutils/docker-freebsd/files/patch-pkg_system_meminfo__unsupported.go) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2019Q1/sysutils/docker-freebsd/files/patch-pkg_system_meminfo__unsupported.go Tue Jan 15 08:18:14 2019 (r490353, copy of r490308, head/sysutils/docker-freebsd/files/patch-pkg_system_meminfo__unsupported.go) @@ -0,0 +1,9 @@ +--- pkg/system/meminfo_unsupported.go.orig 2015-06-08 13:34:30 UTC ++++ pkg/system/meminfo_unsupported.go +@@ -3,5 +3,5 @@ + package system + + func ReadMemInfo() (*MemInfo, error) { +- return nil, ErrNotSupportedPlatform ++ return &MemInfo{}, ErrNotSupportedPlatform + } Copied: branches/2019Q1/sysutils/docker-freebsd/files/patch-runconfig_config.go (from r490308, head/sysutils/docker-freebsd/files/patch-runconfig_config.go) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2019Q1/sysutils/docker-freebsd/files/patch-runconfig_config.go Tue Jan 15 08:18:14 2019 (r490353, copy of r490308, head/sysutils/docker-freebsd/files/patch-runconfig_config.go) @@ -0,0 +1,21 @@ +--- runconfig/config.go.orig 2015-06-08 13:34:30 UTC ++++ runconfig/config.go +@@ -132,15 +132,15 @@ type Config struct { + + type ContainerConfigWrapper struct { + *Config +- *hostConfigWrapper ++ *HostConfigWrapper + } + + func (c ContainerConfigWrapper) HostConfig() *HostConfig { +- if c.hostConfigWrapper == nil { ++ if c.HostConfigWrapper == nil { + return new(HostConfig) + } + +- return c.hostConfigWrapper.GetHostConfig() ++ return c.HostConfigWrapper.GetHostConfig() + } + + func DecodeContainerConfig(src io.Reader) (*Config, *HostConfig, error) { Copied: branches/2019Q1/sysutils/docker-freebsd/files/patch-runconfig_hostconfig.go (from r490308, head/sysutils/docker-freebsd/files/patch-runconfig_hostconfig.go) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2019Q1/sysutils/docker-freebsd/files/patch-runconfig_hostconfig.go Tue Jan 15 08:18:14 2019 (r490353, copy of r490308, head/sysutils/docker-freebsd/files/patch-runconfig_hostconfig.go) @@ -0,0 +1,33 @@ +--- runconfig/hostconfig.go.orig 2015-06-08 13:34:30 UTC ++++ runconfig/hostconfig.go +@@ -234,18 +234,18 @@ type HostConfig struct { + func MergeConfigs(config *Config, hostConfig *HostConfig) *ContainerConfigWrapper { + return &ContainerConfigWrapper{ + config, +- &hostConfigWrapper{InnerHostConfig: hostConfig}, ++ &HostConfigWrapper{InnerHostConfig: hostConfig}, + } + } + +-type hostConfigWrapper struct { ++type HostConfigWrapper struct { + InnerHostConfig *HostConfig `json:"HostConfig,omitempty"` + Cpuset string `json:",omitempty"` // Deprecated. Exported for backwards compatibility. + + *HostConfig // Deprecated. Exported to read attrubutes from json that are not in the inner host config structure. + } + +-func (w hostConfigWrapper) GetHostConfig() *HostConfig { ++func (w HostConfigWrapper) GetHostConfig() *HostConfig { + hc := w.HostConfig + + if hc == nil && w.InnerHostConfig != nil { +@@ -274,7 +274,7 @@ func (w hostConfigWrapper) GetHostConfig + func DecodeHostConfig(src io.Reader) (*HostConfig, error) { + decoder := json.NewDecoder(src) + +- var w hostConfigWrapper ++ var w HostConfigWrapper + if err := decoder.Decode(&w); err != nil { + return nil, err + }