commit: cec1c0dc8c45379e67a50019333fe65743f60c7b
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 10 23:26:17 2021 +0000
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Thu Jun 10 23:26:55 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cec1c0dc
app-emulation/docker: add ppc64 buildmode patch
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
app-emulation/docker/docker-20.10.7.ebuild | 5 +++-
app-emulation/docker/files/ppc64-buildmode.patch | 30 ++++++++++++++++++++++++
2 files changed, 34 insertions(+), 1 deletion(-)
diff --git a/app-emulation/docker/docker-20.10.7.ebuild
b/app-emulation/docker/docker-20.10.7.ebuild
index 6636481017d..611164ae3ab 100644
--- a/app-emulation/docker/docker-20.10.7.ebuild
+++ b/app-emulation/docker/docker-20.10.7.ebuild
@@ -55,7 +55,10 @@ RESTRICT="installsources strip test"
S="${WORKDIR}/${P}/src/${EGO_PN}"
# https://bugs.gentoo.org/748984 https://github.com/etcd-io/etcd/pull/12552
-PATCHES=( "${FILESDIR}/etcd-F_OFD_GETLK-fix.patch" )
+PATCHES=(
+ "${FILESDIR}/etcd-F_OFD_GETLK-fix.patch"
+ "${FILESDIR}/ppc64-buildmode.patch"
+)
# see "contrib/check-config.sh" from upstream's sources
CONFIG_CHECK="
diff --git a/app-emulation/docker/files/ppc64-buildmode.patch
b/app-emulation/docker/files/ppc64-buildmode.patch
new file mode 100644
index 00000000000..f16756e8504
--- /dev/null
+++ b/app-emulation/docker/files/ppc64-buildmode.patch
@@ -0,0 +1,30 @@
+From c4135e37e54a6480abfe18746f227f05cb9269ab Mon Sep 17 00:00:00 2001
+From: Georgy Yakovlev <[email protected]>
+Date: Thu, 10 Jun 2021 16:19:22 -0700
+Subject: [PATCH] don't use buildmode=pie on ppc64
+
+It's already omitted for ppc64 in
+hack/dockerfile/install/install.sh
+not using wildcard, because GOARCH=ppc64le supports pie
+
+Signed-off-by: Georgy Yakovlev <[email protected]>
+---
+ hack/make/.binary | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/hack/make/.binary b/hack/make/.binary
+index 5ea3e373f2..7a911de15a 100644
+--- a/hack/make/.binary
++++ b/hack/make/.binary
+@@ -70,7 +70,7 @@ hash_files() {
+
+ # -buildmode=pie is not supported on Windows and Linux on mips and
riscv64.
+ case "$(go env GOOS)/$(go env GOARCH)" in
+- windows/* | linux/mips* | linux/riscv*) ;;
++ windows/* | linux/mips* | linux/riscv* | linux/ppc64) ;;
+
+ *)
+ BUILDFLAGS+=("-buildmode=pie")
+--
+2.32.0
+