Remove qemu-common as a dep from qemu-user-static

qemu-common has a dep on python, and has nothing that is critical for
the operation of the userspace emulators. At most the qemu-trace-stap
tool is useful, but we shouldn't force install of qemu-common just for
that. qemu-user-static needs to be lightweight as its used to support
cross-arch execution in scenarios where container/image size matters.

In dropping qemu-common as a dep, we just need to ensure we still have
the license files present.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé 2022-05-04 11:57:10 +01:00
parent d8c4df3d29
commit 8825298cc2
1 changed files with 2 additions and 1 deletions

View File

@ -911,7 +911,6 @@ This package provides the user mode emulation of qemu targets
%if %{user_static}
%package user-static
Summary: QEMU user mode emulation of qemu targets static build
Requires: %{name}-common = %{epoch}:%{version}-%{release}
Requires(post): systemd-units
Requires(postun): systemd-units
# qemu-user-binfmt + qemu-user-static both provide binfmt rules
@ -2120,6 +2119,7 @@ useradd -r -u 107 -g qemu -G kvm -d / -s /sbin/nologin \
%if %{user_static}
%files user-static
%license COPYING COPYING.LIB LICENSE
# Just use wildcard matches here: we will catch any new/missing files
# in the qemu-user filelists
%{_exec_prefix}/lib/binfmt.d/qemu-*-static.conf
@ -2324,6 +2324,7 @@ useradd -r -u 107 -g qemu -G kvm -d / -s /sbin/nologin \
%changelog
* Tue May 3 2022 Daniel P. Berrangé <berrange@redhat.com> - 7.0.0-2
- Drop redundant qemu-trace-stap copy from qemu-user-static (rhbz#2061584)
- Remove qemu-common dep from qemu-user-static (rhbz#2061584)
* Fri Apr 08 2022 Eduardo Lima (Etrunko) <etrunko@redhat.com> - 7.0.0-1
- Rebase to qemu 7.0.0-1