3b4a925
%{!?with_sqlite: %global with_sqlite 0%{?fedora} >= 17 || 0%{?rhel} >= 7}
45296db
# prefer prebuilt docs
45296db
%{!?with_docs: %global with_docs 0}
e60cd5e
%{!?with_htmldocs: %global with_htmldocs 0}
9109ced
%{!?with_monitor: %global with_monitor 1}
c39c596
# crash is not available
e6b0de4
%ifarch ppc ppc64 %{sparc} %{mips}
53f00b1
%{!?with_crash: %global with_crash 0}
53f00b1
%else
a811d54
%{!?with_crash: %global with_crash 1}
53f00b1
%endif
fbc37f4
%{!?with_rpm: %global with_rpm 1}
fbc37f4
%{!?with_bundled_elfutils: %global with_bundled_elfutils 0}
5ed4602
%{!?elfutils_version: %global elfutils_version 0.142}
fbc37f4
%{!?pie_supported: %global pie_supported 1}
fbc37f4
%{!?with_boost: %global with_boost 0}
fea3b61
%ifarch %{ix86} x86_64 ppc ppc64
37ef790
%{!?with_dyninst: %global with_dyninst 0%{?fedora} >= 18 || 0%{?rhel} >= 7}
58e329e
%else
79da85a
%{!?with_dyninst: %global with_dyninst 0}
58e329e
%endif
3de1952
%{!?with_bpf: %global with_bpf 0%{?fedora} >= 22 || 0%{?rhel} >= 8}
fa019a4
%{!?with_systemd: %global with_systemd 0%{?fedora} >= 19 || 0%{?rhel} >= 7}
8aebe2c
%{!?with_emacsvim: %global with_emacsvim 0%{?fedora} >= 19 || 0%{?rhel} >= 7}
8aebe2c
%{!?with_java: %global with_java 0%{?fedora} >= 19 || 0%{?rhel} >= 7}
e29fbab
%{!?with_virthost: %global with_virthost 0%{?fedora} >= 19 || 0%{?rhel} >= 7}
e29fbab
%{!?with_virtguest: %global with_virtguest 1}
9b30916
%{!?with_dracut: %global with_dracut 0%{?fedora} >= 19 || 0%{?rhel} >= 6}
979cf82
%ifarch x86_64
979cf82
%{!?with_mokutil: %global with_mokutil 0%{?fedora} >= 18 || 0%{?rhel} >= 7}
cce4128
%{!?with_openssl: %global with_openssl 0%{?fedora} >= 18 || 0%{?rhel} >= 7}
979cf82
%else
979cf82
%{!?with_mokutil: %global with_mokutil 0}
cce4128
%{!?with_openssl: %global with_openssl 0}
979cf82
%endif
bc52e33
%{!?with_pyparsing: %global with_pyparsing 0%{?fedora} >= 18 || 0%{?rhel} >= 7}
e58b858
%{!?with_python3: %global with_python3 0%{?fedora} >= 23 || 0%{?rhel} > 7}
Mark Wielaard 3634436
%{!?with_python2_probes: %global with_python2_probes (0%{?fedora} <= 28 && 0%{?rhel} <= 7)}
Mark Wielaard 3634436
%{!?with_python3_probes: %global with_python3_probes (0%{?fedora} >= 23 || 0%{?rhel} > 7)}
74698f2
%{!?with_httpd: %global with_httpd 0}
3a4041d
%{!?with_specific_python: %global with_specific_python 0%{?fedora} >= 31}
e29fbab
e6b0de4
# Virt is supported on these arches, even on el7, but it's not in core EL7
e6b0de4
%if 0%{?rhel} <= 7
773aa85
%ifarch ppc64le aarch64
d0f4bac
%global with_virthost 0
d0f4bac
%endif
e6b0de4
%endif
d0f4bac
e29fbab
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 6
e29fbab
   %define initdir %{_initddir}
e29fbab
%else # RHEL5 doesn't know _initddir
e29fbab
   %define initdir %{_initrddir}
e29fbab
%endif
e29fbab
e29fbab
%if %{with_virtguest}
ba9afd2
   %if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
ba9afd2
      %define udevrulesdir /usr/lib/udev/rules.d
e29fbab
   %else
ba9afd2
      %if 0%{?rhel} >= 6
ba9afd2
         %define udevrulesdir /lib/udev/rules.d
ba9afd2
      %else # RHEL5
ba9afd2
         %define udevrulesdir /etc/udev/rules.d
ba9afd2
      %endif
e29fbab
   %endif
e29fbab
%endif
0fc2adf
9b30916
%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
9b30916
   %define dracutstap %{_prefix}/lib/dracut/modules.d/99stap
9b30916
%else
9b30916
   %define dracutstap %{_prefix}/share/dracut/modules.d/99stap
9b30916
%endif
9b30916
45296db
%if 0%{?rhel} == 6 || 0%{?rhel} == 7
9b30916
    %define dracutbindir /sbin
9b30916
%else
9b30916
    %define dracutbindir %{_bindir}
9b30916
%endif
a11507d
45296db
%if 0%{?rhel} == 6
45296db
    %{!?_rpmmacrodir: %define _rpmmacrodir /etc/rpm/}
45296db
%else
45296db
    %{!?_rpmmacrodir: %define _rpmmacrodir %{_rpmconfigdir}/macros.d}
