The package rpms/kata-runtime.git has added or updated architecture specific content in its spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s): https://src.fedoraproject.org/cgit/rpms/kata-runtime.git/commit/?id=2f291191....
Change: +ExcludeArch: %{arm} %{ix86}
Thanks.
Full change: ============
commit 2f291191b896ac01c6173a2c9d3ae2eaf3b08f07 Author: Christophe de Dinechin dinechin@redhat.com Date: Thu Oct 17 17:18:44 2019 +0200
Exclude architectures without the correct qemu and kernel/kvm support
This matches the ExcludeArch in kata-osbuilder as well
diff --git a/kata-runtime.spec b/kata-runtime.spec index 714fe22..975d0b0 100644 --- a/kata-runtime.spec +++ b/kata-runtime.spec @@ -34,7 +34,7 @@ Version: %{tag}
# Do not use {goname}, which is golang-github-kata-containers-runtime Name: kata-%{repo} -Release: 3%{?dist} +Release: 4%{?dist} Url: %{gourl} Source0: %{gosource} Summary: Kata runtime to run containers in virtual machines @@ -47,6 +47,9 @@ Requires: kata-proxy >= %{version} Requires: kata-shim >= %{version} Requires: kata-osbuilder >= %{version}
+# The following architectures lack the required qemu support +ExcludeArch: %{arm} %{ix86} + # Minor local patches Patch0001: 0001-Remove-shebang-in-non-executable-completion-script.patch
@@ -116,6 +119,9 @@ sed -i -e 's/^#use_vsock =/use_vsock =/' %{buildroot}%{_datadir}/kata-containers %doc README.md CONTRIBUTING.md
%changelog +* Thu Oct 17 2019 Christophe de Dinechin dinechin@redhat.com - 1.8.2-4 +- Exclude armv7hl and i686 architectures, which lack required qemu + * Thu Oct 10 2019 Christophe de Dinechin dinechin@redhat.com - 1.8.2-3 - Integrate changes related to package review
commit 621991a696ff8fd498138b7a600eb0688e27fb09 Author: Christophe de Dinechin dinechin@redhat.com Date: Thu Oct 17 15:27:32 2019 +0200
Initial commit (#1761451)
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c069264 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/runtime-1.8.2.tar.gz diff --git a/0001-Remove-shebang-in-non-executable-completion-script.patch b/0001-Remove-shebang-in-non-executable-completion-script.patch new file mode 100644 index 0000000..b714ba3 --- /dev/null +++ b/0001-Remove-shebang-in-non-executable-completion-script.patch @@ -0,0 +1,25 @@ +From 1c65024709d7c28bf78b42c59a135df17513d78d Mon Sep 17 00:00:00 2001 +From: Christophe de Dinechin dinechin@redhat.com +Date: Thu, 12 Sep 2019 12:57:39 +0200 +Subject: [PATCH] Remove shebang in non-executable completion script + +Raised during package review [1] by rpmlint + +[1] https://bugzilla.redhat.com/show_bug.cgi?id=1590425#c8 + +Signed-off-by: Christophe de Dinechin dinechin@redhat.com +--- + data/completions/bash/kata-runtime | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/data/completions/bash/kata-runtime b/data/completions/bash/kata-runtime +index c293483..58ab978 100644 +--- a/data/completions/bash/kata-runtime ++++ b/data/completions/bash/kata-runtime +@@ -1,4 +1,3 @@ +-#!/bin/bash + # + # Copyright (c) 2018 Intel Corporation + # +-- +2.21.0 diff --git a/kata-runtime.spec b/kata-runtime.spec new file mode 100644 index 0000000..714fe22 --- /dev/null +++ b/kata-runtime.spec @@ -0,0 +1,141 @@ +%global domain github.com +%global org kata-containers +%global repo runtime +%global download %{domain}/%{org}/%{repo} +%global importname %{download} +%global qemu qemu-kvm +%global tag 1.8.2 + +# https://github.com/kata-containers/runtime +%global goipath github.com/kata-containers/runtime +%global tag 1.8.2 +Version: %{tag} + +%gometa + +# Document additional imported license (as generated by go2rpm) +# These licenses are, at the moment, all ASL 2.0, so only +# one copy would be needed in the rpm, but they are technically +# different licenses for different components, so just in case... +%global golicenses LICENSE virtcontainers/LICENSE\\ + virtcontainers/pkg/oci/LICENSE + +# List of documents in the source package (as generated by go2rpm) +# These documents are copied into the RPM as a courtesy. +%global godocs README.md CONTRIBUTING.md CODE_OF_CONDUCT.md\\ + virtcontainers/README.md\\ + virtcontainers/experimental/README.md\\ + virtcontainers/documentation/Developers.md\\ + virtcontainers/documentation/api/1.0/api.md\\ + virtcontainers/pkg/firecracker/README\\ + virtcontainers/persist/plugin/README.md pkg/README.md\\ + pkg/signals/README.md pkg/katautils/README.md\\ + pkg/katatestutils/README.md + +# Do not use {goname}, which is golang-github-kata-containers-runtime +Name: kata-%{repo} +Release: 3%{?dist} +Url: %{gourl} +Source0: %{gosource} +Summary: Kata runtime to run containers in virtual machines +License: ASL 2.0 + +BuildRequires: compiler(go-compiler) + +Requires: qemu-kvm >= 4.0.0 +Requires: kata-proxy >= %{version} +Requires: kata-shim >= %{version} +Requires: kata-osbuilder >= %{version} + +# Minor local patches +Patch0001: 0001-Remove-shebang-in-non-executable-completion-script.patch + +%description +%{summary} + +Kata Containers is an open source project and community working to +build a standard implementation of lightweight Virtual Machines (VMs) +that feel and perform like containers, but provide the workload +isolation and security advantages of VMs. + +%gopkg + +%prep +%goprep +%autosetup -p1 -n %{repo}-%{version} + +# Common variables to pass to 'make' +# The machine type uses a modern default +# The kernel parameters workaround an issue with cgroupsv2 after kernel 5.3 +# To-do: add BUILDFLAGS=gobuildflags when the macro becomes available +%global make_vars QEMUPATH=%{_bindir}/%{qemu} \\ + SKIP_GO_VERSION_CHECK=y \\ + MACHINETYPE="q35" \\ + KERNELPARAMS="systemd.unified_cgroup_hierarchy=0" \\ + SCRIPTS_DIR=%{_bindir} \\ + DESTDIR=%{buildroot} \\ + PREFIX=/usr \\ + DEFAULTSDIR=%{_datadir}/kata-containers/defaults \\ + CONFDIR=%{_datadir}/kata-containers/defaults + +# Not using gobuild here in order to stick to how upstream builds +# (This builds multiple binaries) +%build +export PATH=$PATH:"$(pwd)/go/bin" +export GOPATH="$(pwd)/go" + +mkdir -p go/src/%{domain}/%{org} +ln -s $(pwd)/../%{repo}-%{version} go/src/%{importname} +cd go/src/%{importname} +%make_build %{make_vars} + +# Not using gopkginstall here in order to stick to how upstream builds +%install +export GOPATH=$(pwd)/go +export PATH=$PATH:$GOPATH/bin + +cd go/src/%{importname} +%make_install %{make_vars} + +# Disable the image= option, so we use initrd= by default +sed -i -e 's/^image =/#image =/' %{buildroot}%{_datadir}/kata-containers/defaults/configuration.toml +# Enable vsock as transport instead of virtio-serial +sed -i -e 's/^#use_vsock =/use_vsock =/' %{buildroot}%{_datadir}/kata-containers/defaults/configuration.toml + +%files +%dir %{_libexecdir}/kata-containers +%{_bindir}/kata-runtime +%{_bindir}/containerd-shim-kata-v2 +%{_libexecdir}/kata-containers/kata-netmon +%{_bindir}/kata-collect-data.sh +%dir %{_datadir}/kata-containers +%dir %{_datadir}/kata-containers/defaults +%{_datadir}/kata-containers/defaults/configuration*.toml +%{_datadir}/bash-completion/completions/kata-runtime +%license LICENSE +%doc README.md CONTRIBUTING.md + +%changelog +* Thu Oct 10 2019 Christophe de Dinechin dinechin@redhat.com - 1.8.2-3 +- Integrate changes related to package review + +* Mon Sep 30 2019 Christophe de Dinechin dinechin@redhat.com - 1.8.2-2 +- Integrate a number of changes suggested by Cole Robinson + +* Fri Sep 20 2019 Christophe de Dinechin dinechin@redhat.com - 1.8.2-1 +- Update to 1.8.2 release + +* Fri Sep 13 2019 Christophe de Dinechin dinechin@redhat.com - 1.8.0-5 +- Move binaries to libexec (no man page, not directly accessible) + +* Thu Sep 12 2019 Christophe de Dinechin dinechin@redhat.com - 1.8.0-4 +- Remove shebang in bash completion script + +* Wed Aug 28 2019 Christophe de Dinechin dinechin@redhat.com - 1.8.0-2 +- Remove nonexistent packages + +* Tue Jul 30 2019 Christophe de Dinechin dinechin@redhat.com - 1.8.0-1 +- Update to 1.8.0 release + +* Fri Jul 12 2019 Christophe de Dinechin dinechin@redhat.com - 1.7.3-5 +- Update to 1.7.3 release, cleanup spec file diff --git a/sources b/sources new file mode 100644 index 0000000..c67d01a --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (runtime-1.8.2.tar.gz) = db5615db6e6c091bed346cc401a8d7972a299620e4219338cf5348af7e547d01898ad851a57c8cf001593bff9bc5f591a425be2fed4d28f4c624f9b4b71669ac