Skip to content

Commit 27c6c48

Browse files
committed
docker: Fix patches
1 parent d213d9e commit 27c6c48

File tree

3 files changed

+20
-41
lines changed

3 files changed

+20
-41
lines changed

docker/docker/PKGBUILD

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,16 @@ _TINI_COMMIT=de40ad007797e0dcd8b7126f27bb87401d224240
2121
source=("git+https://github.com/docker/cli.git#tag=v$pkgver"
2222
"git+https://github.com/moby/moby.git#tag=v$pkgver"
2323
"git+https://github.com/krallin/tini.git#commit=$_TINI_COMMIT"
24-
'capabilities.patch'
2524
'disableresolution.patch'
2625
"$pkgname.sysusers")
2726
sha256sums=('4ed0d3d0427cc06c92bacae0a02683ec5bfd7a4705d9ee6082eece90883c16b9'
2827
'b01447e534d0dd60860227b197f1387067ba74430631fac6a66e9658b1a1c595'
2928
'28a6641d508f60d47315efb3c85d97360188750a45bd6d3c8737d3f1a2b44121'
3029
'SKIP'
31-
'SKIP'
3230
'541826011a9836d05a2f42293d5f1beadf2ca8d89fb604487d61a013505678eb')
3331

3432
prepare() {
3533
cd "${srcdir}/moby"
36-
patch --strip=1 --input="${srcdir}/capabilities.patch"
3734
patch --strip=1 --input="${srcdir}/disableresolution.patch"
3835
}
3936
# create a fake go path directory and pushd into it

docker/docker/capabilities.patch

Lines changed: 0 additions & 27 deletions
This file was deleted.
Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,32 @@
11
diff --git a/daemon/network.go b/daemon/network.go
2-
index 01b5956adb..eb44df7895 100644
2+
index 0896378906..4ab7ad55b5 100644
33
--- a/daemon/network.go
44
+++ b/daemon/network.go
5-
@@ -10,7 +10,6 @@ import (
6-
"sync"
5+
@@ -12,7 +12,6 @@ import (
76

8-
"github.com/docker/docker/api/types"
7+
"github.com/containerd/log"
8+
"github.com/docker/docker/api/types/backend"
99
- containertypes "github.com/docker/docker/api/types/container"
10+
"github.com/docker/docker/api/types/events"
1011
"github.com/docker/docker/api/types/filters"
11-
"github.com/docker/docker/api/types/network"
12-
"github.com/docker/docker/container"
13-
@@ -860,9 +859,7 @@ func buildCreateEndpointOptions(c *container.Container, n libnetwork.Network, ep
14-
createOptions = append(createOptions, libnetwork.CreateOptionService(svcCfg.Name, svcCfg.ID, net.ParseIP(vip), portConfigs, svcCfg.Aliases[n.ID()]))
12+
networktypes "github.com/docker/docker/api/types/network"
13+
@@ -815,8 +814,6 @@ func buildCreateEndpointOptions(c *container.Container, n *libnetwork.Network, e
14+
var createOptions []libnetwork.EndpointOption
15+
var genericOptions = make(options.Generic)
16+
17+
- nwName := n.Name()
18+
-
19+
if epConfig != nil {
20+
if ipam := epConfig.IPAMConfig; ipam != nil {
21+
var ipList []net.IP
22+
@@ -877,9 +874,7 @@ func buildCreateEndpointOptions(c *container.Container, n *libnetwork.Network, e
23+
createOptions = append(createOptions, libnetwork.CreateOptionService(svcCfg.Name, svcCfg.ID, vip, portConfigs, svcCfg.Aliases[nwID]))
1524
}
1625

17-
- if !containertypes.NetworkMode(n.Name()).IsUserDefined() {
26+
- if !containertypes.NetworkMode(nwName).IsUserDefined() {
1827
- createOptions = append(createOptions, libnetwork.CreateOptionDisableResolution())
1928
- }
2029
+ createOptions = append(createOptions, libnetwork.CreateOptionDisableResolution())
2130

22-
// configs that are applicable only for the endpoint in the network
23-
// to which container was connected to on docker run.
31+
epOpts, err := buildPortsRelatedCreateEndpointOptions(c, n, sb)
32+
if err != nil {

0 commit comments

Comments
 (0)