45296db
%endif
45296db
f70df36
# To avoid testsuite/*/*.stp has shebang which doesn't start with '/'
8564a9f
%define __brp_mangle_shebangs_exclude_from .stp$
f70df36
17e3a21
Name: systemtap
8fa0dba
Version: 4.1
ea39b8c
Release: 2%{?release_override}%{?dist}
1908f80
# for version, see also configure.ac
1908f80
9da5ca9
9da5ca9
# Packaging abstract:
9da5ca9
#
9da5ca9
# systemtap              empty req:-client req:-devel
9da5ca9
# systemtap-server       /usr/bin/stap-server*, req:-devel
9da5ca9
# systemtap-devel        /usr/bin/stap, runtime, tapset, req:kernel-devel
4041ad6
# systemtap-runtime      /usr/bin/staprun, /usr/bin/stapsh, /usr/bin/stapdyn
9da5ca9
# systemtap-client       /usr/bin/stap, samples, docs, tapset(bonus), req:-runtime
a11507d
# systemtap-initscript   /etc/init.d/systemtap, dracut module, req:systemtap
9da5ca9
# systemtap-sdt-devel    /usr/include/sys/sdt.h /usr/bin/dtrace
9da5ca9
# systemtap-testsuite    /usr/share/systemtap/testsuite*, req:systemtap, req:sdt-devel
4c09063
# systemtap-runtime-java libHelperSDT.so, HelperSDT.jar, stapbm, req:-runtime
e29fbab
# systemtap-runtime-virthost  /usr/bin/stapvirt, req:libvirt req:libxml2
e29fbab
# systemtap-runtime-virtguest udev rules, init scripts/systemd service, req:-runtime
af87ab6
# systemtap-runtime-python2 HelperSDT python2 module, req:-runtime
af87ab6
# systemtap-runtime-python3 HelperSDT python3 module, req:-runtime
9da5ca9
#
9da5ca9
# Typical scenarios:
9da5ca9
#
9da5ca9
# stap-client:           systemtap-client
9da5ca9
# stap-server:           systemtap-server
9da5ca9
# local user:            systemtap
9da5ca9
#
9da5ca9
# Unusual scenarios:
fa019a4
#
9da5ca9
# intermediary stap-client for --remote:       systemtap-client (-runtime unused)
9da5ca9
# intermediary stap-server for --use-server:   systemtap-server (-devel unused)
9da5ca9
1908f80
Summary: Programmable system-wide instrumentation system
1908f80
License: GPLv2+
1908f80
URL: http://sourceware.org/systemtap/
3a4041d
Source: %{name}-%{version}-0.20190807gitebfc300ec2ad.tar.gz
c0ec242
ea39b8c
Patch10: PR23879-PR24875.patch
ea39b8c
Patch11: PR24904-changes.patch
ea39b8c
Patch12: PR24904-changes-wit.patch
ea39b8c
ea39b8c
9da5ca9
# Build*
1908f80
BuildRequires: gcc-c++
8564a9f
BuildRequires: cpio
c39c596
BuildRequires: gettext-devel
b141b16
BuildRequires: pkgconfig(nss)
b141b16
BuildRequires: pkgconfig(avahi-client)
4041ad6
%if %{with_dyninst}
3ed2ecf
BuildRequires: dyninst-devel >= 8.0
b141b16
BuildRequires: pkgconfig(libselinux)
4041ad6
%endif
9a28b9d
%if %{with_sqlite}
3de1952
BuildRequires: sqlite-devel > 3.7
0fc2adf
%endif
9109ced
%if %{with_monitor}
b141b16
BuildRequires: pkgconfig(json-c)
b141b16
BuildRequires: pkgconfig(ncurses)
9109ced
%endif
681f0ec
%if %{with_systemd}
681f0ec
BuildRequires: systemd
681f0ec
%endif
fbc37f4
# Needed for libstd++ < 4.0, without <tr1/memory>
fbc37f4
%if %{with_boost}
fbc37f4
BuildRequires: boost-devel
fbc37f4
%endif
9a28b9d
%if %{with_crash}
4d4e1ff
BuildRequires: crash-devel zlib-devel
4854246
%endif
bb598bf
%if %{with_rpm}
bbc0a54
BuildRequires: rpm-devel
bb598bf
%endif
9a28b9d
%if %{with_bundled_elfutils}
17e3a21
Source1: elfutils-%{elfutils_version}.tar.gz
17e3a21
Patch1: elfutils-portability.patch
bb598bf
BuildRequires: m4
fbc37f4
%global setup_elfutils -a1
17e3a21
%else
17e3a21
BuildRequires: elfutils-devel >= %{elfutils_version}
17e3a21
%endif
9a28b9d
%if %{with_docs}
3a00d81
BuildRequires: /usr/bin/latex /usr/bin/dvips /usr/bin/ps2pdf
79da85a
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
0bd603b
BuildRequires: tex(fullpage.sty) tex(fancybox.sty) tex(bchr7t.tfm) tex(graphicx.sty)
79da85a
%endif
1d256a6
# For the html.sty mentioned in the .tex files, even though latex2html is
1d256a6
# not run during the build, only during manual scripts/update-docs runs:
1d256a6
BuildRequires: latex2html
e60cd5e
%if %{with_htmldocs}
cfae4d4
# On F10, xmlto's pdf support was broken off into a sub-package,
cfae4d4
# called 'xmlto-tex'.  To avoid a specific F10 BuildReq, we'll do a
cfae4d4
# file-based buildreq on '/usr/share/xmlto/format/fo/pdf'.
1908f80
BuildRequires: xmlto /usr/share/xmlto/format/fo/pdf
9a28b9d
%endif
e60cd5e
%endif
79da85a
%if %{with_emacsvim}
79da85a
BuildRequires: emacs
79da85a
%endif
4c09063
%if %{with_java}
4c09063
BuildRequires: jpackage-utils java-devel
4c09063
%endif
e29fbab
%if %{with_virthost}
b141b16
# BuildRequires: libvirt-devel >= 1.0.2
b141b16
BuildRequires: pkgconfig(libvirt)
b141b16
BuildRequires: pkgconfig(libxml-2.0)
e29fbab
%endif
2e205c0
BuildRequires: readline-devel
2e205c0
%if 0%{?rhel} <= 5
b141b16
BuildRequires: pkgconfig(ncurses)
2e205c0
%endif
af87ab6
%if %{with_python2_probes}
4f54dc0
BuildRequires: python2-devel
Mark Wielaard 3634436
%if 0%{?fedora} >= 1
4f54dc0
BuildRequires: python2-setuptools
Mark Wielaard 3634436
%else
Mark Wielaard 3634436
BuildRequires: python-setuptools
Mark Wielaard 3634436
%endif
af87ab6
%endif
af87ab6
%if %{with_python3_probes}
af87ab6
BuildRequires: python3-devel
e9267ab
BuildRequires: python3-setuptools
af87ab6
%endif
3a4041d
%if %{with_specific_python}
3a4041d
BuildRequires: /usr/bin/pathfix.py
3a4041d
%endif
2396d5c
74698f2
%if %{with_httpd}
74698f2
BuildRequires: libmicrohttpd-devel
74698f2
BuildRequires: libuuid-devel
74698f2
%endif
74698f2
9da5ca9
# Install requirements
9da5ca9
Requires: systemtap-client = %{version}-%{release}
9da5ca9
Requires: systemtap-devel = %{version}-%{release}
Mark Wielaard fc3b63d
17e3a21
%description
5ed4602
SystemTap is an instrumentation system for systems running Linux.
9da5ca9
Developers can write instrumentation scripts to collect data on
9da5ca9
the operation of the system.  The base systemtap package contains/requires
9da5ca9
the components needed to locally develop and execute systemtap scripts.
9da5ca9
9da5ca9
# ------------------------------------------------------------------------
9da5ca9
9da5ca9
%package server
9da5ca9
Summary: Instrumentation System Server
1908f80
License: GPLv2+
1908f80
URL: http://sourceware.org/systemtap/
9da5ca9
Requires: systemtap-devel = %{version}-%{release}
d4c7fab
Conflicts: systemtap-devel < %{version}-%{release}
d4c7fab
Conflicts: systemtap-runtime < %{version}-%{release}
d4c7fab
Conflicts: systemtap-client < %{version}-%{release}
ac3f11b
Requires: nss coreutils
9da5ca9
Requires: zip unzip
9da5ca9
Requires(pre): shadow-utils
1908f80
BuildRequires: nss-devel avahi-devel
cce4128
%if %{with_openssl}
cce4128
Requires: openssl
cce4128
%endif
681f0ec
%if %{with_systemd}
681f0ec
Requires: systemd
d4c7fab
%else
e6b0de4
Requires(post): chkconfig
e6b0de4
Requires(preun): chkconfig
d4c7fab
Requires(preun): initscripts
d4c7fab
Requires(postun): initscripts
681f0ec
%endif
9da5ca9
9da5ca9
%description server
9da5ca9
This is the remote script compilation server component of systemtap.
9da5ca9
It announces itself to nearby clients with avahi (if available), and
9da5ca9
compiles systemtap scripts to kernel objects on their demand.
9da5ca9
9da5ca9
9da5ca9
%package devel
9da5ca9
Summary: Programmable system-wide instrumentation system - development headers, tools
1908f80
License: GPLv2+
1908f80
URL: http://sourceware.org/systemtap/
c27bf14
c27bf14
%if 0%{?rhel} >= 8 || 0%{?fedora} >= 20
34ba7d8
Recommends: (kernel-debug-devel if kernel-debug)
34ba7d8
Recommends: (kernel-devel if kernel)
c27bf14
%else
a43fb42
Requires: kernel-devel-uname-r
c27bf14
%endif
c27bf14
1908f80
Requires: gcc make
d4c7fab
Conflicts: systemtap-client < %{version}-%{release}
d4c7fab
Conflicts: systemtap-server < %{version}-%{release}
d4c7fab
Conflicts: systemtap-runtime < %{version}-%{release}
9da5ca9
# Suggest: kernel-debuginfo
9da5ca9
9da5ca9
%description devel
9da5ca9
This package contains the components needed to compile a systemtap
9da5ca9
script from source form into executable (.ko) forms.  It may be
9da5ca9
installed on a self-contained developer workstation (along with the
9da5ca9
systemtap-client and systemtap-runtime packages), or on a dedicated
9da5ca9
remote server (alongside the systemtap-server package).  It includes
9da5ca9
a copy of the standard tapset library and the runtime library C files.
9da5ca9
17e3a21
f89d042
%package runtime
9da5ca9
Summary: Programmable system-wide instrumentation system - runtime
1908f80
License: GPLv2+
1908f80
URL: http://sourceware.org/systemtap/
9a28b9d
Requires(pre): shadow-utils
d4c7fab
Conflicts: systemtap-devel < %{version}-%{release}
d4c7fab
Conflicts: systemtap-server < %{version}-%{release}
d4c7fab
Conflicts: systemtap-client < %{version}-%{release}
f89d042
f89d042
%description runtime
9da5ca9
SystemTap runtime contains the components needed to execute
9da5ca9
a systemtap script that was already compiled into a module
9da5ca9
using a local or remote systemtap-devel installation.
f89d042
9da5ca9
9da5ca9
%package client
9da5ca9
Summary: Programmable system-wide instrumentation system - client
1908f80
License: GPLv2+
0fc2adf
URL: http://sourceware.org/systemtap/
9da5ca9
Requires: zip unzip
9da5ca9
Requires: systemtap-runtime = %{version}-%{release}
9da5ca9
Requires: coreutils grep sed unzip zip
9da5ca9
Requires: openssh-clients
d4c7fab
Conflicts: systemtap-devel < %{version}-%{release}
d4c7fab
Conflicts: systemtap-server < %{version}-%{release}
d4c7fab
Conflicts: systemtap-runtime < %{version}-%{release}
979cf82
%if %{with_mokutil}
979cf82
Requires: mokutil
979cf82
%endif
0fc2adf
9da5ca9
%description client
fa019a4
This package contains/requires the components needed to develop
fa019a4
systemtap scripts, and compile them using a local systemtap-devel
9da5ca9
or a remote systemtap-server installation, then run them using a
9da5ca9
local or remote systemtap-runtime.  It includes script samples and
9da5ca9
documentation, and a copy of the tapset library for reference.
0fc2adf
9da5ca9
9da5ca9
%package initscript
9da5ca9
Summary: Systemtap Initscripts
1908f80
License: GPLv2+
1908f80
URL: http://sourceware.org/systemtap/
5ed4602
Requires: systemtap = %{version}-%{release}
d4c7fab
%if %{with_systemd}
d4c7fab
Requires: systemd
d4c7fab
%else
e6b0de4
Requires(post): chkconfig
e6b0de4
Requires(preun): chkconfig
fbc37f4
Requires(preun): initscripts
fbc37f4
Requires(postun): initscripts
d4c7fab
%endif
bd5a7bb
9da5ca9
%description initscript
a11507d
This package includes a SysVinit script to launch selected systemtap
a11507d
scripts at system startup, along with a dracut module for early
a11507d
boot-time probing if supported.
9da5ca9
bd5a7bb
cfae4d4
%package sdt-devel
cfae4d4
Summary: Static probe support tools
1908f80
License: GPLv2+ and Public Domain
1908f80
URL: http://sourceware.org/systemtap/
bc52e33
%if %{with_pyparsing}
eab6028
%if %{with_python3}
eab6028
Requires: python3-pyparsing
eab6028
%else
Mark Wielaard 3634436
%if 0%{?rhel} >= 7
Mark Wielaard 3634436
Requires: pyparsing
Mark Wielaard 3634436
%else
4f54dc0
Requires: python2-pyparsing
bc52e33
%endif
eab6028
%endif
Mark Wielaard 3634436
%endif
cfae4d4
cfae4d4
%description sdt-devel
9da5ca9
This package includes the <sys/sdt.h> header file used for static
9da5ca9
instrumentation compiled into userspace programs and libraries, along
9da5ca9
with the optional dtrace-compatibility preprocessor to process related
9da5ca9
.d files into tracing-macro-laden .h headers.
cfae4d4
9da5ca9
9da5ca9
%package testsuite
9da5ca9
Summary: Instrumentation System Testsuite
1908f80
License: GPLv2+
1908f80
URL: http://sourceware.org/systemtap/
9da5ca9
Requires: systemtap = %{version}-%{release}
9da5ca9
Requires: systemtap-sdt-devel = %{version}-%{release}
1908f80
Requires: systemtap-server = %{version}-%{release}
37ef790
Requires: dejagnu which elfutils grep nc
1908f80
Requires: gcc gcc-c++ make glibc-devel
0c19749
# testsuite/systemtap.base/ptrace.exp needs strace
0c19749
Requires: strace
2671921
# testsuite/systemtap.base/ipaddr.exp needs nc. Unfortunately, the rpm
2671921
# that provides nc has changed over time (from 'nc' to
2671921
# 'nmap-ncat'). So, we'll do a file-based require.
2671921
Requires: /usr/bin/nc
8aebe2c
%ifnarch ia64 ppc64le aarch64
eab6028
%if 0%{?fedora} >= 21 || 0%{?rhel} >= 8
eab6028
# no prelink
eab6028
%else
37ef790
Requires: prelink
37ef790
%endif
eab6028
%endif
1908f80
# testsuite/systemtap.server/client.exp needs avahi
1908f80
Requires: avahi
1908f80
%if %{with_crash}
1908f80
# testsuite/systemtap.base/crash.exp needs crash
1908f80
Requires: crash
1908f80
%endif
a71f27a
%if %{with_java}
a71f27a
Requires: systemtap-runtime-java = %{version}-%{release}
a71f27a
%endif
af87ab6
%if %{with_python2_probes}
af87ab6
Requires: systemtap-runtime-python2 = %{version}-%{release}
af87ab6
%endif
af87ab6
%if %{with_python3_probes}
af87ab6
Requires: systemtap-runtime-python3 = %{version}-%{release}
af87ab6
%endif
5033587
%ifarch x86_64
17dcdfd
Requires: /usr/lib/libc.so
4e1f190
# ... and /usr/lib/libgcc_s.so.*
4e1f190
# ... and /usr/lib/libstdc++.so.*
1908f80
%endif
a11507d
%if 0%{?fedora} >= 18
a11507d
Requires: stress
a11507d
%endif
596088f
# The following "meta" files for the systemtap examples run "perf":
596088f
#   testsuite/systemtap.examples/hw_watch_addr.meta
596088f
#   testsuite/systemtap.examples/memory/hw_watch_sym.meta
596088f
Requires: perf
9da5ca9
9da5ca9
%description testsuite
9da5ca9
This package includes the dejagnu-based systemtap stress self-testing
9da5ca9
suite.  This may be used by system administrators to thoroughly check
9da5ca9
systemtap on the current system.
cfae4d4
cfae4d4
4c09063
%if %{with_java}
4c09063
%package runtime-java
4c09063
Summary: Systemtap Java Runtime Support
4c09063
License: GPLv2+
4c09063
URL: http://sourceware.org/systemtap/
4c09063
Requires: systemtap-runtime = %{version}-%{release}
4c09063
Requires: byteman > 2.0
45296db
Requires: iproute
3a4041d
Requires: java-devel
4c09063
4c09063
%description runtime-java
4c09063
This package includes support files needed to run systemtap scripts
d4c7fab
that probe Java processes running on the OpenJDK runtimes using Byteman.
4c09063
%endif
4c09063
af87ab6
%if %{with_python2_probes}
af87ab6
%package runtime-python2
af87ab6
Summary: Systemtap Python 2 Runtime Support
af87ab6
License: GPLv2+
af87ab6
URL: http://sourceware.org/systemtap/
af87ab6
Requires: systemtap-runtime = %{version}-%{release}
af87ab6
af87ab6
%description runtime-python2
af87ab6
This package includes support files needed to run systemtap scripts
af87ab6
that probe python 2 processes.
af87ab6
%endif
af87ab6
af87ab6
%if %{with_python3_probes}
af87ab6
%package runtime-python3
af87ab6
Summary: Systemtap Python 3 Runtime Support
af87ab6
License: GPLv2+
af87ab6
URL: http://sourceware.org/systemtap/
af87ab6
Requires: systemtap-runtime = %{version}-%{release}
af87ab6
Mark Wielaard 3634436
%if ! (%{with_python2_probes})
Mark Wielaard 3634436
# Provide an clean upgrade path when the python2 package is removed
Mark Wielaard 3634436
Obsoletes: %{name}-runtime-python2 < %{version}-%{release}
Mark Wielaard 3634436
%endif
Mark Wielaard 3634436
af87ab6
%description runtime-python3
af87ab6
This package includes support files needed to run systemtap scripts
af87ab6
that probe python 3 processes.
af87ab6
%endif
af87ab6
d4c7fab
%if %{with_python3}
8564a9f
%package exporter
d4c7fab
Summary: Systemtap-prometheus interoperation mechanism
d4c7fab
License: GPLv2+
d4c7fab
URL: http://sourceware.org/systemtap/
d4c7fab
Requires: systemtap-runtime = %{version}-%{release}
d4c7fab
8564a9f
%description exporter
d4c7fab
This package includes files for a systemd service that manages
d4c7fab
systemtap sessions and relays prometheus metrics from the sessions
d4c7fab
to remote requesters on demand.
d4c7fab
%endif
d4c7fab
e29fbab
%if %{with_virthost}
e29fbab
%package runtime-virthost
e29fbab
Summary: Systemtap Cross-VM Instrumentation - host
e29fbab
License: GPLv2+
e29fbab
URL: http://sourceware.org/systemtap/
e29fbab
Requires: libvirt >= 1.0.2
e29fbab
Requires: libxml2
e29fbab
e29fbab
%description runtime-virthost
e29fbab
This package includes the components required to run systemtap scripts
e29fbab
inside a libvirt-managed domain from the host without using a network
e29fbab
connection.
e29fbab
%endif
e29fbab
e29fbab
%if %{with_virtguest}
e29fbab
%package runtime-virtguest
e29fbab
Summary: Systemtap Cross-VM Instrumentation - guest
e29fbab
License: GPLv2+
e29fbab
URL: http://sourceware.org/systemtap/
e29fbab
Requires: systemtap-runtime = %{version}-%{release}
e29fbab
%if %{with_systemd}
e29fbab
Requires(post): findutils coreutils
e29fbab
Requires(preun): grep coreutils
e29fbab
Requires(postun): grep coreutils
e29fbab
%else
e29fbab
Requires(post): chkconfig initscripts
e29fbab
Requires(preun): chkconfig initscripts
e29fbab
Requires(postun): initscripts
e29fbab
%endif
e29fbab
e29fbab
%description runtime-virtguest
e29fbab
This package installs the services necessary on a virtual machine for a
e29fbab
systemtap-runtime-virthost machine to execute systemtap scripts.
e29fbab
%endif
4c09063
9da5ca9
# ------------------------------------------------------------------------
9da5ca9
17e3a21
%prep
17e3a21
%setup -q %{?setup_elfutils}
17e3a21
9a28b9d
%if %{with_bundled_elfutils}
17e3a21
cd elfutils-%{elfutils_version}
17e3a21
%patch1 -p1
17e3a21
sleep 1
17e3a21
find . \( -name Makefile.in -o -name aclocal.m4 \) -print | xargs touch
17e3a21
sleep 1
17e3a21
find . \( -name configure -o -name config.h.in \) -print | xargs touch
17e3a21
cd ..
17e3a21
%endif
17e3a21
ea39b8c
%patch10 -p1
ea39b8c
%patch11 -p1
ea39b8c
%patch12 -p1
ea39b8c
17e3a21
%build
17e3a21
9a28b9d
%if %{with_bundled_elfutils}
17e3a21
# Build our own copy of elfutils.
fbc37f4
%global elfutils_config --with-elfutils=elfutils-%{elfutils_version}
17e3a21
17e3a21
# We have to prevent the standard dependency generation from identifying
17e3a21
# our private elfutils libraries in our provides and requires.
fbc37f4
%global _use_internal_dependency_generator	0
fbc37f4
%global filter_eulibs() /bin/sh -c "%{1} | sed '/libelf/d;/libdw/d;/libebl/d'"
fbc37f4
%global __find_provides %{filter_eulibs /usr/lib/rpm/find-provides}
fbc37f4
%global __find_requires %{filter_eulibs /usr/lib/rpm/find-requires}
b04ba44
b04ba44
# This will be needed for running stap when not installed, for the test suite.
fbc37f4
%global elfutils_mflags LD_LIBRARY_PATH=`pwd`/lib-elfutils
17e3a21
%endif
17e3a21
4041ad6
# Enable/disable the dyninst pure-userspace backend
4041ad6
%if %{with_dyninst}
4041ad6
%global dyninst_config --with-dyninst
4041ad6
%else
4041ad6
%global dyninst_config --without-dyninst
4041ad6
%endif
4041ad6
9a28b9d
# Enable/disable the sqlite coverage testing support
9a28b9d
%if %{with_sqlite}
fbc37f4
%global sqlite_config --enable-sqlite
9a28b9d
%else
fbc37f4
%global sqlite_config --disable-sqlite
9a28b9d
%endif
9a28b9d
9a28b9d
# Enable/disable the crash extension
9a28b9d
%if %{with_crash}
fbc37f4
%global crash_config --enable-crash
9a28b9d
%else
fbc37f4
%global crash_config --disable-crash
9a28b9d
%endif
9a28b9d
bb598bf
# Enable/disable the code to find and suggest needed rpms
bb598bf
%if %{with_rpm}
fbc37f4
%global rpm_config --with-rpm
bb598bf
%else
fbc37f4
%global rpm_config --without-rpm
bb598bf
%endif
bb598bf
9a28b9d
%if %{with_docs}
e60cd5e
%if %{with_htmldocs}
e60cd5e
%global docs_config --enable-docs --enable-htmldocs
e60cd5e
%else
e60cd5e
%global docs_config --enable-docs --disable-htmldocs
e60cd5e
%endif
9a28b9d
%else
45296db
%global docs_config --enable-docs=prebuilt
0fc2adf
%endif
0fc2adf
da32dac
# Enable pie as configure defaults to disabling it
da32dac
%if %{pie_supported}
fbc37f4
%global pie_config --enable-pie
da32dac
%else
fbc37f4
%global pie_config --disable-pie
da32dac
%endif
9a28b9d
bb598bf
4c09063
%if %{with_java}
4c09063
%global java_config --with-java=%{_jvmdir}/java
4c09063
%else
4c09063
%global java_config --without-java
4c09063
%endif
9a28b9d
af87ab6
%if %{with_python3}
af87ab6
%global python3_config --with-python3
af87ab6
%else
af87ab6
%global python3_config --without-python3
af87ab6
%endif
af87ab6
%if %{with_python2_probes}
af87ab6
%global python2_probes_config --with-python2-probes
af87ab6
%else
af87ab6
%global python2_probes_config --without-python2-probes
af87ab6
%endif
af87ab6
%if %{with_python3_probes}
af87ab6
%global python3_probes_config --with-python3-probes
af87ab6
%else
af87ab6
%global python3_probes_config --without-python3-probes
af87ab6
%endif
af87ab6
df927c6
%if %{with_virthost}
df927c6
%global virt_config --enable-virt
df927c6
%else
df927c6
%global virt_config --disable-virt
df927c6
%endif
df927c6
bf72bab
%if %{with_dracut}
9b30916
%global dracut_config --with-dracutstap=%{dracutstap} --with-dracutbindir=%{dracutbindir}
bf72bab
%else
f5fc604
%global dracut_config %{nil}
bf72bab
%endif
bf72bab
74698f2
%if %{with_httpd}
74698f2
%global httpd_config --enable-httpd
74698f2
%else
74698f2
%global httpd_config --disable-httpd
74698f2
%endif
74698f2
d4c7fab
%if %{with_bpf}
d4c7fab
%global bpf_config --with-bpf
d4c7fab
%else
d4c7fab
%global bpf_config --without-bpf
d4c7fab
%endif
d4c7fab
f5fc604
# We don't ship compileworthy python code, just oddball samples
f5fc604
%global py_auto_byte_compile 0
eab6028
d4c7fab
%configure %{?elfutils_config} %{dyninst_config} %{sqlite_config} %{crash_config} %{docs_config} %{pie_config} %{rpm_config} %{java_config} %{virt_config} %{dracut_config} %{python3_config} %{python2_probes_config} %{python3_probes_config} %{httpd_config} %{bpf_config} --disable-silent-rules --with-extra-version="rpm %{version}-%{release}"
fe18a23
make %{?_smp_mflags}
17e3a21
79da85a
%if %{with_emacsvim}
79da85a
%{_emacs_bytecompile} emacs/systemtap-mode.el
79da85a
%endif
79da85a
8d6b47e
%install
8d6b47e
make DESTDIR=$RPM_BUILD_ROOT install
345da77
%find_lang %{name}
d405e5c
for dir in $(ls -1d $RPM_BUILD_ROOT%{_mandir}/{??,??_??}) ; do
d405e5c
    dir=$(echo $dir | sed -e "s|^$RPM_BUILD_ROOT||")
