Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/docker/
Date: Fri, 01 Feb 2019 16:02:24
Message-Id: 1549036919.22990f0ad4c42683bc1f73760423373fe7552e0b.mrueg@gentoo
1 commit: 22990f0ad4c42683bc1f73760423373fe7552e0b
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 1 16:01:59 2019 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 1 16:01:59 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22990f0a
7
8 app-emulation/docker: Remove old
9
10 Package-Manager: Portage-2.3.59, Repoman-2.3.12
11 Signed-off-by: Manuel Rüger <mrueg <AT> gentoo.org>
12
13 app-emulation/docker/Manifest | 1 -
14 app-emulation/docker/docker-18.09.0.ebuild | 301 -----------------------------
15 2 files changed, 302 deletions(-)
16
17 diff --git a/app-emulation/docker/Manifest b/app-emulation/docker/Manifest
18 index 3e5380be214..8ac1a0d9034 100644
19 --- a/app-emulation/docker/Manifest
20 +++ b/app-emulation/docker/Manifest
21 @@ -1,4 +1,3 @@
22 DIST docker-18.03.1.tar.gz 12758590 BLAKE2B 98213af07b945fda536e321ef5cc9e272848aab97dcadb7a6b1433b9310fa78015794b5ee4f255448251366a7811e97248b9cc90b0225c528249188768f344ab SHA512 48c4916421cd500ada1bfc2207123a29870939a15a1c7c4a0c082f61c1e3e063381e2345ee9df645dbaca49e002dbfaba70cf6fe233b39a4e1f44fb015807e10
23 DIST docker-18.06.1.tar.gz 13672693 BLAKE2B 7aed2f409914471b3e0eec4f3d024bf59e6505060c1da9c4bb68f0d6efdb5286a8e9e5ee0de19b3f0165c965db27d409f72fceb3f792fc91b9b8dddc8a2b01f0 SHA512 7375452669bf6576e1f8d193cd7f421cf39a26d575351f2b4e433c7fc89384f441547417dbe8c12a12a0937c9fea3800b5c541f0ba8b58ceffe7445183ceeef1
24 -DIST docker-18.09.0.tar.gz 15196102 BLAKE2B 99b791da6351268ccd54424f1ec1d0b1246d7283e5bf8f41f604f0437202a0c494f7017d68c58f01782eea8539fcc189c290f494125878eb3ca368f3d8cdd57d SHA512 a6173d9e2dde33c6059b3464720207a3bc0f4d6d79af65ad10cd30b4b437134ad45fc2039cebcaa41b2dfb68a21963010d63a4051ade6a6d25fcd93c8d560c67
25 DIST docker-18.09.1.tar.gz 15247155 BLAKE2B 5c9a6c0d6e383da2b99341812b0cc1d1498e46decc3b3aaa418607d5f4d725a6842a4462c06357685a32312b90978b0349aaceb69907324761589e68cfae7bca SHA512 9813d3bd41eff63a089495a976226b93d5d43544530aea0ebce78b96e6b4b38389fe3ad1117f1ca95c38727047a24211ad2c2b44217935c26ffb5496cf90407e
26
27 diff --git a/app-emulation/docker/docker-18.09.0.ebuild b/app-emulation/docker/docker-18.09.0.ebuild
28 deleted file mode 100644
29 index 2b1d6a9b7fc..00000000000
30 --- a/app-emulation/docker/docker-18.09.0.ebuild
31 +++ /dev/null
32 @@ -1,301 +0,0 @@
33 -# Copyright 1999-2018 Gentoo Authors
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=6
37 -
38 -EGO_PN="github.com/docker/docker-ce"
39 -
40 -if [[ ${PV} = *9999* ]]; then
41 - # Docker cannot be fetched via "go get", thanks to autogenerated code
42 - EGIT_REPO_URI="https://${EGO_PN}.git"
43 - EGIT_CHECKOUT_DIR="${WORKDIR}/${P}/src/${EGO_PN}"
44 - inherit git-r3
45 -else
46 - DOCKER_GITCOMMIT="4d60db4"
47 - SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
48 - KEYWORDS="~amd64 ~arm ~arm64"
49 - [ "$DOCKER_GITCOMMIT" ] || die "DOCKER_GITCOMMIT must be added manually for each bump!"
50 - inherit golang-vcs-snapshot
51 -fi
52 -inherit bash-completion-r1 golang-base linux-info systemd udev user
53 -
54 -DESCRIPTION="The core functions you need to create Docker images and run Docker containers"
55 -HOMEPAGE="https://dockerproject.org"
56 -LICENSE="Apache-2.0"
57 -SLOT="0"
58 -IUSE="apparmor aufs btrfs +container-init device-mapper hardened +overlay pkcs11 seccomp"
59 -
60 -# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#build-dependencies
61 -CDEPEND="
62 - >=dev-db/sqlite-3.7.9:3
63 - device-mapper? (
64 - >=sys-fs/lvm2-2.02.89[thin]
65 - )
66 - seccomp? ( >=sys-libs/libseccomp-2.2.1 )
67 - apparmor? ( sys-libs/libapparmor )
68 -"
69 -
70 -DEPEND="
71 - ${CDEPEND}
72 -
73 - dev-go/go-md2man
74 -
75 - btrfs? (
76 - >=sys-fs/btrfs-progs-3.16.1
77 - )
78 -"
79 -
80 -# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#runtime-dependencies
81 -# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#optional-dependencies
82 -RDEPEND="
83 - ${CDEPEND}
84 - >=net-firewall/iptables-1.4
85 - sys-process/procps
86 - >=dev-vcs/git-1.7
87 - >=app-arch/xz-utils-4.9
88 - dev-libs/libltdl
89 - ~app-emulation/containerd-1.1.2
90 - ~app-emulation/runc-1.0.0_rc5_p20180509[apparmor?,seccomp?]
91 - ~app-emulation/docker-proxy-0.8.0_p20180907
92 - container-init? ( >=sys-process/tini-0.18.0[static] )
93 -"
94 -
95 -RESTRICT="installsources strip"
96 -
97 -S="${WORKDIR}/${P}/src/${EGO_PN}"
98 -
99 -PATCHES=( "${FILESDIR}"/bsc1073877-docker-apparmor-add-signal-r2.patch )
100 -
101 -# see "contrib/check-config.sh" from upstream's sources
102 -CONFIG_CHECK="
103 - ~NAMESPACES ~NET_NS ~PID_NS ~IPC_NS ~UTS_NS
104 - ~CGROUPS ~CGROUP_CPUACCT ~CGROUP_DEVICE ~CGROUP_FREEZER ~CGROUP_SCHED ~CPUSETS ~MEMCG
105 - ~KEYS
106 - ~VETH ~BRIDGE ~BRIDGE_NETFILTER
107 - ~NF_NAT_IPV4 ~IP_NF_FILTER ~IP_NF_TARGET_MASQUERADE
108 - ~NETFILTER_XT_MATCH_ADDRTYPE ~NETFILTER_XT_MATCH_CONNTRACK ~NETFILTER_XT_MATCH_IPVS
109 - ~IP_NF_NAT ~NF_NAT ~NF_NAT_NEEDED
110 - ~POSIX_MQUEUE
111 -
112 - ~USER_NS
113 - ~SECCOMP
114 - ~CGROUP_PIDS
115 - ~MEMCG_SWAP ~MEMCG_SWAP_ENABLED
116 -
117 - ~BLK_CGROUP ~BLK_DEV_THROTTLING ~IOSCHED_CFQ ~CFQ_GROUP_IOSCHED
118 - ~CGROUP_PERF
119 - ~CGROUP_HUGETLB
120 - ~NET_CLS_CGROUP
121 - ~CFS_BANDWIDTH ~FAIR_GROUP_SCHED ~RT_GROUP_SCHED
122 - ~IP_VS ~IP_VS_PROTO_TCP ~IP_VS_PROTO_UDP ~IP_VS_NFCT ~IP_VS_RR
123 -
124 - ~VXLAN
125 - ~CRYPTO ~CRYPTO_AEAD ~CRYPTO_GCM ~CRYPTO_SEQIV ~CRYPTO_GHASH ~XFRM_ALGO ~XFRM_USER
126 - ~IPVLAN
127 - ~MACVLAN ~DUMMY
128 -"
129 -
130 -ERROR_KEYS="CONFIG_KEYS: is mandatory"
131 -ERROR_MEMCG_SWAP="CONFIG_MEMCG_SWAP: is required if you wish to limit swap usage of containers"
132 -ERROR_RESOURCE_COUNTERS="CONFIG_RESOURCE_COUNTERS: is optional for container statistics gathering"
133 -
134 -ERROR_BLK_CGROUP="CONFIG_BLK_CGROUP: is optional for container statistics gathering"
135 -ERROR_IOSCHED_CFQ="CONFIG_IOSCHED_CFQ: is optional for container statistics gathering"
136 -ERROR_CGROUP_PERF="CONFIG_CGROUP_PERF: is optional for container statistics gathering"
137 -ERROR_CFS_BANDWIDTH="CONFIG_CFS_BANDWIDTH: is optional for container statistics gathering"
138 -ERROR_XFRM_ALGO="CONFIG_XFRM_ALGO: is optional for secure networks"
139 -ERROR_XFRM_USER="CONFIG_XFRM_USER: is optional for secure networks"
140 -
141 -pkg_setup() {
142 - if kernel_is lt 3 10; then
143 - ewarn ""
144 - ewarn "Using Docker with kernels older than 3.10 is unstable and unsupported."
145 - ewarn " - http://docs.docker.com/engine/installation/binaries/#check-kernel-dependencies"
146 - fi
147 -
148 - if kernel_is le 3 18; then
149 - CONFIG_CHECK+="
150 - ~RESOURCE_COUNTERS
151 - "
152 - fi
153 -
154 - if kernel_is le 3 13; then
155 - CONFIG_CHECK+="
156 - ~NETPRIO_CGROUP
157 - "
158 - else
159 - CONFIG_CHECK+="
160 - ~CGROUP_NET_PRIO
161 - "
162 - fi
163 -
164 - if kernel_is lt 4 5; then
165 - CONFIG_CHECK+="
166 - ~MEMCG_KMEM
167 - "
168 - ERROR_MEMCG_KMEM="CONFIG_MEMCG_KMEM: is optional"
169 - fi
170 -
171 - if kernel_is lt 4 7; then
172 - CONFIG_CHECK+="
173 - ~DEVPTS_MULTIPLE_INSTANCES
174 - "
175 - fi
176 -
177 - if use aufs; then
178 - CONFIG_CHECK+="
179 - ~AUFS_FS
180 - ~EXT4_FS_POSIX_ACL ~EXT4_FS_SECURITY
181 - "
182 - ERROR_AUFS_FS="CONFIG_AUFS_FS: is required to be set if and only if aufs-sources are used instead of aufs4/aufs3"
183 - fi
184 -
185 - if use btrfs; then
186 - CONFIG_CHECK+="
187 - ~BTRFS_FS
188 - ~BTRFS_FS_POSIX_ACL
189 - "
190 - fi
191 -
192 - if use device-mapper; then
193 - CONFIG_CHECK+="
194 - ~BLK_DEV_DM ~DM_THIN_PROVISIONING ~EXT4_FS ~EXT4_FS_POSIX_ACL ~EXT4_FS_SECURITY
195 - "
196 - fi
197 -
198 - if use overlay; then
199 - CONFIG_CHECK+="
200 - ~OVERLAY_FS ~EXT4_FS_SECURITY ~EXT4_FS_POSIX_ACL
201 - "
202 - fi
203 -
204 - linux-info_pkg_setup
205 -
206 - # create docker group for the code checking for it in /etc/group
207 - enewgroup docker
208 -}
209 -
210 -src_compile() {
211 - export GOPATH="${WORKDIR}/${P}"
212 -
213 - # setup CFLAGS and LDFLAGS for separate build target
214 - # see https://github.com/tianon/docker-overlay/pull/10
215 - export CGO_CFLAGS="-I${ROOT}/usr/include"
216 - export CGO_LDFLAGS="-L${ROOT}/usr/$(get_libdir)"
217 -
218 - # if we're building from a tarball, we need the GITCOMMIT value
219 - [ "$DOCKER_GITCOMMIT" ] && export DOCKER_GITCOMMIT
220 -
221 - # fake golang layout
222 - ln -s docker-ce/components/engine ../docker || die
223 - ln -s docker-ce/components/cli ../cli || die
224 -
225 - # let's set up some optional features :)
226 - export DOCKER_BUILDTAGS=''
227 - for gd in aufs btrfs device-mapper overlay; do
228 - if ! use $gd; then
229 - DOCKER_BUILDTAGS+=" exclude_graphdriver_${gd//-/}"
230 - fi
231 - done
232 -
233 - for tag in apparmor pkcs11 seccomp; do
234 - if use $tag; then
235 - DOCKER_BUILDTAGS+=" $tag"
236 - fi
237 - done
238 -
239 - pushd components/engine || die
240 -
241 - if use hardened; then
242 - sed -i "s/EXTLDFLAGS_STATIC='/&-fno-PIC /" hack/make.sh || die
243 - grep -q -- '-fno-PIC' hack/make.sh || die 'hardened sed failed'
244 - sed "s/LDFLAGS_STATIC_DOCKER='/&-extldflags -fno-PIC /" \
245 - -i hack/make/dynbinary-daemon || die
246 - grep -q -- '-fno-PIC' hack/make/dynbinary-daemon || die 'hardened sed failed'
247 - fi
248 -
249 - # build daemon
250 - VERSION="$(cat ../../VERSION)" \
251 - ./hack/make.sh dynbinary || die 'dynbinary failed'
252 -
253 - popd || die # components/engine
254 -
255 - pushd components/cli || die
256 -
257 - # build cli
258 - emake \
259 - LDFLAGS="$(usex hardened '-extldflags -fno-PIC' '')" \
260 - VERSION="$(cat ../../VERSION)" \
261 - GITCOMMIT="${DOCKER_GITCOMMIT}" \
262 - DISABLE_WARN_OUTSIDE_CONTAINER=1 \
263 - dynbinary || die
264 -
265 - # build man pages
266 - go build -o gen-manpages github.com/docker/cli/man || die
267 - ./gen-manpages --root . --target ./man/man1 || die
268 - ./man/md2man-all.sh -q || die
269 - rm gen-manpages || die
270 - # see "components/cli/scripts/docs/generate-man.sh" (which also does "go get" for go-md2man)
271 -
272 - popd || die # components/cli
273 -}
274 -
275 -src_install() {
276 - dosym containerd /usr/bin/docker-containerd
277 - dosym containerd-shim /usr/bin/docker-containerd-shim
278 - dosym runc /usr/bin/docker-runc
279 - use container-init && dosym tini /usr/bin/docker-init
280 -
281 - pushd components/engine || die
282 - newbin "$(readlink -f bundles/latest/dynbinary-daemon/dockerd)" dockerd
283 -
284 - newinitd contrib/init/openrc/docker.initd docker
285 - newconfd contrib/init/openrc/docker.confd docker
286 -
287 - systemd_dounit contrib/init/systemd/docker.{service,socket}
288 -
289 - udev_dorules contrib/udev/*.rules
290 -
291 - dodoc AUTHORS CONTRIBUTING.md CHANGELOG.md NOTICE README.md
292 - dodoc -r docs/*
293 -
294 - insinto /usr/share/vim/vimfiles
295 - doins -r contrib/syntax/vim/ftdetect
296 - doins -r contrib/syntax/vim/syntax
297 -
298 - # note: intentionally not using "doins" so that we preserve +x bits
299 - dodir /usr/share/${PN}/contrib
300 - cp -R contrib/* "${ED}/usr/share/${PN}/contrib"
301 - popd || die # components/engine
302 -
303 - pushd components/cli || die
304 -
305 - newbin build/docker-* docker
306 -
307 - doman man/man*/*
308 -
309 - dobashcomp contrib/completion/bash/*
310 - insinto /usr/share/fish/vendor_completions.d/
311 - doins contrib/completion/fish/docker.fish
312 - insinto /usr/share/zsh/site-functions
313 - doins contrib/completion/zsh/_*
314 - popd || die # components/cli
315 -}
316 -
317 -pkg_postinst() {
318 - udev_reload
319 -
320 - elog
321 - elog "To use Docker, the Docker daemon must be running as root. To automatically"
322 - elog "start the Docker daemon at boot, add Docker to the default runlevel:"
323 - elog " rc-update add docker default"
324 - elog "Similarly for systemd:"
325 - elog " systemctl enable docker.service"
326 - elog
327 - elog "To use Docker as a non-root user, add yourself to the 'docker' group:"
328 - elog " usermod -aG docker youruser"
329 - elog
330 -
331 - elog " Devicemapper storage driver has been deprecated"
332 - elog " It will be removed in a future release"
333 -}