From 6eac5c1b3be5ea0375b332bc1098bdb86305fc1a Mon Sep 17 00:00:00 2001 From: virtbuilder_pel7ppc64bebuilder0 Date: Mon, 5 Aug 2019 11:24:11 +0200 Subject: [PATCH] buildah add ppc64 changes Signed-off-by: virtbuilder_pel7ppc64bebuilder0 --- SPECS/buildah.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SPECS/buildah.spec b/SPECS/buildah.spec index 97691f5..caa6a9b 100644 --- a/SPECS/buildah.spec +++ b/SPECS/buildah.spec @@ -29,7 +29,7 @@ Summary: A command line tool used for creating OCI Images License: ASL 2.0 URL: https://%{name}.io Source: %{git0}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz -ExclusiveArch: x86_64 %{arm} aarch64 ppc64le s390x +ExclusiveArch: x86_64 %{arm} aarch64 ppc64 ppc64le s390x # If go_compiler is not set to 1, there is no virtual provide. Use golang instead. BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang} @@ -81,6 +81,9 @@ mv vendor src export GOPATH=$(pwd)/_build:$(pwd) export BUILDTAGS='seccomp selinux' export GO111MODULE=off +%ifarch ppc64 +export CGO_ENABLED=1 +%endif %gobuild -o %{name} %{import_path}/cmd/%{name} GOMD2MAN=go-md2man %{__make} -C docs