d405e5c
    lang=$(basename $dir)
d405e5c
    echo "%%lang($lang) $dir/man*/*" >> %{name}.lang
d405e5c
done
8d6b47e
55d389a
ln -s %{_datadir}/systemtap/examples
8d6b47e
9109ced
# Fix paths in the example scripts.
55d389a
find $RPM_BUILD_ROOT%{_datadir}/systemtap/examples -type f -name '*.stp' -print0 | xargs -0 sed -i -r -e '1s@^#!.+stap@#!%{_bindir}/stap@'
b04ba44
345da77
# To make rpmlint happy, remove any .gitignore files in the testsuite.
345da77
find testsuite -type f -name '.gitignore' -print0 | xargs -0 rm -f
345da77
f55661b
# Because "make install" may install staprun with whatever mode, the
0fc2adf
# post-processing programs rpmbuild runs won't be able to read it.
0fc2adf
# So, we change permissions so that they can read it.  We'll set the
f55661b
# permissions back to 04110 in the %files section below.
0fc2adf
chmod 755 $RPM_BUILD_ROOT%{_bindir}/staprun
0fc2adf
58e9517
#install the useful stap-prep script
58e9517
install -c -m 755 stap-prep $RPM_BUILD_ROOT%{_bindir}/stap-prep
58e9517
0fc2adf
# Copy over the testsuite
0fc2adf
cp -rp testsuite $RPM_BUILD_ROOT%{_datadir}/systemtap
8d6b47e
8d6b47e
# We want the manuals in the special doc dir, not the generic doc install dir.
bd5a7bb
# We build it in place and then move it away so it doesn't get installed
bd5a7bb
# twice. rpm can specify itself where the (versioned) docs go with the
bd5a7bb
# %doc directive.
8d6b47e
mkdir docs.installed
8d6b47e
mv $RPM_BUILD_ROOT%{_datadir}/doc/systemtap/*.pdf docs.installed/
45296db
%if %{with_docs}
e60cd5e
%if %{with_htmldocs}
eb90f4f
mv $RPM_BUILD_ROOT%{_datadir}/doc/systemtap/tapsets docs.installed/
fbc37f4
mv $RPM_BUILD_ROOT%{_datadir}/doc/systemtap/SystemTap_Beginners_Guide docs.installed/
fbc37f4
%endif
e60cd5e
%endif
17e3a21
45296db
install -D -m 644 macros.systemtap $RPM_BUILD_ROOT%{_rpmmacrodir}/macros.systemtap
45296db
5a059f5
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/stap-server
5a059f5
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/stap-server
43e806f
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/stap-server/.systemtap
5a059f5
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/stap-server
5a059f5
touch $RPM_BUILD_ROOT%{_localstatedir}/log/stap-server/log
5a059f5
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/cache/systemtap
5a059f5
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/systemtap
5a059f5
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d
5a059f5
install -m 644 initscript/logrotate.stap-server $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/stap-server
d4c7fab
d4c7fab
# If using systemd systemtap.service file, retain the old init script in %{_libexecdir} as a helper.
d4c7fab
%if %{with_systemd}
d4c7fab
mkdir -p $RPM_BUILD_ROOT%{_unitdir}
d4c7fab
touch $RPM_BUILD_ROOT%{_unitdir}/systemtap.service
d4c7fab
install -m 644 initscript/systemtap.service $RPM_BUILD_ROOT%{_unitdir}/systemtap.service
d4c7fab
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
d4c7fab
install -m 755 initscript/systemtap $RPM_BUILD_ROOT%{_sbindir}/systemtap-service
d4c7fab
%else
e29fbab
mkdir -p $RPM_BUILD_ROOT%{initdir}
e29fbab
install -m 755 initscript/systemtap $RPM_BUILD_ROOT%{initdir}
d4c7fab
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
d4c7fab
ln -sf %{initdir}/systemtap $RPM_BUILD_ROOT%{_sbindir}/systemtap-service
d4c7fab
# TODO CHECK CORRECTNESS: symlink %{_sbindir}/systemtap-service to %{initdir}/systemtap
d4c7fab
%endif
d4c7fab
43e806f
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/systemtap
43e806f
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/systemtap/conf.d
43e806f
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/systemtap/script.d
43e806f
install -m 644 initscript/config.systemtap $RPM_BUILD_ROOT%{_sysconfdir}/systemtap/config
d4c7fab
79da85a
%if %{with_systemd}
5a059f5
mkdir -p $RPM_BUILD_ROOT%{_unitdir}
5a059f5
touch $RPM_BUILD_ROOT%{_unitdir}/stap-server.service
5a059f5
install -m 644 stap-server.service $RPM_BUILD_ROOT%{_unitdir}/stap-server.service
a71f27a
mkdir -p $RPM_BUILD_ROOT%{_tmpfilesdir}
a71f27a
install -m 644 stap-server.conf $RPM_BUILD_ROOT%{_tmpfilesdir}/stap-server.conf
5a059f5
%else
e29fbab
install -m 755 initscript/stap-server $RPM_BUILD_ROOT%{initdir}
fbc37f4
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/stap-server/conf.d
fbc37f4
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
fbc37f4
install -m 644 initscript/config.stap-server $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/stap-server
5a059f5
%endif
fbc37f4
79da85a
%if %{with_emacsvim}
79da85a
mkdir -p $RPM_BUILD_ROOT%{_emacs_sitelispdir}
79da85a
install -p -m 644 emacs/systemtap-mode.el* $RPM_BUILD_ROOT%{_emacs_sitelispdir}
79da85a
mkdir -p $RPM_BUILD_ROOT%{_emacs_sitestartdir}
79da85a
install -p -m 644 emacs/systemtap-init.el $RPM_BUILD_ROOT%{_emacs_sitestartdir}/systemtap-init.el
79da85a
for subdir in ftdetect ftplugin indent syntax
79da85a
do
79da85a
    mkdir -p $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/$subdir
79da85a
    install -p -m 644 vim/$subdir/*.vim $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/$subdir
79da85a
done
79da85a
%endif
79da85a
e29fbab
%if %{with_virtguest}
e29fbab
   mkdir -p $RPM_BUILD_ROOT%{udevrulesdir}
e29fbab
   %if %{with_systemd}
e29fbab
      install -p -m 644 staprun/guest/99-stapsh.rules $RPM_BUILD_ROOT%{udevrulesdir}
e29fbab
      mkdir -p $RPM_BUILD_ROOT%{_unitdir}
e29fbab
      install -p -m 644 staprun/guest/stapsh@.service $RPM_BUILD_ROOT%{_unitdir}
e29fbab
   %else
e29fbab
      install -p -m 644 staprun/guest/99-stapsh-init.rules $RPM_BUILD_ROOT%{udevrulesdir}
e29fbab
      install -p -m 755 staprun/guest/stapshd $RPM_BUILD_ROOT%{initdir}
e29fbab
      mkdir -p $RPM_BUILD_ROOT%{_libexecdir}/systemtap
e29fbab
      install -p -m 755 staprun/guest/stapsh-daemon $RPM_BUILD_ROOT%{_libexecdir}/systemtap
e29fbab
      mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/modules
e29fbab
      # Technically, this is only needed for RHEL5, in which the MODULE_ALIAS is missing, but
e29fbab
      # it does no harm in RHEL6 as well
e29fbab
      install -p -m 755 staprun/guest/virtio_console.modules $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/modules
e29fbab
   %endif
e29fbab
%endif
79da85a
a11507d
%if %{with_dracut}
a11507d
   mkdir -p $RPM_BUILD_ROOT%{dracutstap}
a11507d
   install -p -m 755 initscript/99stap/module-setup.sh $RPM_BUILD_ROOT%{dracutstap}
9b30916
   install -p -m 755 initscript/99stap/install $RPM_BUILD_ROOT%{dracutstap}
9b30916
   install -p -m 755 initscript/99stap/check $RPM_BUILD_ROOT%{dracutstap}
a11507d
   install -p -m 755 initscript/99stap/start-staprun.sh $RPM_BUILD_ROOT%{dracutstap}
a11507d
   touch $RPM_BUILD_ROOT%{dracutstap}/params.conf
a11507d
%endif
a11507d
3a4041d
%if %{with_specific_python}
3a4041d
# Some files got ambiguous python shebangs, we fix them after everything else is done
3a4041d
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{python3_sitearch} %{buildroot}%{_bindir}/*
3a4041d
%endif
3a4041d
9a28b9d
%pre runtime
38eab87
getent group stapusr >/dev/null || groupadd -f -g 156 -r stapusr
38eab87
getent group stapsys >/dev/null || groupadd -f -g 157 -r stapsys
38eab87
getent group stapdev >/dev/null || groupadd -f -g 158 -r stapdev
0fc2adf
exit 0
0fc2adf
fbc37f4
%pre server
38eab87
getent group stap-server >/dev/null || groupadd -f -g 155 -r stap-server
58e9517
getent passwd stap-server >/dev/null || \
43e806f
  useradd -c "Systemtap Compile Server" -u 155 -g stap-server -d %{_localstatedir}/lib/stap-server -r -s /sbin/nologin stap-server 2>/dev/null || \
43e806f
  useradd -c "Systemtap Compile Server" -g stap-server -d %{_localstatedir}/lib/stap-server -r -s /sbin/nologin stap-server
43e806f
e58b858
%pre testsuite
e58b858
getent passwd stapusr >/dev/null || \
e58b858
    useradd -c "Systemtap 'stapusr' User" -g stapusr -r -s /sbin/nologin stapusr
e58b858
getent passwd stapsys >/dev/null || \
e58b858
    useradd -c "Systemtap 'stapsys' User" -g stapsys -G stapusr -r -s /sbin/nologin stapsys
e58b858
getent passwd stapdev >/dev/null || \
e58b858
    useradd -c "Systemtap 'stapdev' User" -g stapdev -G stapusr -r -s /sbin/nologin stapdev
e58b858
exit 0
e58b858
43e806f
%post server
43e806f
2671921
# We have some duplication between the %files listings for the
2671921
# ~stap-server directories and the explicit mkdir/chown/chmod bits
2671921
# here.  Part of the reason may be that a preexisting stap-server
2671921
# account may well be placed somewhere other than
2671921
# %{_localstatedir}/lib/stap-server, but we'd like their permissions
2671921
# set similarly.
2671921
2671921
test -e ~stap-server && chmod 750 ~stap-server
1908f80
1908f80
if [ ! -f ~stap-server/.systemtap/rc ]; then
1908f80
  mkdir -p ~stap-server/.systemtap
1908f80
  chown stap-server:stap-server ~stap-server/.systemtap
967e911
  # PR16276: guess at a reasonable number for a default --rlimit-nproc
f2eed09
  numcpu=`/usr/bin/getconf _NPROCESSORS_ONLN`
f2eed09
  if [ -z "$numcpu" -o "$numcpu" -lt 1 ]; then numcpu=1; fi
f2eed09
  nproc=`expr $numcpu \* 30`
f2eed09
  echo "--rlimit-as=614400000 --rlimit-cpu=60 --rlimit-nproc=$nproc --rlimit-stack=1024000 --rlimit-fsize=51200000" > ~stap-server/.systemtap/rc
1908f80
  chown stap-server:stap-server ~stap-server/.systemtap/rc
1908f80
fi
fbc37f4
58e9517
test -e %{_localstatedir}/log/stap-server/log || {
58e9517
     touch %{_localstatedir}/log/stap-server/log
2671921
     chmod 644 %{_localstatedir}/log/stap-server/log
58e9517
     chown stap-server:stap-server %{_localstatedir}/log/stap-server/log
58e9517
}
be9ea9f
# Prepare the service
79da85a
%if %{with_systemd}
be9ea9f
     # Note, Fedora policy doesn't allow network services enabled by default
be9ea9f
     # /bin/systemctl enable stap-server.service >/dev/null 2>&1 || :
be9ea9f
     /bin/systemd-tmpfiles --create %{_tmpfilesdir}/stap-server.conf >/dev/null 2>&1 || :
5a059f5
%else
5a059f5
    /sbin/chkconfig --add stap-server
5a059f5
%endif
fbc37f4
exit 0
fbc37f4
37ef790
%triggerin client -- systemtap-server
37ef790
if test -e ~stap-server/.systemtap/ssl/server/stap.cert; then
37ef790
   # echo Authorizing ssl-peer/trusted-signer certificate for local systemtap-server
43e806f
   %{_libexecdir}/systemtap/stap-authorize-cert ~stap-server/.systemtap/ssl/server/stap.cert %{_sysconfdir}/systemtap/ssl/client >/dev/null
43e806f
   %{_libexecdir}/systemtap/stap-authorize-cert ~stap-server/.systemtap/ssl/server/stap.cert %{_sysconfdir}/systemtap/staprun >/dev/null
37ef790
fi
37ef790
exit 0
37ef790
# XXX: corresponding %triggerun?
37ef790
fbc37f4
%preun server
fbc37f4
# Check that this is the actual deinstallation of the package, as opposed to
fbc37f4
# just removing the old package on upgrade.
fbc37f4
if [ $1 = 0 ] ; then
79da85a
    %if %{with_systemd}
5a059f5
       /bin/systemctl --no-reload disable stap-server.service >/dev/null 2>&1 || :
5a059f5
       /bin/systemctl stop stap-server.service >/dev/null 2>&1 || :
5a059f5
    %else
5a059f5
        /sbin/service stap-server stop >/dev/null 2>&1
a11507d
        /sbin/chkconfig --del stap-server
5a059f5
    %endif
fbc37f4
fi
fbc37f4
exit 0
fbc37f4
fbc37f4
%postun server
fbc37f4
# Check whether this is an upgrade of the package.
fbc37f4
# If so, restart the service if it's running
fbc37f4
if [ "$1" -ge "1" ] ; then
79da85a
    %if %{with_systemd}
be9ea9f
        /bin/systemctl condrestart stap-server.service >/dev/null 2>&1 || :
5a059f5
    %else
5a059f5
        /sbin/service stap-server condrestart >/dev/null 2>&1 || :
5a059f5
    %endif
fbc37f4
fi
fbc37f4
exit 0
fbc37f4
cfae4d4
%post initscript
79da85a
%if %{with_systemd}
a11507d
    /bin/systemctl enable systemtap.service >/dev/null 2>&1 || :
5a059f5
%else
5a059f5
    /sbin/chkconfig --add systemtap
5a059f5
%endif
cfae4d4
exit 0
cfae4d4
cfae4d4
%preun initscript
fbc37f4
# Check that this is the actual deinstallation of the package, as opposed to
fbc37f4
# just removing the old package on upgrade.
fbc37f4
if [ $1 = 0 ] ; then
79da85a
    %if %{with_systemd}
a11507d
        /bin/systemctl --no-reload disable systemtap.service >/dev/null 2>&1 || :
a11507d
        /bin/systemctl stop systemtap.service >/dev/null 2>&1 || :
5a059f5
    %else
5a059f5
        /sbin/service systemtap stop >/dev/null 2>&1
a11507d
        /sbin/chkconfig --del systemtap
5a059f5
    %endif
fbc37f4
fi
fbc37f4
exit 0
fbc37f4
fbc37f4
%postun initscript
fbc37f4
# Check whether this is an upgrade of the package.
fbc37f4
# If so, restart the service if it's running
fbc37f4
if [ "$1" -ge "1" ] ; then
79da85a
    %if %{with_systemd}
a11507d
        /bin/systemctl condrestart systemtap.service >/dev/null 2>&1 || :
5a059f5
    %else
5a059f5
        /sbin/service systemtap condrestart >/dev/null 2>&1 || :
5a059f5
    %endif
fbc37f4
fi
cfae4d4
exit 0
cfae4d4
e29fbab
%post runtime-virtguest
e29fbab
%if %{with_systemd}
e29fbab
   # Start services if there are ports present
e29fbab
   if [ -d /dev/virtio-ports ]; then
e29fbab
      (find /dev/virtio-ports -iname 'org.systemtap.stapsh.[0-9]*' -type l \
e29fbab
         | xargs -n 1 basename \
e29fbab
         | xargs -n 1 -I {} /bin/systemctl start stapsh@{}.service) >/dev/null 2>&1 || :
e29fbab
   fi
e29fbab
%else
e29fbab
   /sbin/chkconfig --add stapshd
e29fbab
   /sbin/chkconfig stapshd on
e29fbab
   /sbin/service stapshd start >/dev/null 2>&1 || :
e29fbab
%endif
e29fbab
exit 0
e29fbab
e29fbab
%preun runtime-virtguest
e29fbab
# Stop service if this is an uninstall rather than an upgrade
e29fbab
if [ $1 = 0 ]; then
e29fbab
   %if %{with_systemd}
e29fbab
      # We need to stop all stapsh services. Because they are instantiated from
e29fbab
      # a template service file, we can't simply call disable. We need to find
e29fbab
      # all the running ones and stop them all individually
e29fbab
      for service in `/bin/systemctl --full | grep stapsh@ | cut -d ' ' -f 1`; do
e29fbab
         /bin/systemctl stop $service >/dev/null 2>&1 || :
e29fbab
      done
e29fbab
   %else
e29fbab
      /sbin/service stapshd stop >/dev/null 2>&1
e29fbab
      /sbin/chkconfig --del stapshd
e29fbab
   %endif
e29fbab
fi
e29fbab
exit 0
e29fbab
e29fbab
%postun runtime-virtguest
e29fbab
# Restart service if this is an upgrade rather than an uninstall
e29fbab
if [ "$1" -ge "1" ]; then
e29fbab
   %if %{with_systemd}
e29fbab
      # We need to restart all stapsh services. Because they are instantiated from
e29fbab
      # a template service file, we can't simply call restart. We need to find
e29fbab
      # all the running ones and restart them all individually
e29fbab
      for service in `/bin/systemctl --full | grep stapsh@ | cut -d ' ' -f 1`; do
e29fbab
         /bin/systemctl condrestart $service >/dev/null 2>&1 || :
e29fbab
      done
e29fbab
   %else
e29fbab
      /sbin/service stapshd condrestart >/dev/null 2>&1
e29fbab
   %endif
e29fbab
fi
e29fbab
exit 0
e29fbab
d4c7fab
%if %{with_python3}
8564a9f
%if %{with_systemd}
8564a9f
%preun exporter
8564a9f
if [ $1 = 0 ] ; then
8564a9f
  /bin/systemctl stop stap-exporter.service >/dev/null 2>&1 || :
8564a9f
  /bin/systemctl disable stap-exporter.service >/dev/null 2>&1 || :
8564a9f
fi
8564a9f
exit 0
d4c7fab
8564a9f
%postun exporter
8564a9f
# Restart service if this is an upgrade rather than an uninstall
8564a9f
if [ "$1" -ge "1" ]; then
8564a9f
   /bin/systemctl condrestart stap-exporter >/dev/null 2>&1 || :
8564a9f
fi
8564a9f
exit 0
8564a9f
%endif
8564a9f
%endif
d4c7fab
bb598bf
%post
bb598bf
# Remove any previously-built uprobes.ko materials
43e806f
(make -C %{_datadir}/systemtap/runtime/uprobes clean) >/dev/null 2>&1 || true
02c9a3a
(/sbin/rmmod uprobes) >/dev/null 2>&1 || true
bb598bf
bb598bf
%preun
bb598bf
# Ditto
43e806f
(make -C %{_datadir}/systemtap/runtime/uprobes clean) >/dev/null 2>&1 || true
02c9a3a
(/sbin/rmmod uprobes) >/dev/null 2>&1 || true
cfae4d4
9da5ca9
# ------------------------------------------------------------------------
9da5ca9
4c09063
%if %{with_java}
4c09063
6853850
%triggerin runtime-java -- java-1.8.0-openjdk, java-1.7.0-openjdk, java-1.6.0-openjdk
4c09063
for f in %{_libexecdir}/systemtap/libHelperSDT_*.so; do
294a0af
    %ifarch %{ix86}
294a0af
	arch=i386
0c19749
    %else
0c19749
        arch=`basename $f | cut -f2 -d_ | cut -f1 -d.`
0c19749
    %endif
4c09063
    for archdir in %{_jvmdir}/*openjdk*/jre/lib/${arch}; do
