From: Jakub Bogusz Date: Wed, 27 May 2020 04:16:26 +0000 (+0200) Subject: - package systemtap probes X-Git-Tag: auto/th/qemu-5.0.0-1~1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=1b60612d4a354271240d00bf1b24cbc693e348d8;p=packages%2Fqemu.git - package systemtap probes --- diff --git a/qemu.spec b/qemu.spec index 810055e..9f67f35 100644 --- a/qemu.spec +++ b/qemu.spec @@ -25,7 +25,7 @@ %bcond_without snappy # snappy compression library %bcond_without user_static # build linux-user static packages %bcond_with lttng # lttng-ust trace backend support [needs update] -%bcond_with systemtap # SystemTap/dtrace trace backend support +%bcond_without systemtap # SystemTap/dtrace trace backend support %bcond_without virgl # build virgl support %bcond_with vxhs # Veritas HyperScale vDisk backend support (builtin; module not supported) %bcond_without xkbcommon # xkbcommon support @@ -930,6 +930,19 @@ QEMU SDL UI and audio driver. %description module-ui-sdl -l pl.UTF-8 Sterownik interfejsu użytkownika i dźwięku SDL dla QEMU. +%package -n systemtap-qemu +Summary: systemtap/dtrace probes for QEMU +Summary(pl.UTF-8): Sondy systemtap/dtrace dla QEMU +Group: Development/Tools +Requires: %{name}-common = %{version}-%{release} +Requires: systemtap-client + +%description -n systemtap-qemu +systemtap/dtrace probes for QEMU. + +%description -n systemtap-qemu -l pl.UTF-8 +Sondy systemtap/dtrace dla QEMU. + %prep %setup -q %patch0 -p1 @@ -940,9 +953,12 @@ Sterownik interfejsu użytkownika i dźwięku SDL dla QEMU. %patch5 -p1 %patch6 -p1 -# workaround for conflict with alsa/error.h -ln -s ../error.h qapi/error.h +%{__sed} -i '1s,/usr/bin/env python3,%{__python3},' scripts/qemu-trace-stap +%if %{with systemtap} +# don't require stap binary during build +%{__sed} -i -e "s/has 'stap'/true/" configure +%endif %build build() { @@ -1636,3 +1652,11 @@ fi %attr(755,root,root) %{_libdir}/%{name}/audio-sdl.so %attr(755,root,root) %{_libdir}/%{name}/ui-sdl.so %endif + +%if %{with systemtap} +%files -n systemtap-qemu +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/qemu-trace-stap +%{_datadir}/systemtap/tapset/qemu-*.stp +%{_mandir}/man1/qemu-trace-stap.1* +%endif