Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/docker/files/
Date: Sat, 07 May 2016 03:07:04
Message-Id: 1462589910.31912fe989d2245a42d7c37d30afa40af2039df6.williamh@gentoo
1 commit: 31912fe989d2245a42d7c37d30afa40af2039df6
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 7 02:58:05 2016 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Sat May 7 02:58:30 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31912fe9
7
8 app-emulation/docker: remove unused files
9
10 Package-Manager: portage-2.2.26
11
12 app-emulation/docker/files/15404-fix-go14_15.patch | 85 ----------------------
13 .../docker/files/18074-disable-journald-arm.patch | 30 --------
14 .../docker/files/7179-add-audit_write-cap.patch | 29 --------
15 app-emulation/docker/files/docker-r2.confd | 18 -----
16 app-emulation/docker/files/docker-r2.initd | 54 --------------
17 app-emulation/docker/files/docker-r3.confd | 13 ----
18 app-emulation/docker/files/docker-r3.initd | 31 --------
19 app-emulation/docker/files/docker.initd | 31 --------
20 app-emulation/docker/files/docker.service | 12 ---
21 9 files changed, 303 deletions(-)
22
23 diff --git a/app-emulation/docker/files/15404-fix-go14_15.patch b/app-emulation/docker/files/15404-fix-go14_15.patch
24 deleted file mode 100644
25 index 7cda1f9..0000000
26 --- a/app-emulation/docker/files/15404-fix-go14_15.patch
27 +++ /dev/null
28 @@ -1,85 +0,0 @@
29 -From f83d05c3be3c3bcc84f6fa229504848ee8078321 Mon Sep 17 00:00:00 2001
30 -From: Vincent Batts <vbatts@××××××.com>
31 -Date: Fri, 7 Aug 2015 10:18:20 -0400
32 -Subject: [PATCH] devicemapper: fix zero-sized field access
33 -
34 -Fixes: #15279
35 -
36 -Due to
37 -https://github.com/golang/go/commit/7904946eeb35faece61bbf6f5b3cc8be2f519c17
38 -the devices field is dropped.
39 -
40 -This solution works on go1.4 and go1.5
41 -
42 -Signed-off-by: Vincent Batts <vbatts@××××××.com>
43 ----
44 - daemon/graphdriver/devmapper/deviceset.go | 14 +++++++++-----
45 - pkg/devicemapper/devmapper_wrapper.go | 18 +++++++++++++++---
46 - 2 files changed, 24 insertions(+), 8 deletions(-)
47 -
48 -diff --git a/daemon/graphdriver/devmapper/deviceset.go b/daemon/graphdriver/devmapper/deviceset.go
49 -index 6dddeb1..97e2032 100644
50 ---- a/daemon/graphdriver/devmapper/deviceset.go
51 -+++ b/daemon/graphdriver/devmapper/deviceset.go
52 -@@ -1509,12 +1509,16 @@ func (devices *DeviceSet) deactivatePool() error {
53 - if err != nil {
54 - return err
55 - }
56 -- if d, err := devicemapper.GetDeps(devname); err == nil {
57 -- // Access to more Debug output
58 -- logrus.Debugf("[devmapper] devicemapper.GetDeps() %s: %#v", devname, d)
59 -+
60 -+ if devinfo.Exists == 0 {
61 -+ return nil
62 - }
63 -- if devinfo.Exists != 0 {
64 -- return devicemapper.RemoveDevice(devname)
65 -+ if err := devicemapper.RemoveDevice(devname); err != nil {
66 -+ return err
67 -+ }
68 -+
69 -+ if d, err := devicemapper.GetDeps(devname); err == nil {
70 -+ logrus.Warnf("[devmapper] device %s still has %d active dependents", devname, d.Count)
71 - }
72 -
73 - return nil
74 -diff --git a/pkg/devicemapper/devmapper_wrapper.go b/pkg/devicemapper/devmapper_wrapper.go
75 -index 87c2003..44ca772 100644
76 ---- a/pkg/devicemapper/devmapper_wrapper.go
77 -+++ b/pkg/devicemapper/devmapper_wrapper.go
78 -@@ -38,7 +38,10 @@ static void log_with_errno_init()
79 - */
80 - import "C"
81 -
82 --import "unsafe"
83 -+import (
84 -+ "reflect"
85 -+ "unsafe"
86 -+)
87 -
88 - type (
89 - CDmTask C.struct_dm_task
90 -@@ -184,12 +187,21 @@ func dmTaskGetDepsFct(task *CDmTask) *Deps {
91 - if Cdeps == nil {
92 - return nil
93 - }
94 -+
95 -+ // golang issue: https://github.com/golang/go/issues/11925
96 -+ hdr := reflect.SliceHeader{
97 -+ Data: uintptr(unsafe.Pointer(uintptr(unsafe.Pointer(Cdeps)) + unsafe.Sizeof(*Cdeps))),
98 -+ Len: int(Cdeps.count),
99 -+ Cap: int(Cdeps.count),
100 -+ }
101 -+ devices := *(*[]C.uint64_t)(unsafe.Pointer(&hdr))
102 -+
103 - deps := &Deps{
104 - Count: uint32(Cdeps.count),
105 - Filler: uint32(Cdeps.filler),
106 - }
107 -- for _, device := range Cdeps.device {
108 -- deps.Device = append(deps.Device, (uint64)(device))
109 -+ for _, device := range devices {
110 -+ deps.Device = append(deps.Device, uint64(device))
111 - }
112 - return deps
113 - }
114
115 diff --git a/app-emulation/docker/files/18074-disable-journald-arm.patch b/app-emulation/docker/files/18074-disable-journald-arm.patch
116 deleted file mode 100644
117 index e7c9a2f..0000000
118 --- a/app-emulation/docker/files/18074-disable-journald-arm.patch
119 +++ /dev/null
120 @@ -1,30 +0,0 @@
121 -diff --git a/daemon/logger/journald/journald.go b/daemon/logger/journald/journald.go
122 -index c729b56..97c379c 100644
123 ---- a/daemon/logger/journald/journald.go
124 -+++ b/daemon/logger/journald/journald.go
125 -@@ -1,4 +1,4 @@
126 --// +build linux
127 -+// +build linux,!arm
128 -
129 - // Package journald provides the log driver for forwarding server logs
130 - // to endpoints that receive the systemd format.
131 -diff --git a/daemon/logger/journald/journald_unsupported.go b/daemon/logger/journald/journald_unsupported.go
132 -index d52ca92..8e9034a 100644
133 ---- a/daemon/logger/journald/journald_unsupported.go
134 -+++ b/daemon/logger/journald/journald_unsupported.go
135 -@@ -1,4 +1,4 @@
136 --// +build !linux
137 -+// +build !linux linux,arm
138 -
139 - package journald
140 -
141 -diff --git a/daemon/logger/journald/read.go b/daemon/logger/journald/read.go
142 -index 80c1fbd..0477c04 100644
143 ---- a/daemon/logger/journald/read.go
144 -+++ b/daemon/logger/journald/read.go
145 -@@ -1,4 +1,4 @@
146 --// +build linux,cgo,!static_build,journald
147 -+// +build linux,cgo,!static_build,journald,!arm
148 -
149 - package journald
150 -
151
152 diff --git a/app-emulation/docker/files/7179-add-audit_write-cap.patch b/app-emulation/docker/files/7179-add-audit_write-cap.patch
153 deleted file mode 100644
154 index 6263698..0000000
155 --- a/app-emulation/docker/files/7179-add-audit_write-cap.patch
156 +++ /dev/null
157 @@ -1,29 +0,0 @@
158 -From 29ecc95c31ecfe15e3b3d8db94cea1c555e526a3 Mon Sep 17 00:00:00 2001
159 -From: Alexandr Morozov <lk4d4math@×××××.com>
160 -Date: Wed, 23 Jul 2014 09:57:41 +0400
161 -Subject: [PATCH] Add AUDIT_WRITE cap
162 -
163 -Fixes #6345
164 -
165 -Thanks @larsks for outstanding investigation
166 -
167 -Docker-DCO-1.1-Signed-off-by: Alexandr Morozov <lk4d4math@×××××.com> (github: LK4D4)
168 ----
169 - daemon/execdriver/native/template/default_template.go | 1 +
170 - 1 file changed, 1 insertion(+)
171 -
172 -diff --git a/daemon/execdriver/native/template/default_template.go b/daemon/execdriver/native/template/default_template.go
173 -index cc5cc4f..be3dd5a 100644
174 ---- a/daemon/execdriver/native/template/default_template.go
175 -+++ b/daemon/execdriver/native/template/default_template.go
176 -@@ -23,6 +23,7 @@ func New() *libcontainer.Config {
177 - "NET_BIND_SERVICE",
178 - "SYS_CHROOT",
179 - "KILL",
180 -+ "AUDIT_WRITE",
181 - },
182 - Namespaces: map[string]bool{
183 - "NEWNS": true,
184 ---
185 -2.0.3
186 -
187
188 diff --git a/app-emulation/docker/files/docker-r2.confd b/app-emulation/docker/files/docker-r2.confd
189 deleted file mode 100644
190 index 5436b23..0000000
191 --- a/app-emulation/docker/files/docker-r2.confd
192 +++ /dev/null
193 @@ -1,18 +0,0 @@
194 -# /etc/conf.d/docker: config file for /etc/init.d/docker
195 -
196 -# where the docker daemon output gets piped
197 -#DOCKER_LOGFILE="/var/log/docker.log"
198 -
199 -# where docker's pid get stored
200 -#DOCKER_PIDFILE="/run/docker.pid"
201 -
202 -# where the docker daemon itself is run from
203 -#DOCKER_BINARY="/usr/bin/docker"
204 -
205 -# uncomment this for a simple workaround to
206 -# https://github.com/dotcloud/docker/issues/1422
207 -#DOCKER_WORKAROUND_1422="1"
208 -
209 -# if you find that the default DOCKER_WORKAROUND_1422 delay of one second
210 -# is not sufficient, try uncommenting and increasing this value
211 -#DOCKER_WORKAROUND_1422_DELAY="1"
212
213 diff --git a/app-emulation/docker/files/docker-r2.initd b/app-emulation/docker/files/docker-r2.initd
214 deleted file mode 100644
215 index b081d9c..0000000
216 --- a/app-emulation/docker/files/docker-r2.initd
217 +++ /dev/null
218 @@ -1,54 +0,0 @@
219 -#!/sbin/runscript
220 -# Copyright 1999-2015 Gentoo Foundation
221 -# Distributed under the terms of the GNU General Public License v2
222 -# $Id$
223 -
224 -DOCKER_LOGFILE=${DOCKER_LOGFILE:-/var/log/${SVCNAME}.log}
225 -DOCKER_PIDFILE=${DOCKER_PIDFILE:-/run/${SVCNAME}.pid}
226 -DOCKER_BINARY=${DOCKER_BINARY:-/usr/bin/docker}
227 -DOCKER_WORKAROUND_1422=${DOCKER_WORKAROUND_1422:-0}
228 -DOCKER_WORKAROUND_1422_DELAY=${DOCKER_WORKAROUND_1422_DELAY:-1}
229 -
230 -start() {
231 - checkpath -f -m 0644 -o root:docker "$DOCKER_LOGFILE"
232 -
233 - ebegin "Starting docker daemon"
234 - start-stop-daemon --start --background \
235 - --exec "$DOCKER_BINARY" \
236 - --pidfile "$DOCKER_PIDFILE" \
237 - --stdout "$DOCKER_LOGFILE" \
238 - --stderr "$DOCKER_LOGFILE" \
239 - -- -d -p "$DOCKER_PIDFILE"
240 - eend $?
241 - ret=$?
242 -
243 - if [ $ret -eq 0 ] \
244 - && [ "$DOCKER_WORKAROUND_1422" ] \
245 - && [ "$DOCKER_WORKAROUND_1422" -gt 0 ] \
246 - ; then
247 - # see https://github.com/dotcloud/docker/issues/1422
248 - ewarn "Working around gh#1422 (via busybox image); this may take a moment"
249 -
250 - # we were calling "docker run" more quickly than "docker -d" could get
251 - # fired up, so our workaround wasn't successful without a short delay
252 - sleep $DOCKER_WORKAROUND_1422_DELAY
253 -
254 - # TODO when we get https://github.com/dotcloud/docker/pull/1589, these
255 - # both need -rm so we clean up after ourselves (thanks, @eliasp!)
256 - docker run -i -t busybox true &> /dev/null || true
257 - # first run will fail, so we ignore its output and result and run again
258 - docker run -i -t busybox true
259 -
260 - ewend $?
261 - fi
262 -
263 - return $ret
264 -}
265 -
266 -stop() {
267 - ebegin "Stopping docker daemon"
268 - start-stop-daemon --stop \
269 - --exec "$DOCKER_BINARY" \
270 - --pidfile "$DOCKER_PIDFILE"
271 - eend $?
272 -}
273
274 diff --git a/app-emulation/docker/files/docker-r3.confd b/app-emulation/docker/files/docker-r3.confd
275 deleted file mode 100644
276 index ae247c0..0000000
277 --- a/app-emulation/docker/files/docker-r3.confd
278 +++ /dev/null
279 @@ -1,13 +0,0 @@
280 -# /etc/conf.d/docker: config file for /etc/init.d/docker
281 -
282 -# where the docker daemon output gets piped
283 -#DOCKER_LOGFILE="/var/log/docker.log"
284 -
285 -# where docker's pid get stored
286 -#DOCKER_PIDFILE="/run/docker.pid"
287 -
288 -# where the docker daemon itself is run from
289 -#DOCKER_BINARY="/usr/bin/docker"
290 -
291 -# any other random options you want to pass to docker
292 -DOCKER_OPTS=""
293
294 diff --git a/app-emulation/docker/files/docker-r3.initd b/app-emulation/docker/files/docker-r3.initd
295 deleted file mode 100644
296 index a303185..0000000
297 --- a/app-emulation/docker/files/docker-r3.initd
298 +++ /dev/null
299 @@ -1,31 +0,0 @@
300 -#!/sbin/runscript
301 -# Copyright 1999-2015 Gentoo Foundation
302 -# Distributed under the terms of the GNU General Public License v2
303 -# $Id$
304 -
305 -DOCKER_LOGFILE=${DOCKER_LOGFILE:-/var/log/${SVCNAME}.log}
306 -DOCKER_PIDFILE=${DOCKER_PIDFILE:-/run/${SVCNAME}.pid}
307 -DOCKER_BINARY=${DOCKER_BINARY:-/usr/bin/docker}
308 -DOCKER_OPTS=${DOCKER_OPTS:-}
309 -
310 -start() {
311 - checkpath -f -m 0644 -o root:docker "$DOCKER_LOGFILE"
312 -
313 - ebegin "Starting docker daemon"
314 - start-stop-daemon --start --background \
315 - --exec "$DOCKER_BINARY" \
316 - --pidfile "$DOCKER_PIDFILE" \
317 - --stdout "$DOCKER_LOGFILE" \
318 - --stderr "$DOCKER_LOGFILE" \
319 - -- -d -p "$DOCKER_PIDFILE" \
320 - $DOCKER_OPTS
321 - eend $?
322 -}
323 -
324 -stop() {
325 - ebegin "Stopping docker daemon"
326 - start-stop-daemon --stop \
327 - --exec "$DOCKER_BINARY" \
328 - --pidfile "$DOCKER_PIDFILE"
329 - eend $?
330 -}
331
332 diff --git a/app-emulation/docker/files/docker.initd b/app-emulation/docker/files/docker.initd
333 deleted file mode 100644
334 index 18ca8ab..0000000
335 --- a/app-emulation/docker/files/docker.initd
336 +++ /dev/null
337 @@ -1,31 +0,0 @@
338 -#!/sbin/runscript
339 -# Copyright 1999-2015 Gentoo Foundation
340 -# Distributed under the terms of the GNU General Public License v2
341 -# $Id$
342 -
343 -DOCKER_LOGFILE=${DOCKER_LOGFILE:-/var/log/${SVCNAME}.log}
344 -DOCKER_PIDFILE=${DOCKER_PIDFILE:-/run/${SVCNAME}.pid}
345 -DOCKER_BINARY=${DOCKER_BINARY:-/usr/bin/docker}
346 -
347 -start() {
348 - touch "$DOCKER_LOGFILE"
349 - chown root:docker "$DOCKER_LOGFILE"
350 - chmod 0644 "$DOCKER_LOGFILE"
351 -
352 - ebegin "Starting docker daemon"
353 - start-stop-daemon --start --background \
354 - --exec "$DOCKER_BINARY" \
355 - --pidfile "$DOCKER_PIDFILE" \
356 - --stdout "$DOCKER_LOGFILE" \
357 - --stderr "$DOCKER_LOGFILE" \
358 - -- -d -p "$DOCKER_PIDFILE"
359 - eend $?
360 -}
361 -
362 -stop() {
363 - ebegin "Stopping docker daemon"
364 - start-stop-daemon --stop \
365 - --exec "$DOCKER_BINARY" \
366 - --pidfile "$DOCKER_PIDFILE"
367 - eend $?
368 -}
369
370 diff --git a/app-emulation/docker/files/docker.service b/app-emulation/docker/files/docker.service
371 deleted file mode 100644
372 index dde89a2..0000000
373 --- a/app-emulation/docker/files/docker.service
374 +++ /dev/null
375 @@ -1,12 +0,0 @@
376 -[Unit]
377 -Description=Easily create lightweight, portable, self-sufficient containers from any application!
378 -Requires=network.target
379 -After=multi-user.target
380 -
381 -[Service]
382 -Type=simple
383 -ExecStartPre=/bin/mount --make-rprivate /
384 -ExecStart=/usr/bin/docker -d
385 -
386 -[Install]
387 -WantedBy=multi-user.target