1e984e9
	 if [ -d ${archdir} ]; then
967e911
            ln -sf %{_libexecdir}/systemtap/libHelperSDT_${arch}.so ${archdir}/libHelperSDT_${arch}.so
967e911
            ln -sf %{_libexecdir}/systemtap/HelperSDT.jar ${archdir}/../ext/HelperSDT.jar
1e984e9
	 fi
4c09063
    done
4c09063
done
4c09063
6853850
%triggerun runtime-java -- java-1.8.0-openjdk, java-1.7.0-openjdk, java-1.6.0-openjdk
4c09063
for f in %{_libexecdir}/systemtap/libHelperSDT_*.so; do
294a0af
    %ifarch %{ix86}
294a0af
	arch=i386
0c19749
    %else
0c19749
        arch=`basename $f | cut -f2 -d_ | cut -f1 -d.`
0c19749
    %endif
4c09063
    for archdir in %{_jvmdir}/*openjdk*/jre/lib/${arch}; do
4c09063
        rm -f ${archdir}/libHelperSDT_${arch}.so
4c09063
        rm -f ${archdir}/../ext/HelperSDT.jar
4c09063
    done
4c09063
done
4c09063
6853850
%triggerpostun runtime-java -- java-1.8.0-openjdk, java-1.7.0-openjdk, java-1.6.0-openjdk
4c09063
# Restore links for any JDKs remaining after a package removal:
4c09063
for f in %{_libexecdir}/systemtap/libHelperSDT_*.so; do
294a0af
    %ifarch %{ix86}
