From 7a2cfc0dc91e1a7ad25ba8ee4ceea7e37c40e36f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Tue, 3 May 2022 18:58:58 +0100 Subject: [PATCH] Drop redundant qemu-trace-stap copy from qemu-user-static (rhbz#2061584) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The static build of QEMU installs a copy of 'qemu-trace-stap' python script, which gets renamed to 'qemu-trace-stap-static' by an overly enthusiastic wildcard. This ends up adding a python dependency to the qemu-user-static RPM, which is unhelpful. Anyone who wants to trace QEMU user binaries with the stap helper can easily install qemu-common as desired. Signed-off-by: Daniel P. Berrangé --- qemu.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qemu.spec b/qemu.spec index 4c86541..82c7955 100644 --- a/qemu.spec +++ b/qemu.spec @@ -1773,6 +1773,10 @@ mkdir -p %{static_buildroot} pushd %{static_builddir} make DESTDIR=%{static_buildroot} install + +# Duplicates what the main build installs and we don't +# need second copy with a -static suffix +rm -f %{static_buildroot}%{_bindir}/qemu-trace-stap popd # static # Rename all QEMU user emulators to have a -static suffix