1 |
commit: cec1c0dc8c45379e67a50019333fe65743f60c7b |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 10 23:26:17 2021 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 10 23:26:55 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cec1c0dc |
7 |
|
8 |
app-emulation/docker: add ppc64 buildmode patch |
9 |
|
10 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
11 |
|
12 |
app-emulation/docker/docker-20.10.7.ebuild | 5 +++- |
13 |
app-emulation/docker/files/ppc64-buildmode.patch | 30 ++++++++++++++++++++++++ |
14 |
2 files changed, 34 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/app-emulation/docker/docker-20.10.7.ebuild b/app-emulation/docker/docker-20.10.7.ebuild |
17 |
index 6636481017d..611164ae3ab 100644 |
18 |
--- a/app-emulation/docker/docker-20.10.7.ebuild |
19 |
+++ b/app-emulation/docker/docker-20.10.7.ebuild |
20 |
@@ -55,7 +55,10 @@ RESTRICT="installsources strip test" |
21 |
S="${WORKDIR}/${P}/src/${EGO_PN}" |
22 |
|
23 |
# https://bugs.gentoo.org/748984 https://github.com/etcd-io/etcd/pull/12552 |
24 |
-PATCHES=( "${FILESDIR}/etcd-F_OFD_GETLK-fix.patch" ) |
25 |
+PATCHES=( |
26 |
+ "${FILESDIR}/etcd-F_OFD_GETLK-fix.patch" |
27 |
+ "${FILESDIR}/ppc64-buildmode.patch" |
28 |
+) |
29 |
|
30 |
# see "contrib/check-config.sh" from upstream's sources |
31 |
CONFIG_CHECK=" |
32 |
|
33 |
diff --git a/app-emulation/docker/files/ppc64-buildmode.patch b/app-emulation/docker/files/ppc64-buildmode.patch |
34 |
new file mode 100644 |
35 |
index 00000000000..f16756e8504 |
36 |
--- /dev/null |
37 |
+++ b/app-emulation/docker/files/ppc64-buildmode.patch |
38 |
@@ -0,0 +1,30 @@ |
39 |
+From c4135e37e54a6480abfe18746f227f05cb9269ab Mon Sep 17 00:00:00 2001 |
40 |
+From: Georgy Yakovlev <gyakovlev@g.o> |
41 |
+Date: Thu, 10 Jun 2021 16:19:22 -0700 |
42 |
+Subject: [PATCH] don't use buildmode=pie on ppc64 |
43 |
+ |
44 |
+It's already omitted for ppc64 in |
45 |
+hack/dockerfile/install/install.sh |
46 |
+not using wildcard, because GOARCH=ppc64le supports pie |
47 |
+ |
48 |
+Signed-off-by: Georgy Yakovlev <gyakovlev@g.o> |
49 |
+--- |
50 |
+ hack/make/.binary | 2 +- |
51 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
52 |
+ |
53 |
+diff --git a/hack/make/.binary b/hack/make/.binary |
54 |
+index 5ea3e373f2..7a911de15a 100644 |
55 |
+--- a/hack/make/.binary |
56 |
++++ b/hack/make/.binary |
57 |
+@@ -70,7 +70,7 @@ hash_files() { |
58 |
+ |
59 |
+ # -buildmode=pie is not supported on Windows and Linux on mips and riscv64. |
60 |
+ case "$(go env GOOS)/$(go env GOARCH)" in |
61 |
+- windows/* | linux/mips* | linux/riscv*) ;; |
62 |
++ windows/* | linux/mips* | linux/riscv* | linux/ppc64) ;; |
63 |
+ |
64 |
+ *) |
65 |
+ BUILDFLAGS+=("-buildmode=pie") |
66 |
+-- |
67 |
+2.32.0 |
68 |
+ |