Skip to content

Commit

Permalink
[skip-ci] RPM: adjust qemu dependencies
Browse files Browse the repository at this point in the history
We only need qemu-system-[x86|aarch64]-core based on the architecture
along with qemu-img. So, there's no need to pull in all of qemu.

The qemu-system-[x86|aarch64]-core packages are not present on CentOS
Stream and RHEL, so we use qemu-kvm there instead.

Ref: https://github.com/containers/podman/pull/24369/files#r1883658262

Signed-off-by: Lokesh Mandvekar <[email protected]>
  • Loading branch information
lsm5 committed Dec 18, 2024
1 parent 8030093 commit 46a9614
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion rpm/podman.spec
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@

%if %{defined fedora}
%define build_with_btrfs 1
# QEMU isn't packageed for CentOS Stream / RHEL
%define qemu 1
%endif

%if %{defined copr_username}
Expand Down Expand Up @@ -187,7 +189,16 @@ when `%{_bindir}/%{name}sh` is set as a login shell or set as os.Args[0].
Summary: Metapackage for setting up %{name} machine
Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: gvisor-tap-vsock
Requires: qemu
%if %{defined qemu}
%ifarch aarch64
Requires: qemu-system-aarch64-core
%else
Requires: qemu-system-x86-core
%endif
%else
Requires: qemu-kvm
%endif
Requires: qemu-img
Requires: virtiofsd
ExclusiveArch: x86_64 aarch64

Expand Down

0 comments on commit 46a9614

Please sign in to comment.