Browse Source

podman build changes (ppc64)

Signed-off-by: virtbuilder_pel7ppc64bebuilder0 <virtbuilder@powerel.org>
master
virtbuilder_pel7ppc64bebuilder0 5 years ago
parent
commit
203291f961
  1. 8
      SPECS/podman.spec

8
SPECS/podman.spec

@ -52,7 +52,7 @@ Source0: %{git0}/archive/%{commit0}/%{repo}-%{shortcommit0}.tar.gz @@ -52,7 +52,7 @@ Source0: %{git0}/archive/%{commit0}/%{repo}-%{shortcommit0}.tar.gz
Source1: %{git_conmon}/archive/%{commit_conmon}/cri-o-%{shortcommit_conmon}.tar.gz
# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
#ExclusiveArch: %%{?go_arches:%%{go_arches}}%%{!?go_arches:%%{ix86} x86_64 aarch64 %%{arm}}
ExclusiveArch: aarch64 %{arm} ppc64le s390x x86_64
ExclusiveArch: aarch64 %{arm} ppc64le s390x x86_64 ppc64
# 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}
BuildRequires: btrfs-progs-devel
@ -392,8 +392,9 @@ popd @@ -392,8 +392,9 @@ popd
ln -s vendor src
export GOPATH=$(pwd)/_build:$(pwd)
export BUILDTAGS="varlink seccomp exclude_graphdriver_devicemapper $(hack/btrfs_installed_tag.sh) $(hack/btrfs_tag.sh) $(hack/libdm_tag.sh) $(hack/ostree_tag.sh) $(hack/selinux_tag.sh)"
%gogenerate ./cmd/%{name}/varlink/...
%gobuild -o bin/%{name} %{import_path}/cmd/%{name}
export CGO_ENABLED=1
go generate ./cmd/%{name}/varlink/...
go build -o bin/%{name} %{import_path}/cmd/%{name}

# build conmon
pushd cri-o-%{commit_conmon}
@ -405,6 +406,7 @@ popd @@ -405,6 +406,7 @@ popd
ln -s vendor src
export GOPATH=$(pwd)/_output:$(pwd)
export BUILDTAGS="selinux seccomp $(hack/btrfs_installed_tag.sh) $(hack/btrfs_tag.sh) containers_image_ostree_stub"
export CGO_ENABLED=0
BUILDTAGS=$BUILDTAGS make -C conmon
popd


Loading…
Cancel
Save