Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/docker/, app-emulation/docker/files/
Date: Thu, 22 Apr 2021 16:42:05
Message-Id: 1619109673.c6ec5086fd71473ce5f71a0aac0d2761811a499a.gyakovlev@gentoo
1 commit: c6ec5086fd71473ce5f71a0aac0d2761811a499a
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 22 16:39:52 2021 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 22 16:41:13 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6ec5086
7
8 app-emulation/docker: rebase patch, get rid of custom src_prepare
9
10 Package-Manager: Portage-3.0.18, Repoman-3.0.3
11 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
12
13 app-emulation/docker/docker-20.10.6-r1.ebuild | 11 +++--------
14 app-emulation/docker/files/etcd-F_OFD_GETLK-fix.patch | 4 ++--
15 2 files changed, 5 insertions(+), 10 deletions(-)
16
17 diff --git a/app-emulation/docker/docker-20.10.6-r1.ebuild b/app-emulation/docker/docker-20.10.6-r1.ebuild
18 index 798980694c7..2b99383d6b7 100644
19 --- a/app-emulation/docker/docker-20.10.6-r1.ebuild
20 +++ b/app-emulation/docker/docker-20.10.6-r1.ebuild
21 @@ -54,6 +54,9 @@ RESTRICT="installsources strip"
22
23 S="${WORKDIR}/${P}/src/${EGO_PN}"
24
25 +# https://bugs.gentoo.org/748984 https://github.com/etcd-io/etcd/pull/12552
26 +PATCHES=( "${FILESDIR}/etcd-F_OFD_GETLK-fix.patch" )
27 +
28 # see "contrib/check-config.sh" from upstream's sources
29 CONFIG_CHECK="
30 ~NAMESPACES ~NET_NS ~PID_NS ~IPC_NS ~UTS_NS
31 @@ -158,14 +161,6 @@ pkg_setup() {
32 linux-info_pkg_setup
33 }
34
35 -src_prepare() {
36 - default
37 - # https://bugs.gentoo.org/748984 https://github.com/etcd-io/etcd/pull/12552
38 - pushd "${S}/vendor/github.com/coreos/etcd" >/dev/null || die
39 - eapply "${FILESDIR}/etcd-F_OFD_GETLK-fix.patch"
40 - popd >/dev/null || die
41 -}
42 -
43 src_compile() {
44 export DOCKER_GITCOMMIT="${GIT_COMMIT}"
45 export GOPATH="${WORKDIR}/${P}"
46
47 diff --git a/app-emulation/docker/files/etcd-F_OFD_GETLK-fix.patch b/app-emulation/docker/files/etcd-F_OFD_GETLK-fix.patch
48 index d912e59e985..bd574e26f04 100644
49 --- a/app-emulation/docker/files/etcd-F_OFD_GETLK-fix.patch
50 +++ b/app-emulation/docker/files/etcd-F_OFD_GETLK-fix.patch
51 @@ -15,8 +15,8 @@ Fixes #31182
52
53 diff --git a/pkg/fileutil/lock_linux.go b/pkg/fileutil/lock_linux.go
54 index 939fea62381..004d35fa23b 100644
55 ---- a/pkg/fileutil/lock_linux.go
56 -+++ b/pkg/fileutil/lock_linux.go
57 +--- a/vendor/github.com/coreos/etcd/pkg/fileutil/lock_linux.go
58 ++++ b/vendor/github.com/coreos/etcd/pkg/fileutil/lock_linux.go
59 @@ -29,7 +29,7 @@ import (
60 //
61 // constants from /usr/include/bits/fcntl-linux.h