1 |
commit: a86d23a290bba9f7c9135c181579c350086f2599 |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 22 07:44:44 2021 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 22 07:48:04 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a86d23a2 |
7 |
|
8 |
app-emulation/docker: add /dev/null patch to 20.10.6 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/748984 |
11 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
12 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
13 |
|
14 |
...ker-20.10.6.ebuild => docker-20.10.6-r1.ebuild} | 7 ++++++ |
15 |
.../docker/files/etcd-F_OFD_GETLK-fix.patch | 28 ++++++++++++++++++++++ |
16 |
2 files changed, 35 insertions(+) |
17 |
|
18 |
diff --git a/app-emulation/docker/docker-20.10.6.ebuild b/app-emulation/docker/docker-20.10.6-r1.ebuild |
19 |
similarity index 97% |
20 |
rename from app-emulation/docker/docker-20.10.6.ebuild |
21 |
rename to app-emulation/docker/docker-20.10.6-r1.ebuild |
22 |
index ac40f8d7328..50015f97773 100644 |
23 |
--- a/app-emulation/docker/docker-20.10.6.ebuild |
24 |
+++ b/app-emulation/docker/docker-20.10.6-r1.ebuild |
25 |
@@ -158,6 +158,13 @@ pkg_setup() { |
26 |
linux-info_pkg_setup |
27 |
} |
28 |
|
29 |
+src_prepare() { |
30 |
+ default |
31 |
+ pushd "${S}/vendor/github.com/coreos/etcd" >/dev/null || die |
32 |
+ eapply "${FILESDIR}/etcd-F_OFD_GETLK-fix.patch" |
33 |
+ popd >/dev/null || die |
34 |
+} |
35 |
+ |
36 |
src_compile() { |
37 |
export DOCKER_GITCOMMIT="${GIT_COMMIT}" |
38 |
export GOPATH="${WORKDIR}/${P}" |
39 |
|
40 |
diff --git a/app-emulation/docker/files/etcd-F_OFD_GETLK-fix.patch b/app-emulation/docker/files/etcd-F_OFD_GETLK-fix.patch |
41 |
new file mode 100644 |
42 |
index 00000000000..d912e59e985 |
43 |
--- /dev/null |
44 |
+++ b/app-emulation/docker/files/etcd-F_OFD_GETLK-fix.patch |
45 |
@@ -0,0 +1,28 @@ |
46 |
+From ec81adb21605acd56b122bc35c53644b13d3ab7e Mon Sep 17 00:00:00 2001 |
47 |
+From: Moritz Both <mb@×××××××××.de> |
48 |
+Date: Sun, 1 Nov 2020 23:20:12 +0100 |
49 |
+Subject: [PATCH] pkg/fileutil: fix constant for linux locking |
50 |
+ |
51 |
+The constant F_OFD_GETLK is 36, not 37, according to |
52 |
+/usr/include/bits/fcntl-linux.h |
53 |
+Credits go to joakim-tjernlund who digged deep enough |
54 |
+to find this. |
55 |
+ |
56 |
+Fixes #31182 |
57 |
+--- |
58 |
+ pkg/fileutil/lock_linux.go | 2 +- |
59 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
60 |
+ |
61 |
+diff --git a/pkg/fileutil/lock_linux.go b/pkg/fileutil/lock_linux.go |
62 |
+index 939fea62381..004d35fa23b 100644 |
63 |
+--- a/pkg/fileutil/lock_linux.go |
64 |
++++ b/pkg/fileutil/lock_linux.go |
65 |
+@@ -29,7 +29,7 @@ import ( |
66 |
+ // |
67 |
+ // constants from /usr/include/bits/fcntl-linux.h |
68 |
+ const ( |
69 |
+- F_OFD_GETLK = 37 |
70 |
++ F_OFD_GETLK = 36 |
71 |
+ F_OFD_SETLK = 37 |
72 |
+ F_OFD_SETLKW = 38 |
73 |
+ ) |