294a0af
	arch=i386
0c19749
    %else
0c19749
        arch=`basename $f | cut -f2 -d_ | cut -f1 -d.`
0c19749
    %endif
4c09063
    for archdir in %{_jvmdir}/*openjdk*/jre/lib/${arch}; do
1e984e9
	 if [ -d ${archdir} ]; then
967e911
            ln -sf %{_libexecdir}/systemtap/libHelperSDT_${arch}.so ${archdir}/libHelperSDT_${arch}.so
967e911
            ln -sf %{_libexecdir}/systemtap/HelperSDT.jar ${archdir}/../ext/HelperSDT.jar
1e984e9
	 fi
4c09063
    done
4c09063
done
4c09063
4c09063
# XXX: analogous support for other types of JRE/JDK??
4c09063
4c09063
%endif
4c09063
4c09063
# ------------------------------------------------------------------------
4c09063
d4c7fab
%files
9da5ca9
# The master "systemtap" rpm doesn't include any files.
9da5ca9
43e806f
%files server -f systemtap.lang
9da5ca9
%{_bindir}/stap-server
43e806f
%dir %{_libexecdir}/systemtap
43e806f
%{_libexecdir}/systemtap/stap-serverd
43e806f
%{_libexecdir}/systemtap/stap-start-server
43e806f
%{_libexecdir}/systemtap/stap-stop-server
43e806f
%{_libexecdir}/systemtap/stap-gen-cert
43e806f
%{_libexecdir}/systemtap/stap-sign-module
43e806f
%{_libexecdir}/systemtap/stap-authorize-cert
43e806f
%{_libexecdir}/systemtap/stap-env
d8f8f7f
%{_mandir}/man7/error*
9da5ca9
%{_mandir}/man7/stappaths.7*
41ddbf9
%{_mandir}/man7/warning*
9da5ca9
%{_mandir}/man8/stap-server.8*
79da85a
%if %{with_systemd}
5a059f5
%{_unitdir}/stap-server.service
a71f27a
%{_tmpfilesdir}/stap-server.conf
5a059f5
%else
e29fbab
%{initdir}/stap-server
9da5ca9
%dir %{_sysconfdir}/stap-server/conf.d
9da5ca9
%config(noreplace) %{_sysconfdir}/sysconfig/stap-server
5d868b5
%endif
5d868b5
%config(noreplace) %{_sysconfdir}/logrotate.d/stap-server
5a059f5
%dir %{_sysconfdir}/stap-server
af76171
%dir %attr(0750,stap-server,stap-server) %{_localstatedir}/lib/stap-server
43e806f
%dir %attr(0700,stap-server,stap-server) %{_localstatedir}/lib/stap-server/.systemtap
9da5ca9
%dir %attr(0755,stap-server,stap-server) %{_localstatedir}/log/stap-server
9da5ca9
%ghost %config(noreplace) %attr(0644,stap-server,stap-server) %{_localstatedir}/log/stap-server/log
9da5ca9
%ghost %attr(0755,stap-server,stap-server) %{_localstatedir}/run/stap-server
f6cdb54
%doc README README.unprivileged AUTHORS NEWS 
95af828
%{!?_licensedir:%global license %%doc}
f6cdb54
%license COPYING
17e3a21
17e3a21
43e806f
%files devel -f systemtap.lang
17e3a21
%{_bindir}/stap
58e9517
%{_bindir}/stap-prep
396e027
%{_bindir}/stap-report
43e806f
%dir %{_datadir}/systemtap
43e806f
%{_datadir}/systemtap/runtime
43e806f
%{_datadir}/systemtap/tapset
9da5ca9
%{_mandir}/man1/stap.1*
daf2754
%{_mandir}/man1/stap-prep.1*
396e027
%{_mandir}/man1/stap-report.1*
d8f8f7f
%{_mandir}/man7/error*
9da5ca9
%{_mandir}/man7/stappaths.7*
41ddbf9
%{_mandir}/man7/warning*
f6cdb54
%doc README README.unprivileged AUTHORS NEWS 
95af828
%{!?_licensedir:%global license %%doc}
f6cdb54
%license COPYING
4c09063
%if %{with_java}
4c09063
%dir %{_libexecdir}/systemtap
4c09063
%{_libexecdir}/systemtap/libHelperSDT_*.so
4c09063
%endif
9a28b9d
%if %{with_bundled_elfutils}
43e806f
%dir %{_libdir}/systemtap
43e806f
%{_libdir}/systemtap/lib*.so*
17e3a21
%endif
79da85a
%if %{with_emacsvim}
79da85a
%{_emacs_sitelispdir}/*.el*
79da85a
%{_emacs_sitestartdir}/systemtap-init.el
79da85a
%{_datadir}/vim/vimfiles/*/*.vim
79da85a
%endif
e9267ab
# Notice that the stap-resolve-module-function.py file is used by
e9267ab
# *both* the python2 and python3 subrpms.  Both subrpms use that same
e9267ab
# python script to help list python probes.
9dd4846
%if %{with_python3_probes} || %{with_python2_probes}
9dd4846
%{_libexecdir}/systemtap/python/stap-resolve-module-function.py
9dd4846
%exclude %{_libexecdir}/systemtap/python/stap-resolve-module-function.py?
9dd4846
%endif
17e3a21
4041ad6
43e806f
%files runtime -f systemtap.lang
f55661b
%attr(4110,root,stapusr) %{_bindir}/staprun
345da77
%{_bindir}/stapsh
94f2023
%{_bindir}/stap-merge
396e027
%{_bindir}/stap-report
4041ad6
%if %{with_dyninst}
4041ad6
%{_bindir}/stapdyn
4041ad6
%endif
3de1952
%if %{with_bpf}
3de1952
%{_bindir}/stapbpf
3de1952
%endif
43e806f
%dir %{_libexecdir}/systemtap
43e806f
%{_libexecdir}/systemtap/stapio
43e806f
%{_libexecdir}/systemtap/stap-authorize-cert
a811d54
%if %{with_crash}
43e806f
%dir %{_libdir}/systemtap
43e806f
%{_libdir}/systemtap/staplog.so*
a811d54
%endif
396e027
%{_mandir}/man1/stap-report.1*
d8f8f7f
%{_mandir}/man7/error*
a811d54
%{_mandir}/man7/stappaths.7*
41ddbf9
%{_mandir}/man7/warning*
6a8eae6
%{_mandir}/man8/stapsh.8*
bd5a7bb
%{_mandir}/man8/staprun.8*
6a8eae6
%if %{with_dyninst}
6a8eae6
%{_mandir}/man8/stapdyn.8*
6a8eae6
%endif
3de1952
%if %{with_bpf}
3de1952
%{_mandir}/man8/stapbpf.8*
3de1952
%endif
f6cdb54
%doc README README.security AUTHORS NEWS 
95af828
%{!?_licensedir:%global license %%doc}
f6cdb54
%license COPYING
17e3a21
0fc2adf
43e806f
%files client -f systemtap.lang
55d389a
%doc README README.unprivileged AUTHORS NEWS
55d389a
%{_datadir}/systemtap/examples
95af828
%{!?_licensedir:%global license %%doc}
f6cdb54
%license COPYING
9da5ca9
%doc docs.installed/*.pdf
45296db
%if %{with_docs}
e60cd5e
%if %{with_htmldocs}
9da5ca9
%doc docs.installed/tapsets/*.html
9da5ca9
%doc docs.installed/SystemTap_Beginners_Guide
9da5ca9
%endif
e60cd5e
%endif
9da5ca9
%{_bindir}/stap
9da5ca9
%{_bindir}/stap-prep
396e027
%{_bindir}/stap-report
9da5ca9
%{_mandir}/man1/stap.1*
daf2754
%{_mandir}/man1/stap-prep.1*
9da5ca9
%{_mandir}/man1/stap-merge.1*
396e027
%{_mandir}/man1/stap-report.1*
d55de91
%{_mandir}/man1/stapref.1*
9da5ca9
%{_mandir}/man3/*
d8f8f7f
%{_mandir}/man7/error*
a811d54
%{_mandir}/man7/stappaths.7*
41ddbf9
%{_mandir}/man7/warning*
43e806f
%dir %{_datadir}/systemtap
43e806f
%{_datadir}/systemtap/tapset
9da5ca9
0fc2adf
cfae4d4
cfae4d4
%files initscript
d4c7fab
%if %{with_systemd}
d4c7fab
%{_unitdir}/systemtap.service
d4c7fab
%{_sbindir}/systemtap-service
d4c7fab
%else
e29fbab
%{initdir}/systemtap
d4c7fab
%{_sbindir}/systemtap-service
d4c7fab
%endif
cfae4d4
%dir %{_sysconfdir}/systemtap
cfae4d4
%dir %{_sysconfdir}/systemtap/conf.d
cfae4d4
%dir %{_sysconfdir}/systemtap/script.d
cfae4d4
%config(noreplace) %{_sysconfdir}/systemtap/config
cfae4d4
%dir %{_localstatedir}/cache/systemtap
94f2023
%ghost %{_localstatedir}/run/systemtap
d4c7fab
%{_mandir}/man8/systemtap-service.8*
a11507d
%if %{with_dracut}
a11507d
   %dir %{dracutstap}
a11507d
   %{dracutstap}/*
a11507d
%endif
cfae4d4
9da5ca9
4c09063
%files sdt-devel
9da5ca9
%{_bindir}/dtrace
9da5ca9
%{_includedir}/sys/sdt.h
9da5ca9
%{_includedir}/sys/sdt-config.h
9da5ca9
%{_mandir}/man1/dtrace.1*
45296db
%{_rpmmacrodir}/macros.systemtap
f6cdb54
%doc README AUTHORS NEWS 
95af828
%{!?_licensedir:%global license %%doc}
f6cdb54
%license COPYING
9da5ca9
9da5ca9
9da5ca9
%files testsuite
43e806f
%dir %{_datadir}/systemtap
43e806f
%{_datadir}/systemtap/testsuite
9da5ca9
9da5ca9
4c09063
%if %{with_java}
4c09063
%files runtime-java
4c09063
%dir %{_libexecdir}/systemtap
4c09063
%{_libexecdir}/systemtap/libHelperSDT_*.so
4c09063
%{_libexecdir}/systemtap/HelperSDT.jar
4c09063
%{_libexecdir}/systemtap/stapbm
4c09063
%endif
4c09063
af87ab6
%if %{with_python2_probes}
af87ab6
%files runtime-python2
d4c7fab
%{python_sitearch}/HelperSDT
d4c7fab
%{python_sitearch}/HelperSDT-*.egg-info
af87ab6
%endif
af87ab6
%if %{with_python3_probes}
af87ab6
%files runtime-python3
9dd4846
%{python3_sitearch}/HelperSDT
9dd4846
%{python3_sitearch}/HelperSDT-*.egg-info
af87ab6
%endif
af87ab6
e29fbab
%if %{with_virthost}
e29fbab
%files runtime-virthost
e29fbab
%{_mandir}/man1/stapvirt.1*
e29fbab
%{_bindir}/stapvirt
e29fbab
%endif
e29fbab
e29fbab
%if %{with_virtguest}
e29fbab
%files runtime-virtguest
e29fbab
%if %{with_systemd}
e29fbab
   %{udevrulesdir}/99-stapsh.rules
e29fbab
   %{_unitdir}/stapsh@.service
e29fbab
%else
e29fbab
   %{udevrulesdir}/99-stapsh-init.rules
e29fbab
   %dir %{_libexecdir}/systemtap
e29fbab
   %{_libexecdir}/systemtap/stapsh-daemon
e29fbab
   %{initdir}/stapshd
e29fbab
   %{_sysconfdir}/sysconfig/modules/virtio_console.modules
e29fbab
%endif
e29fbab
%endif
4c09063
d4c7fab
%if %{with_python3}
8564a9f
%files exporter
8564a9f
%{_sysconfdir}/stap-exporter
8564a9f
%{_sysconfdir}/sysconfig/stap-exporter
d4c7fab
%{_unitdir}/stap-exporter.service
d4c7fab
%{_mandir}/man8/stap-exporter.8*
8564a9f
%{_sbindir}/stap-exporter
d4c7fab
%endif
d4c7fab
9da5ca9
# ------------------------------------------------------------------------
cfae4d4
1a86220
# Future new-release entries should be of the form
1a86220
# * DDD MMM DD YYYY YOURNAME <YOUREMAIL> - V-R
1a86220
# - Upstream release, see wiki page below for detailed notes.
1a86220
#   http://sourceware.org/systemtap/wiki/SystemTapReleases
1a86220
a43fb42
# PRERELEASE
3f6623d
%changelog
ea39b8c
* Tue Aug 27 2019 Aaron Merey <amerey@redhat.com> - 4.2-0.20190827
ea39b8c
- PR23879,PR24875 - fix task finder vma on f29
ea39b8c
- PR24904 - support linux 5.2 stacktrace.c changes
ea39b8c
- PR24904 - support linux 5.2 stacktrace.c changes with -DDEBUG_UNWIND too
ea39b8c
3a4041d
* Wed Aug 07 2019 Frank Ch. Eigler <fche@redhat.com> - 4.2-0.20190807gitebfc300ec2ad
3a4041d
- Automated weekly rawhide release
3a4041d
- Applied spec changes from upstream git
3a4041d
0ee54e3
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.2-0.20190619git47c3f6c60174
0ee54e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
0ee54e3
49549bc
* Tue Jun 18 2019 Frank Ch. Eigler <fche@redhat.com> - 4.2-0.20190618git47c3f6c60174
49549bc
- Automated weekly rawhide release
49549bc
- Applied spec changes from upstream git
49549bc
f2ca371
* Thu Jun 13 2019 Frank Ch. Eigler <fche@redhat.com> - 4.2-0.20190613git2d77f531a5d1
f2ca371
- Automated weekly rawhide release
f2ca371
- Applied spec changes from upstream git
f2ca371
b2c2629
* Mon Jun 10 22:13:24 CET 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.2-0.20190606git8b868f3dd030
b2c2629
- Rebuild for RPM 4.15
b2c2629
990fc26
* Mon Jun 10 15:42:06 CET 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.2-0.20190605git8b868f3dd030
990fc26
- Rebuild for RPM 4.15
990fc26
bb12cb8
* Tue Jun 04 2019 Stan Cox <scox@redhat.com> - 4.2-0.20190604git8b868f3dd030
bb12cb8
- Rebuild for dyninst 10.1.0
bb12cb8
91921b7
* Mon May 13 2019 Frank Ch. Eigler <fche@redhat.com> - 4.2-0.20190513git8b868f3dd030
91921b7
- Automated weekly rawhide release
91921b7
- Applied spec changes from upstream git
91921b7
Serhei Makarov a6724f2
* Tue May 07 2019 Serguei Makarov <smakarov@redhat.com> - 4.1-1
Serhei Makarov 1a31851
- Upstream release.
3f6623d
227f312
* Sat Oct 13 2018 Frank Ch. Eigler <fche@redhat.com> - 4.0-1
227f312
- Upstream release.
4919b3d
45296db
* Thu Jun 07 2018 Frank Ch. Eigler <fche@redhat.com> - 3.3-1
45296db
- Upstream release.
fae7c94
3de1952
* Wed Oct 18 2017 Frank Ch. Eigler <fche@redhat.com> - 3.2-1
3de1952
- Upstream release.
2a9b5aa
a43fb42
* Fri Feb 17 2017 Frank Ch. Eigler <fche@redhat.com> - 3.1-1
a43fb42
- Upstream release.
54700be
479fa9d
* Sun Mar 27 2016 Frank Ch. Eigler <fche@redhat.com> - 3.0-1
434a97a
- Upstream release.
984a376
434a97a
* Thu Oct 08 2015 Frank Ch. Eigler <fche@redhat.com> - 2.9-1
434a97a
- Upstream release.
8a23a84
ccc2d44
* Wed Jun 17 2015 Abegail Jakop <ajakop@redhat.com> - 2.8-1
ccc2d44
- Upstream release.
2dd5717
4bd4161
* Wed Feb 18 2015 Frank Ch. Eigler <fche@redhat.com> - 2.7-1
4bd4161
- Upstream release.
95af828
d1a1254
* Fri Sep 05 2014 Josh Stone <jistone@redhat.com> - 2.6-1
d1a1254
- Upstream release.
5adfe23
f6cdb54
* Mon Jul 07 2014 Josh Stone <jistone@redhat.com>
9be3495
- Flip with_dyninst to an %%ifarch whitelist.
b741c6c
cb5ee59
* Wed Apr 30 2014 Jonathan Lebon <jlebon@redhat.com> - 2.5-1
f6cdb54
- Upstream release.
7621fdd
f6cdb54
* Thu Feb 13 2014 Lukas Berk <lberk@redhat.com>
f6cdb54
- Add directory checks for runtime-java sym links
b10e8fd
f6cdb54
* Mon Jan 06 2014 Jonathan Lebon <jlebon@redhat.com>
f6cdb54
- Added dracut module to initscript package
f2eed09
8c4cdaf
* Wed Nov 06 2013 Frank Ch. Eigler <fche@redhat.com> - 2.4-1
8c4cdaf
- Upstream release.
a122a73
8c4cdaf
* Wed Oct 09 2013 Jonathan Lebon <jlebon@redhat.com>
8c4cdaf
- Added runtime-virthost and runtime-virtguest packages.
fa019a4
8c4cdaf
* Thu Jul 25 2013 Frank Ch. Eigler <fche@redhat.com> - 2.3-1
014b0a2
- Upstream release.
ef46aad
a60dd6d
* Thu May 16 2013 Frank Ch. Eigler <fche@redhat.com> - 2.2.1-1
a60dd6d
- Upstream release.
a60dd6d
4c09063
* Tue May 14 2013 Frank Ch. Eigler <fche@redhat.com> - 2.2-1
4c09063
- Upstream release.
3563380
c16d504
* Wed Feb 13 2013 Serguei Makarov <smakarov@redhat.com> - 2.1-1
c16d504
- Upstream release.
c16d504
4e1f190
* Tue Oct 09 2012 Josh Stone <jistone@redhat.com> - 2.0-1
4e1f190
- Upstream release.
4e1f190
43e806f
* Fri Jul 13 2012 Peter Robinson <pbrobinson@fedoraproject.org>
5033587
- Fix ifarch statement
17dcdfd
- use file based requires for glibc-devel on x86_64 so that we work in koji
5033587
1908f80
* Sun Jun 17 2012 Frank Ch. Eigler <fche@redhat.com> - 1.8-1
1908f80
- Upstream release.
1908f80
9da5ca9
* Wed Feb 01 2012 Frank Ch. Eigler <fche@redhat.com> - 1.7-1
9da5ca9
- Upstream release.
Mark Wielaard fc3b63d
1908f80
* Fri Jan 13 2012 David Smith <dsmith@redhat.com> - 1.6-2
1908f80
- Fixed /bin/mktemp require.
ce8cb3f
5ed4602
* Mon Jul 25 2011 Stan Cox <scox@redhat.com> - 1.6-1
5ed4602
- Upstream release.
5ed4602
ce2ce13
* Mon May 23 2011 Stan Cox <scox@redhat.com> - 1.5-1
64a1870
- Upstream release.
64a1870
2f20829
* Mon Jan 17 2011 Frank Ch. Eigler <fche@redhat.com> - 1.4-1
2f20829
- Upstream release.
2f20829
a811d54
* Wed Jul 21 2010 Josh Stone <jistone@redhat.com> - 1.3-1
a811d54
- Upstream release.
4e9440b
58e9517
* Mon Mar 22 2010 Frank Ch. Eigler <fche@redhat.com> - 1.2-1
58e9517
- Upstream release.
42cafcb
fbc37f4
* Mon Dec 21 2009 David Smith <dsmith@redhat.com> - 1.1-1
fbc37f4
- Upstream release.
2396d5c
3b30fa9
* Tue Sep 22 2009 Josh Stone <jistone@redhat.com> - 1.0-1
3b30fa9
- Upstream release.
3bb0149
8ba65ec
* Tue Aug  4 2009 Josh Stone <jistone@redhat.com> - 0.9.9-1
8ba65ec
- Upstream release.
bddf56c
bb598bf
* Thu Jun 11 2009 Josh Stone <jistone@redhat.com> - 0.9.8-1
bb598bf
- Upstream release.
bb598bf
c9e0110
* Thu Apr 23 2009 Josh Stone <jistone@redhat.com> - 0.9.7-1
c9e0110
- Upstream release.
c9e0110
da32dac
* Fri Mar 27 2009 Josh Stone <jistone@redhat.com> - 0.9.5-1
da32dac
- Upstream release.
da32dac
da32dac
* Wed Mar 18 2009 Will Cohen <wcohen@redhat.com> - 0.9-2
da32dac
- Add location of man pages.
78ad32e
cfae4d4
* Tue Feb 17 2009 Frank Ch. Eigler <fche@redhat.com> - 0.9-1
cfae4d4
- Upstream release.
cfae4d4
bd5a7bb
* Thu Nov 13 2008 Frank Ch. Eigler <fche@redhat.com> - 0.8-1
bd5a7bb
- Upstream release.
bd5a7bb
8d6b47e
* Tue Jul 15 2008 Frank Ch. Eigler <fche@redhat.com> - 0.7-1
8d6b47e
- Upstream release.
3b7ea67
4d4e1ff
* Fri Feb  1 2008 Frank Ch. Eigler <fche@redhat.com> - 0.6.1-3
8d6b47e
- Add zlib-devel to buildreq; missing from crash-devel
8d6b47e
- Process testsuite .stp files for #!stap->#!/usr/bin/stap
4d4e1ff
4854246
* Fri Jan 18 2008 Frank Ch. Eigler <fche@redhat.com> - 0.6.1-1
4854246
- Add crash-devel buildreq to build staplog.so crash(8) module.
4854246
- Many robustness & functionality improvements:
4854246
4854246
* Wed Dec  5 2007 Will Cohen <wcohen@redhat.com> - 0.6-2
4854246
- Correct Source to point to location contain code.
4854246
0fc2adf
* Thu Aug  9 2007 David Smith <dsmith@redhat.com> - 0.6-1
0fc2adf
- Bumped version, added libcap-devel BuildRequires.
0fc2adf
0fc2adf
* Wed Jul 11 2007 Will Cohen <wcohen@redhat.com> - 0.5.14-2
0fc2adf
- Fix Requires and BuildRequires for sqlite.
0fc2adf
ce2ce13
* Mon Jul  2 2007 Frank Ch. Eigler <fche@redhat.com> - 0.5.14-1
fe18a23
- Many robustness improvements: 1117, 1134, 1305, 1307, 1570, 1806,
fe18a23
  2033, 2116, 2224, 2339, 2341, 2406, 2426, 2438, 2583, 3037,
fe18a23
  3261, 3282, 3331, 3428 3519, 3545, 3625, 3648, 3880, 3888, 3911,
fe18a23
  3952, 3965, 4066, 4071, 4075, 4078, 4081, 4096, 4119, 4122, 4127,
fe18a23
  4146, 4171, 4179, 4183, 4221, 4224, 4254, 4281, 4319, 4323, 4326,
fe18a23
  4329, 4332, 4337, 4415, 4432, 4444, 4445, 4458, 4467, 4470, 4471,
fe18a23
  4518, 4567, 4570, 4579, 4589, 4609, 4664
fe18a23
1c28fdd
* Mon Mar 26 2007 Frank Ch. Eigler <fche@redhat.com> - 0.5.13-1
1c28fdd
- An emergency / preliminary refresh, mainly for compatibility
1c28fdd
  with 2.6.21-pre kernels.
1c28fdd
eedf72b
* Mon Jan  1 2007 Frank Ch. Eigler <fche@redhat.com> - 0.5.12-1
eedf72b
- Many changes, see NEWS file.
eedf72b
f89d042
* Tue Sep 26 2006 David Smith <dsmith@redhat.com> - 0.5.10-1
f89d042
- Added 'systemtap-runtime' subpackage.
f89d042
8b061be
* Wed Jul 19 2006 Roland McGrath <roland@redhat.com> - 0.5.9-1
8b061be
- PRs 2669, 2913
3519dd7
fd6d9a8
* Fri Jun 16 2006 Roland McGrath <roland@redhat.com> - 0.5.8-1
fd6d9a8
- PRs 2627, 2520, 2228, 2645
fd6d9a8
fd6d9a8
* Fri May  5 2006 Frank Ch. Eigler <fche@redhat.com> - 0.5.7-1
fd6d9a8
- PRs 2511 2453 2307 1813 1944 2497 2538 2476 2568 1341 2058 2220 2437
fd6d9a8
  1326 2014 2599 2427 2438 2465 1930 2149 2610 2293 2634 2506 2433
fd6d9a8
1e4c911
* Tue Apr  4 2006 Roland McGrath <roland@redhat.com> - 0.5.5-1
1e4c911
- Many changes, affected PRs include: 2068, 2293, 1989, 2334,
1e4c911
  1304, 2390, 2425, 953.
1e4c911
549a2fb
* Wed Feb  1 2006 Frank Ch. Eigler <fche@redhat.com> - 0.5.4-1
549a2fb
- PRs 1916, 2205, 2142, 2060, 1379
549a2fb
006402e
* Mon Jan 16 2006 Roland McGrath <roland@redhat.com> - 0.5.3-1
006402e
- Many changes, affected PRs include: 2056, 1144, 1379, 2057,
006402e
  2060, 1972, 2140, 2148
006402e
87c34fe
* Mon Dec 19 2005 Roland McGrath <roland@redhat.com> - 0.5.2-1
87c34fe
- Fixed build with gcc 4.1, various tapset changes.
a4c5040
2dc112d
* Wed Dec  7 2005 Roland McGrath <roland@redhat.com> - 0.5.1-1
2dc112d
- elfutils update, build changes
2dc112d
b660568
* Fri Dec 02 2005  Frank Ch. Eigler  <fche@redhat.com> - 0.5-1
b660568
- Many fixes and improvements: 1425, 1536, 1505, 1380, 1329, 1828, 1271,
b660568
  1339, 1340, 1345, 1837, 1917, 1903, 1336, 1868, 1594, 1564, 1276, 1295
b660568
a092a3a
* Mon Oct 31 2005 Roland McGrath <roland@redhat.com> - 0.4.2-1
a092a3a
- Many fixes and improvements: PRs 1344, 1260, 1330, 1295, 1311, 1368,
a092a3a
  1182, 1131, 1332, 1366, 1456, 1271, 1338, 1482, 1477, 1194.
a092a3a
896df58
* Wed Sep 14 2005 Roland McGrath <roland@redhat.com> - 0.4.1-1
896df58
- Many fixes and improvements since 0.2.2; relevant PRs include:
896df58
  1122, 1134, 1155, 1172, 1174, 1175, 1180, 1186, 1187, 1191, 1193, 1195,
896df58
  1197, 1205, 1206, 1209, 1213, 1244, 1257, 1258, 1260, 1265, 1268, 1270,
896df58
  1289, 1292, 1306, 1335, 1257
896df58
13eb83c
* Wed Sep  7 2005 Frank Ch. Eigler <fche@redhat.com>
13eb83c
- Bump version.
13eb83c
ce2ce13
* Tue Aug 16 2005 Frank Ch. Eigler <fche@redhat.com>
a4c5040
- Bump version.
316d91e
8aa81e8
* Wed Aug  3 2005 Martin Hunt <hunt@redhat.com> - 0.2.2-1
8aa81e8
- Add directory /var/cache/systemtap
8aa81e8
- Add stp_check to /usr/libexec/systemtap
8aa81e8
316d91e
* Wed Aug  3 2005 Roland McGrath <roland@redhat.com> - 0.2.1-1
316d91e
- New version 0.2.1, various fixes.
316d91e
b04ba44
* Fri Jul 29 2005 Roland McGrath <roland@redhat.com> - 0.2-1
b04ba44
- New version 0.2, requires elfutils 0.111
2c8d5cd
b04ba44
* Mon Jul 25 2005 Roland McGrath <roland@redhat.com>
17e3a21
- Clean up spec file, build bundled elfutils.
17e3a21
17e3a21
* Thu Jul 21 2005 Martin Hunt <hunt@redhat.com>
17e3a21
- Set Version to use version from autoconf.
17e3a21
- Fix up some of the path names.
17e3a21
- Add Requires and BuildRequires.
17e3a21
ce2ce13
* Tue Jul 19 2005 Will Cohen <wcohen@redhat.com>
17e3a21
- Initial creation of RPM.