Blame SPECS/systemtap.spec

ed9d46
%{?scl:%scl_package systemtap}
ed9d46
%global sysconfdir %{?scl:%_root_sysconfdir}%{!?scl:%_sysconfdir}
ed9d46
ed9d46
%{!?with_sqlite: %global with_sqlite 0%{?rhel} >= 7}
ed9d46
# prefer prebuilt docs
ed9d46
%{!?with_docs: %global with_docs 0}
ed9d46
%{!?with_htmldocs: %global with_htmldocs 0}
ed9d46
%{!?with_monitor: %global with_monitor 1}
ed9d46
# crash is not available
ed9d46
%ifarch ppc ppc64 %{sparc} aarch64 ppc64le %{mips}
ed9d46
%{!?with_crash: %global with_crash 0}
ed9d46
%else
ed9d46
%{!?with_crash: %global with_crash 1}
ed9d46
%endif
ed9d46
%{!?with_rpm: %global with_rpm 1}
ed9d46
%{!?with_bundled_elfutils: %global with_bundled_elfutils 0}
ed9d46
%{!?elfutils_version: %global elfutils_version 0.142}
ed9d46
%{!?pie_supported: %global pie_supported 1}
ed9d46
%{!?with_boost: %global with_boost 0}
ed9d46
%ifarch i686 ppc64 x86_64
ed9d46
%{!?with_dyninst: %global with_dyninst 1}
ed9d46
%else
ed9d46
%{!?with_dyninst: %global with_dyninst 0}
ed9d46
%endif
ed9d46
%{!?with_bpf: %global with_bpf 0%{?fedora} >= 22 || 0%{?rhel} >= 8}
ed9d46
%{!?with_systemd: %global with_systemd 0} # disable even on rhel7
ed9d46
%{!?with_emacsvim: %global with_emacsvim 0}
ed9d46
%{!?with_java: %global with_java 0}
ed9d46
# don't want to build runtime-virthost for f18 or RHEL5/6
ed9d46
%{!?with_virthost: %global with_virthost 0}
ed9d46
%{!?with_virtguest: %global with_virtguest 0}
ed9d46
%{!?with_dracut: %global with_dracut 0%{?fedora} >= 19 || 0%{?rhel} >= 6}
ed9d46
%ifarch x86_64
ed9d46
%{!?with_mokutil: %global with_mokutil 0%{?fedora} >= 18 || 0%{?rhel} >= 7}
ed9d46
%{!?with_openssl: %global with_openssl 0%{?fedora} >= 18 || 0%{?rhel} >= 7}
ed9d46
%else
ed9d46
%{!?with_mokutil: %global with_mokutil 0}
ed9d46
%{!?with_openssl: %global with_openssl 0}
ed9d46
%endif
ed9d46
%{!?with_pyparsing: %global with_pyparsing 0%{?fedora} >= 18 || 0%{?rhel} >= 7}
ed9d46
%{!?with_python3: %global with_python3 0%{?fedora} >= 23}
ed9d46
%{!?with_python2_probes: %global with_python2_probes 0}
ed9d46
%{!?with_python3_probes: %global with_python3_probes 0}
ed9d46
%{!?with_httpd: %global with_httpd 0}
ed9d46
ed9d46
%ifarch ppc64le aarch64
ed9d46
%global with_virthost 0
ed9d46
%endif
ed9d46
ed9d46
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 6
ed9d46
   %define initdir %{sysconfdir}/rc.d/init.d
ed9d46
# not scl-wrapped %{_initdir}
ed9d46
%else # RHEL5 doesn't know _initddir
ed9d46
   %define initdir %{_initrddir}
ed9d46
%endif
ed9d46
ed9d46
# note not under /opt/rh... SCL special
ed9d46
%define dracutlibdir %{_root_prefix}/lib/dracut
ed9d46
%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
ed9d46
    %define dracutstap %{_prefix}/lib/dracut/modules.d/99%{?scl_prefix}stap
ed9d46
%else
ed9d46
    %define dracutstap %{_prefix}/share/dracut/modules.d/99%{?scl_prefix}stap
ed9d46
%endif
ed9d46
ed9d46
%if 0%{?rhel} == 6
ed9d46
    %{!?_rpmmacrodir: %define _rpmmacrodir /etc/rpm/}
ed9d46
%else
ed9d46
    %{!?_rpmmacrodir: %define _rpmmacrodir %{_rpmconfigdir}/macros.d}
ed9d46
%endif
ed9d46
ed9d46
# To avoid testsuite/*/*.stp has shebang which doesn't start with '/'
ed9d46
%undefine __brp_mangle_shebangs  
ed9d46
ed9d46
Name: %{?scl_prefix}systemtap
ed9d46
Version: 3.3
ed9d46
Release: 1%{?dist}
ed9d46
# for version, see also configure.ac
ed9d46
ed9d46
# NB Patch1 is for elfutils, further below
ed9d46
ed9d46
# Packaging abstract:
ed9d46
#
ed9d46
# systemtap              empty req:-client req:-devel
ed9d46
# systemtap-server       /usr/bin/stap-server*, req:-devel
ed9d46
# systemtap-devel        /usr/bin/stap, runtime, tapset, req:kernel-devel
ed9d46
# systemtap-runtime      /usr/bin/staprun, /usr/bin/stapsh, /usr/bin/stapdyn
ed9d46
# systemtap-client       /usr/bin/stap, samples, docs, tapset(bonus), req:-runtime
ed9d46
# systemtap-initscript   /etc/init.d/systemtap, dracut module, req:systemtap
ed9d46
# systemtap-sdt-devel    /usr/include/sys/sdt.h /usr/bin/dtrace
ed9d46
# systemtap-testsuite    /usr/share/systemtap/testsuite*, req:systemtap, req:sdt-devel
ed9d46
# systemtap-runtime-java libHelperSDT.so, HelperSDT.jar, stapbm, req:-runtime
ed9d46
# systemtap-runtime-virthost  /usr/bin/stapvirt, req:libvirt req:libxml2
ed9d46
# systemtap-runtime-virtguest udev rules, init scripts/systemd service, req:-runtime
ed9d46
# systemtap-runtime-python2 HelperSDT python2 module, req:-runtime
ed9d46
# systemtap-runtime-python3 HelperSDT python3 module, req:-runtime
ed9d46
#
ed9d46
# Typical scenarios:
ed9d46
#
ed9d46
# stap-client:           systemtap-client
ed9d46
# stap-server:           systemtap-server
ed9d46
# local user:            systemtap
ed9d46
#
ed9d46
# Unusual scenarios:
ed9d46
#
ed9d46
# intermediary stap-client for --remote:       systemtap-client (-runtime unused)
ed9d46
# intermediary stap-server for --use-server:   systemtap-server (-devel unused)
ed9d46
ed9d46
Summary: Programmable system-wide instrumentation system
ed9d46
Group: Development/System
ed9d46
License: GPLv2+
ed9d46
URL: http://sourceware.org/systemtap/
ed9d46
Source: ftp://sourceware.org/pub/systemtap/releases/systemtap-%{version}.tar.gz
ed9d46
ed9d46
Patch10: systemtap-without_bpf.patch
ed9d46
ed9d46
# Build*
ed9d46
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
ed9d46
BuildRequires: gcc-c++
ed9d46
BuildRequires: gettext-devel
ed9d46
BuildRequires: pkgconfig(nss)
ed9d46
BuildRequires: pkgconfig(avahi-client)
ed9d46
%if %{with_dyninst}
ed9d46
BuildRequires: %{?scl_prefix}dyninst-devel >= 8.0
ed9d46
BuildRequires: pkgconfig(libselinux)
ed9d46
%endif
ed9d46
%if %{with_sqlite}
ed9d46
BuildRequires: sqlite-devel > 3.7
ed9d46
%endif
ed9d46
%if %{with_monitor}
ed9d46
BuildRequires: pkgconfig(json-c)
ed9d46
BuildRequires: pkgconfig(ncurses)
ed9d46
%endif
ed9d46
%if %{with_systemd}
ed9d46
BuildRequires: systemd
ed9d46
%endif
ed9d46
# Needed for libstd++ < 4.0, without <tr1/memory>
ed9d46
%if %{with_boost}
ed9d46
BuildRequires: boost-devel
ed9d46
%endif
ed9d46
%if %{with_crash}
ed9d46
BuildRequires: crash-devel zlib-devel
ed9d46
%endif
ed9d46
%if %{with_rpm}
ed9d46
BuildRequires: rpm-devel
ed9d46
%endif
ed9d46
%if %{with_bundled_elfutils}
ed9d46
Source1: elfutils-%{elfutils_version}.tar.gz
ed9d46
Patch1: elfutils-portability.patch
ed9d46
BuildRequires: m4
ed9d46
%global setup_elfutils -a1
ed9d46
%else
ed9d46
BuildRequires: %{?scl_prefix}elfutils-devel >= %{elfutils_version}
ed9d46
%endif
ed9d46
%if %{with_docs}
ed9d46
BuildRequires: /usr/bin/latex /usr/bin/dvips /usr/bin/ps2pdf
ed9d46
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
ed9d46
BuildRequires: tex(fullpage.sty) tex(fancybox.sty) tex(bchr7t.tfm) tex(graphicx.sty)
ed9d46
%endif
ed9d46
# For the html.sty mentioned in the .tex files, even though latex2html is
ed9d46
# not run during the build, only during manual scripts/update-docs runs:
ed9d46
BuildRequires: latex2html
ed9d46
%if %{with_htmldocs}
ed9d46
# On F10, xmlto's pdf support was broken off into a sub-package,
ed9d46
# called 'xmlto-tex'.  To avoid a specific F10 BuildReq, we'll do a
ed9d46
# file-based buildreq on '/usr/share/xmlto/format/fo/pdf'.
ed9d46
BuildRequires: xmlto /usr/share/xmlto/format/fo/pdf
ed9d46
%endif
ed9d46
%endif
ed9d46
%{?scl:Requires:%scl_runtime}
ed9d46
%if %{with_emacsvim}
ed9d46
BuildRequires: emacs
ed9d46
%endif
ed9d46
%if %{with_java}
ed9d46
BuildRequires: jpackage-utils java-devel
ed9d46
%endif
ed9d46
%if %{with_virthost}
ed9d46
# BuildRequires: libvirt-devel >= 1.0.2
ed9d46
BuildRequires: pkgconfig(libvirt)
ed9d46
BuildRequires: pkgconfig(libxml-2.0)
ed9d46
%endif
ed9d46
BuildRequires: readline-devel
ed9d46
%if 0%{?rhel} <= 5
ed9d46
BuildRequires: pkgconfig(ncurses)
ed9d46
%endif
ed9d46
%if %{with_python2_probes}
ed9d46
BuildRequires: python-devel
ed9d46
BuildRequires: python-setuptools
ed9d46
%endif
ed9d46
%if %{with_python3_probes}
ed9d46
BuildRequires: python3-devel
ed9d46
BuildRequires: python3-setuptools
ed9d46
%endif
ed9d46
ed9d46
%if %{with_httpd}
ed9d46
BuildRequires: libmicrohttpd-devel
ed9d46
BuildRequires: libuuid-devel
ed9d46
%endif
ed9d46
ed9d46
# Install requirements
ed9d46
Requires: %{?scl_prefix}systemtap-client = %{version}-%{release}
ed9d46
Requires: %{?scl_prefix}systemtap-devel = %{version}-%{release}
ed9d46
ed9d46
%description
ed9d46
SystemTap is an instrumentation system for systems running Linux.
ed9d46
Developers can write instrumentation scripts to collect data on
ed9d46
the operation of the system.  The base systemtap package contains/requires
ed9d46
the components needed to locally develop and execute systemtap scripts.
ed9d46
ed9d46
# ------------------------------------------------------------------------
ed9d46
ed9d46
%package server
ed9d46
Summary: Instrumentation System Server
ed9d46
Group: Development/System
ed9d46
License: GPLv2+
ed9d46
URL: http://sourceware.org/systemtap/
ed9d46
Requires: %{?scl_prefix}systemtap-devel = %{version}-%{release}
ed9d46
Requires: nss coreutils
ed9d46
Requires: zip unzip
ed9d46
Requires(pre): shadow-utils
ed9d46
Requires(post): chkconfig
ed9d46
Requires(preun): chkconfig
ed9d46
Requires(preun): initscripts
ed9d46
Requires(postun): initscripts
ed9d46
BuildRequires: nss-devel avahi-devel
ed9d46
%if %{with_openssl}
ed9d46
Requires: openssl
ed9d46
%endif
ed9d46
%if %{with_systemd}
ed9d46
Requires: systemd
ed9d46
%endif
ed9d46
ed9d46
%description server
ed9d46
This is the remote script compilation server component of systemtap.
ed9d46
It announces itself to nearby clients with avahi (if available), and
ed9d46
compiles systemtap scripts to kernel objects on their demand.
ed9d46
ed9d46
ed9d46
%package devel
ed9d46
Summary: Programmable system-wide instrumentation system - development headers, tools
ed9d46
Group: Development/System
ed9d46
License: GPLv2+
ed9d46
URL: http://sourceware.org/systemtap/
ed9d46
# The virtual provide 'kernel-devel-uname-r' tries to get the right
ed9d46
# kernel variant  (kernel-PAE, kernel-debug, etc.) devel package
ed9d46
# installed.
ed9d46
Requires: kernel-devel-uname-r
ed9d46
%{?fedora:Suggests: kernel-devel}
ed9d46
Requires: /usr/bin/gcc /usr/bin/make
ed9d46
# Suggest: kernel-debuginfo
ed9d46
ed9d46
%description devel
ed9d46
This package contains the components needed to compile a systemtap
ed9d46
script from source form into executable (.ko) forms.  It may be
ed9d46
installed on a self-contained developer workstation (along with the
ed9d46
systemtap-client and systemtap-runtime packages), or on a dedicated
ed9d46
remote server (alongside the systemtap-server package).  It includes
ed9d46
a copy of the standard tapset library and the runtime library C files.
ed9d46
ed9d46
ed9d46
%package runtime
ed9d46
Summary: Programmable system-wide instrumentation system - runtime
ed9d46
Group: Development/System
ed9d46
License: GPLv2+
ed9d46
URL: http://sourceware.org/systemtap/
ed9d46
Requires(pre): shadow-utils
ed9d46
ed9d46
%description runtime
ed9d46
SystemTap runtime contains the components needed to execute
ed9d46
a systemtap script that was already compiled into a module
ed9d46
using a local or remote systemtap-devel installation.
ed9d46
ed9d46
ed9d46
%package client
ed9d46
Summary: Programmable system-wide instrumentation system - client
ed9d46
Group: Development/System
ed9d46
License: GPLv2+
ed9d46
URL: http://sourceware.org/systemtap/
ed9d46
Requires: zip unzip
ed9d46
Requires: %{?scl_prefix}systemtap-runtime = %{version}-%{release}
ed9d46
Requires: coreutils grep sed unzip zip
ed9d46
Requires: openssh-clients
ed9d46
%if %{with_mokutil}
ed9d46
Requires: mokutil
ed9d46
%endif
ed9d46
ed9d46
%description client
ed9d46
This package contains/requires the components needed to develop
ed9d46
systemtap scripts, and compile them using a local systemtap-devel
ed9d46
or a remote systemtap-server installation, then run them using a
ed9d46
local or remote systemtap-runtime.  It includes script samples and
ed9d46
documentation, and a copy of the tapset library for reference.
ed9d46
ed9d46
ed9d46
%package initscript
ed9d46
Summary: Systemtap Initscripts
ed9d46
Group: Development/System
ed9d46
License: GPLv2+
ed9d46
URL: http://sourceware.org/systemtap/
ed9d46
Requires: %{?scl_prefix}systemtap = %{version}-%{release}
ed9d46
Requires(post): chkconfig
ed9d46
Requires(preun): chkconfig
ed9d46
Requires(preun): initscripts
ed9d46
Requires(postun): initscripts
ed9d46
ed9d46
%description initscript
ed9d46
This package includes a SysVinit script to launch selected systemtap
ed9d46
scripts at system startup, along with a dracut module for early
ed9d46
boot-time probing if supported.
ed9d46
ed9d46
ed9d46
%package sdt-devel
ed9d46
Summary: Static probe support tools
ed9d46
Group: Development/System
ed9d46
License: GPLv2+ and Public Domain
ed9d46
URL: http://sourceware.org/systemtap/
ed9d46
%if %{with_pyparsing}
ed9d46
%if %{with_python3}
ed9d46
Requires: python3-pyparsing
ed9d46
%else
ed9d46
Requires: pyparsing
ed9d46
%endif
ed9d46
%endif
ed9d46
ed9d46
%description sdt-devel
ed9d46
This package includes the <sys/sdt.h> header file used for static
ed9d46
instrumentation compiled into userspace programs and libraries, along
ed9d46
with the optional dtrace-compatibility preprocessor to process related
ed9d46
.d files into tracing-macro-laden .h headers.
ed9d46
ed9d46
ed9d46
%package testsuite
ed9d46
Summary: Instrumentation System Testsuite
ed9d46
Group: Development/System
ed9d46
License: GPLv2+
ed9d46
URL: http://sourceware.org/systemtap/
ed9d46
Requires: %{?scl_prefix}systemtap = %{version}-%{release}
ed9d46
Requires: %{?scl_prefix}systemtap-sdt-devel = %{version}-%{release}
ed9d46
Requires: %{?scl_prefix}systemtap-server = %{version}-%{release}
ed9d46
Requires: %{?scl_prefix}elfutils
ed9d46
Requires: dejagnu which grep nc
ed9d46
Requires: gcc gcc-c++ make glibc-devel
ed9d46
# testsuite/systemtap.base/ptrace.exp needs strace
ed9d46
Requires: strace
ed9d46
# testsuite/systemtap.base/ipaddr.exp needs nc. Unfortunately, the rpm
ed9d46
# that provides nc has changed over time (from 'nc' to
ed9d46
# 'nmap-ncat'). So, we'll do a file-based require.
ed9d46
Requires: /usr/bin/nc
ed9d46
%ifnarch ia64 ppc64le aarch64
ed9d46
%if 0%{?fedora} >= 21 || 0%{?rhel} >= 8
ed9d46
# no prelink
ed9d46
%else
ed9d46
Requires: prelink
ed9d46
%endif
ed9d46
%endif
ed9d46
# testsuite/systemtap.server/client.exp needs avahi
ed9d46
Requires: avahi
ed9d46
%if %{with_crash}
ed9d46
# testsuite/systemtap.base/crash.exp needs crash
ed9d46
Requires: crash
ed9d46
%endif
ed9d46
%if %{with_java}
ed9d46
Requires: systemtap-runtime-java = %{version}-%{release}
ed9d46
%endif
ed9d46
%if %{with_python2_probes}
ed9d46
Requires: systemtap-runtime-python2 = %{version}-%{release}
ed9d46
%endif
ed9d46
%if %{with_python3_probes}
ed9d46
Requires: systemtap-runtime-python3 = %{version}-%{release}
ed9d46
%endif
ed9d46
%ifarch x86_64
ed9d46
Requires: /usr/lib/libc.so
ed9d46
# ... and /usr/lib/libgcc_s.so.*
ed9d46
# ... and /usr/lib/libstdc++.so.*
ed9d46
%endif
ed9d46
%if 0%{?fedora} >= 18
ed9d46
Requires: stress
ed9d46
%endif
ed9d46
# The following "meta" files for the systemtap examples run "perf":
ed9d46
#   testsuite/systemtap.examples/hw_watch_addr.meta
ed9d46
#   testsuite/systemtap.examples/memory/hw_watch_sym.meta
ed9d46
Requires: perf
ed9d46
ed9d46
%description testsuite
ed9d46
This package includes the dejagnu-based systemtap stress self-testing
ed9d46
suite.  This may be used by system administrators to thoroughly check
ed9d46
systemtap on the current system.
ed9d46
ed9d46
ed9d46
%if %{with_java}
ed9d46
%package runtime-java
ed9d46
Summary: Systemtap Java Runtime Support
ed9d46
Group: Development/System
ed9d46
License: GPLv2+
ed9d46
URL: http://sourceware.org/systemtap/
ed9d46
Requires: systemtap-runtime = %{version}-%{release}
ed9d46
Requires: byteman > 2.0
ed9d46
Requires: net-tools
ed9d46
ed9d46
%description runtime-java
ed9d46
This package includes support files needed to run systemtap scripts
ed9d46
that probe Java processes running on the OpenJDK 1.6 and OpenJDK 1.7
ed9d46
runtimes using Byteman.
ed9d46
%endif
ed9d46
ed9d46
%if %{with_python2_probes}
ed9d46
%package runtime-python2
ed9d46
Summary: Systemtap Python 2 Runtime Support
ed9d46
Group: Development/System
ed9d46
License: GPLv2+
ed9d46
URL: http://sourceware.org/systemtap/
ed9d46
Requires: systemtap-runtime = %{version}-%{release}
ed9d46
ed9d46
%description runtime-python2
ed9d46
This package includes support files needed to run systemtap scripts
ed9d46
that probe python 2 processes.
ed9d46
%endif
ed9d46
ed9d46
%if %{with_python3_probes}
ed9d46
%package runtime-python3
ed9d46
Summary: Systemtap Python 3 Runtime Support
ed9d46
Group: Development/System
ed9d46
License: GPLv2+
ed9d46
URL: http://sourceware.org/systemtap/
ed9d46
Requires: systemtap-runtime = %{version}-%{release}
ed9d46
ed9d46
%if ! (%{with_python2_probes})
ed9d46
# Provide an clean upgrade path when the python2 package is removed
ed9d46
Obsoletes: %{name}-runtime-python2 < %{version}-%{release}
ed9d46
%endif
ed9d46
ed9d46
%description runtime-python3
ed9d46
This package includes support files needed to run systemtap scripts
ed9d46
that probe python 3 processes.
ed9d46
%endif
ed9d46
ed9d46
%if %{with_virthost}
ed9d46
%package runtime-virthost
ed9d46
Summary: Systemtap Cross-VM Instrumentation - host
ed9d46
Group: Development/System
ed9d46
License: GPLv2+
ed9d46
URL: http://sourceware.org/systemtap/
ed9d46
Requires: libvirt >= 1.0.2
ed9d46
Requires: libxml2
ed9d46
ed9d46
%description runtime-virthost
ed9d46
This package includes the components required to run systemtap scripts
ed9d46
inside a libvirt-managed domain from the host without using a network
ed9d46
connection.
ed9d46
%endif
ed9d46
ed9d46
%if %{with_virtguest}
ed9d46
%package runtime-virtguest
ed9d46
Summary: Systemtap Cross-VM Instrumentation - guest
ed9d46
Group: Development/System
ed9d46
License: GPLv2+
ed9d46
URL: http://sourceware.org/systemtap/
ed9d46
Requires: systemtap-runtime = %{version}-%{release}
ed9d46
%if %{with_systemd}
ed9d46
Requires(post): findutils coreutils
ed9d46
Requires(preun): grep coreutils
ed9d46
Requires(postun): grep coreutils
ed9d46
%else
ed9d46
Requires(post): chkconfig initscripts
ed9d46
Requires(preun): chkconfig initscripts
ed9d46
Requires(postun): initscripts
ed9d46
%endif
ed9d46
ed9d46
%description runtime-virtguest
ed9d46
This package installs the services necessary on a virtual machine for a
ed9d46
systemtap-runtime-virthost machine to execute systemtap scripts.
ed9d46
%endif
ed9d46
ed9d46
# ------------------------------------------------------------------------
ed9d46
ed9d46
%prep
ed9d46
%setup -q -n systemtap-%{version} %{?setup_elfutils}
ed9d46
ed9d46
%patch10 -p1 -b .without_bpf
ed9d46
ed9d46
%if %{with_bundled_elfutils}
ed9d46
cd elfutils-%{elfutils_version}
ed9d46
%patch1 -p2
ed9d46
ed9d46
sleep 1
ed9d46
find . \( -name Makefile.in -o -name aclocal.m4 \) -print | xargs touch
ed9d46
sleep 1
ed9d46
find . \( -name configure -o -name config.h.in \) -print | xargs touch
ed9d46
cd ..
ed9d46
%endif
ed9d46
ed9d46
%build
ed9d46
ed9d46
%if %{with_bundled_elfutils}
ed9d46
# Build our own copy of elfutils.
ed9d46
%global elfutils_config --with-elfutils=elfutils-%{elfutils_version}
ed9d46
ed9d46
# We have to prevent the standard dependency generation from identifying
ed9d46
# our private elfutils libraries in our provides and requires.
ed9d46
%global _use_internal_dependency_generator	0
ed9d46
%global filter_eulibs() /bin/sh -c "%{1} | sed '/libelf/d;/libdw/d;/libebl/d'"
ed9d46
%global __find_provides %{filter_eulibs /usr/lib/rpm/find-provides}
ed9d46
%global __find_requires %{filter_eulibs /usr/lib/rpm/find-requires}
ed9d46
ed9d46
# This will be needed for running stap when not installed, for the test suite.
ed9d46
%global elfutils_mflags LD_LIBRARY_PATH=`pwd`/lib-elfutils
ed9d46
%endif
ed9d46
ed9d46
# Enable/disable the dyninst pure-userspace backend
ed9d46
%if %{with_dyninst}
ed9d46
%global dyninst_config --with-dyninst
ed9d46
%else
ed9d46
%global dyninst_config --without-dyninst
ed9d46
%endif
ed9d46
ed9d46
# Enable/disable the sqlite coverage testing support
ed9d46
%if %{with_sqlite}
ed9d46
%global sqlite_config --enable-sqlite
ed9d46
%else
ed9d46
%global sqlite_config --disable-sqlite
ed9d46
%endif
ed9d46
ed9d46
# Enable/disable the crash extension
ed9d46
%if %{with_crash}
ed9d46
%global crash_config --enable-crash
ed9d46
%else
ed9d46
%global crash_config --disable-crash
ed9d46
%endif
ed9d46
ed9d46
# Enable/disable the code to find and suggest needed rpms
ed9d46
%if %{with_rpm}
ed9d46
%global rpm_config --with-rpm
ed9d46
%else
ed9d46
%global rpm_config --without-rpm
ed9d46
%endif
ed9d46
ed9d46
%if %{with_docs}
ed9d46
%if %{with_htmldocs}
ed9d46
%global docs_config --enable-docs --enable-htmldocs
ed9d46
%else
ed9d46
%global docs_config --enable-docs --disable-htmldocs
ed9d46
%endif
ed9d46
%else
ed9d46
%global docs_config --enable-docs=prebuilt
ed9d46
%endif
ed9d46
ed9d46
# Enable pie as configure defaults to disabling it
ed9d46
%if %{pie_supported}
ed9d46
%global pie_config --enable-pie
ed9d46
%else
ed9d46
%global pie_config --disable-pie
ed9d46
%endif
ed9d46
ed9d46
ed9d46
%if %{with_java}
ed9d46
%global java_config --with-java=%{_jvmdir}/java
ed9d46
%else
ed9d46
%global java_config --without-java
ed9d46
%endif
ed9d46
ed9d46
%if %{with_python3}
ed9d46
%global python3_config --with-python3
ed9d46
%else
ed9d46
%global python3_config --without-python3
ed9d46
%endif
ed9d46
%if %{with_python2_probes}
ed9d46
%global python2_probes_config --with-python2-probes
ed9d46
%else
ed9d46
%global python2_probes_config --without-python2-probes
ed9d46
%endif
ed9d46
%if %{with_python3_probes}
ed9d46
%global python3_probes_config --with-python3-probes
ed9d46
%else
ed9d46
%global python3_probes_config --without-python3-probes
ed9d46
%endif
ed9d46
ed9d46
%if %{with_virthost}
ed9d46
%global virt_config --enable-virt
ed9d46
%else
ed9d46
%global virt_config --disable-virt
ed9d46
%endif
ed9d46
ed9d46
#CPPFLAGS="-I%{_includedir}/dyninst %{optflags}"
ed9d46
CPPFLAGS="-I%{_includedir} -I%{_includedir}/dyninst %{optflags}"
ed9d46
export CPPFLAGS
ed9d46
#LDFLAGS="-L%{_libdir}/dyninst"
ed9d46
#
ed9d46
# -rpath-link needed because new dts dyninst doesn't get its shlibs into the ld.so.cache
ed9d46
# directories, so ld doesn't find them.
ed9d46
LDFLAGS="-L%{_libdir} -Wl,-rpath-link,%{_libdir}/dyninst -L%{_libdir}/dyninst -L%{_libdir}/elfutils"
ed9d46
export LDFLAGS
ed9d46
ed9d46
%if %{with_virthost}
ed9d46
%global virt_config --enable-virt
ed9d46
%else
ed9d46
%global virt_config --disable-virt
ed9d46
%endif
ed9d46
ed9d46
%if %{with_dracut}
ed9d46
%global dracut_config --with-dracutstap=%{dracutstap} --with-dracutbindir=%{dracutbindir}
ed9d46
%else
ed9d46
%global dracut_config
ed9d46
%endif
ed9d46
ed9d46
%if %{with_httpd}
ed9d46
%global httpd_config --enable-httpd
ed9d46
%else
ed9d46
%global httpd_config --disable-httpd
ed9d46
%endif
ed9d46
ed9d46
%if %{with_bpf}
ed9d46
%global bpf_config --with-bpf
ed9d46
%else
ed9d46
%global bpf_config --without-bpf
ed9d46
%endif
ed9d46
ed9d46
# We don't ship compileworthy python code, just oddball samples
ed9d46
%global py_auto_byte_compile 0
ed9d46
ed9d46
%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}"
ed9d46
make %{?_smp_mflags}
ed9d46
ed9d46
%if %{with_emacsvim}
ed9d46
%{_emacs_bytecompile} emacs/systemtap-mode.el
ed9d46
%endif
ed9d46
ed9d46
%install
ed9d46
rm -rf ${RPM_BUILD_ROOT}
ed9d46
make DESTDIR=$RPM_BUILD_ROOT install
ed9d46
%find_lang systemtap
ed9d46
for dir in $(ls -1d $RPM_BUILD_ROOT%{_mandir}/{??,??_??}) ; do
ed9d46
    dir=$(echo $dir | sed -e "s|^$RPM_BUILD_ROOT||")
ed9d46
    lang=$(basename $dir)
ed9d46
    echo "%%lang($lang) $dir/man*/*" >> systemtap.lang
ed9d46
done
ed9d46
ed9d46
ln -s %{_datadir}/systemtap/examples
ed9d46
ed9d46
# Fix paths in the example scripts.
ed9d46
find $RPM_BUILD_ROOT%{_datadir}/systemtap/examples -type f -name '*.stp' -print0 | xargs -0 sed -i -r -e '1s@^#!.+stap@#!%{_bindir}/stap@'
ed9d46
ed9d46
# To make rpmlint happy, remove any .gitignore files in the testsuite.
ed9d46
find testsuite -type f -name '.gitignore' -print0 | xargs -0 rm -f
ed9d46
ed9d46
# Because "make install" may install staprun with whatever mode, the
ed9d46
# post-processing programs rpmbuild runs won't be able to read it.
ed9d46
# So, we change permissions so that they can read it.  We'll set the
ed9d46
# permissions back to 04110 in the %files section below.
ed9d46
chmod 755 $RPM_BUILD_ROOT%{_bindir}/staprun
ed9d46
ed9d46
#install the useful stap-prep script
ed9d46
install -c -m 755 stap-prep $RPM_BUILD_ROOT%{_bindir}/stap-prep
ed9d46
ed9d46
# Copy over the testsuite
ed9d46
cp -rp testsuite $RPM_BUILD_ROOT%{_datadir}/systemtap
ed9d46
ed9d46
# We want the manuals in the special doc dir, not the generic doc install dir.
ed9d46
# We build it in place and then move it away so it doesn't get installed
ed9d46
# twice. rpm can specify itself where the (versioned) docs go with the
ed9d46
# %doc directive.
ed9d46
mkdir docs.installed
ed9d46
mv $RPM_BUILD_ROOT%{_datadir}/doc/systemtap/*.pdf docs.installed/
ed9d46
%if %{with_docs}
ed9d46
%if %{with_htmldocs}
ed9d46
mv $RPM_BUILD_ROOT%{_datadir}/doc/systemtap/tapsets docs.installed/
ed9d46
mv $RPM_BUILD_ROOT%{_datadir}/doc/systemtap/SystemTap_Beginners_Guide docs.installed/
ed9d46
%endif
ed9d46
ed9d46
install -D -m 644 macros.systemtap $RPM_BUILD_ROOT%{_rpmmacrodir}/macros.systemtap
ed9d46
ed9d46
%endif
ed9d46
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/stap-server
ed9d46
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/stap-server
ed9d46
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/stap-server/.systemtap
ed9d46
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/stap-server
ed9d46
touch $RPM_BUILD_ROOT%{_localstatedir}/log/stap-server/log
ed9d46
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/cache/systemtap
ed9d46
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/systemtap
ed9d46
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d
ed9d46
install -m 644 initscript/logrotate.stap-server $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/stap-server
ed9d46
mkdir -p $RPM_BUILD_ROOT%{sysconfdir}/rc.d/init.d/
ed9d46
install -m 755 initscript/systemtap $RPM_BUILD_ROOT%{sysconfdir}/rc.d/init.d/%{?scl_prefix}systemtap
ed9d46
install -m 755 initscript/stap-server $RPM_BUILD_ROOT%{sysconfdir}/rc.d/init.d/%{?scl_prefix}stap-server
ed9d46
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/systemtap
ed9d46
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/systemtap/conf.d
ed9d46
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/systemtap/script.d
ed9d46
install -m 644 initscript/config.systemtap $RPM_BUILD_ROOT%{_sysconfdir}/systemtap/config
ed9d46
ed9d46
%if %{with_systemd}
ed9d46
mkdir -p $RPM_BUILD_ROOT%{_unitdir}
ed9d46
touch $RPM_BUILD_ROOT%{_unitdir}/%{?scl_prefix}stap-server.service
ed9d46
install -m 644 stap-server.service $RPM_BUILD_ROOT%{_unitdir}/%{?scl_prefix}stap-server.service
ed9d46
mkdir -p $RPM_BUILD_ROOT%{_tmpfilesdir}
ed9d46
install -m 644 stap-server.conf $RPM_BUILD_ROOT%{_tmpfilesdir}/%{?scl_prefix}stap-server.conf
ed9d46
%else
ed9d46
install -m 755 initscript/stap-server $RPM_BUILD_ROOT%{initdir}/%{?scl_prefix}stap-server
ed9d46
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/stap-server/conf.d
ed9d46
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
ed9d46
install -m 644 initscript/config.stap-server $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/stap-server
ed9d46
%endif
ed9d46
ed9d46
%if %{with_emacsvim}
ed9d46
mkdir -p $RPM_BUILD_ROOT%{_emacs_sitelispdir}
ed9d46
install -p -m 644 emacs/systemtap-mode.el* $RPM_BUILD_ROOT%{_emacs_sitelispdir}
ed9d46
mkdir -p $RPM_BUILD_ROOT%{_emacs_sitestartdir}
ed9d46
install -p -m 644 emacs/systemtap-init.el $RPM_BUILD_ROOT%{_emacs_sitestartdir}/systemtap-init.el
ed9d46
for subdir in ftdetect ftplugin indent syntax
ed9d46
do
ed9d46
    mkdir -p $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/$subdir
ed9d46
    install -p -m 644 vim/$subdir/*.vim $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/$subdir
ed9d46
done
ed9d46
%endif
ed9d46
ed9d46
%if %{with_virtguest}
ed9d46
   mkdir -p $RPM_BUILD_ROOT%{udevrulesdir}
ed9d46
   %if %{with_systemd}
ed9d46
      install -p -m 644 staprun/guest/99-stapsh.rules $RPM_BUILD_ROOT%{udevrulesdir}
ed9d46
      mkdir -p $RPM_BUILD_ROOT%{_unitdir}
ed9d46
      install -p -m 644 staprun/guest/stapsh@.service $RPM_BUILD_ROOT%{_unitdir}
ed9d46
   %else
ed9d46
      install -p -m 644 staprun/guest/99-stapsh-init.rules $RPM_BUILD_ROOT%{udevrulesdir}
ed9d46
      install -p -m 755 staprun/guest/stapshd $RPM_BUILD_ROOT%{initdir}
ed9d46
      mkdir -p $RPM_BUILD_ROOT%{_libexecdir}/systemtap
ed9d46
      install -p -m 755 staprun/guest/stapsh-daemon $RPM_BUILD_ROOT%{_libexecdir}/systemtap
ed9d46
      mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/modules
ed9d46
      # Technically, this is only needed for RHEL5, in which the MODULE_ALIAS is missing, but
ed9d46
      # it does no harm in RHEL6 as well
ed9d46
      install -p -m 755 staprun/guest/virtio_console.modules $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/modules
ed9d46
   %endif
ed9d46
%endif
ed9d46
ed9d46
%if %{with_dracut}
ed9d46
   mkdir -p $RPM_BUILD_ROOT%{dracutstap}
ed9d46
   install -p -m 755 initscript/99stap/module-setup.sh $RPM_BUILD_ROOT%{dracutstap}
ed9d46
   install -p -m 755 initscript/99stap/install $RPM_BUILD_ROOT%{dracutstap}
ed9d46
   install -p -m 755 initscript/99stap/check $RPM_BUILD_ROOT%{dracutstap}
ed9d46
   install -p -m 755 initscript/99stap/start-staprun.sh $RPM_BUILD_ROOT%{dracutstap}
ed9d46
   touch $RPM_BUILD_ROOT%{dracutstap}/params.conf
ed9d46
%endif
ed9d46
ed9d46
%clean
ed9d46
rm -rf ${RPM_BUILD_ROOT}
ed9d46
ed9d46
%pre runtime
ed9d46
getent group stapusr >/dev/null || groupadd -g 156 -r stapusr 2>/dev/null || groupadd -r stapusr
ed9d46
getent group stapsys >/dev/null || groupadd -g 157 -r stapsys 2>/dev/null || groupadd -r stapsys
ed9d46
getent group stapdev >/dev/null || groupadd -g 158 -r stapdev 2>/dev/null || groupadd -r stapdev
ed9d46
exit 0
ed9d46
ed9d46
%pre server
ed9d46
getent group stap-server >/dev/null || groupadd -g 155 -r stap-server 2>/dev/null || groupadd -r stap-server
ed9d46
getent passwd stap-server >/dev/null || \
ed9d46
  useradd -c "Systemtap Compile Server" -u 155 -g stap-server -d %{_localstatedir}/lib/stap-server -r -s /sbin/nologin stap-server 2>/dev/null || \
ed9d46
  useradd -c "Systemtap Compile Server" -g stap-server -d %{_localstatedir}/lib/stap-server -r -s /sbin/nologin stap-server
ed9d46
ed9d46
%post server
ed9d46
ed9d46
# We have some duplication between the %files listings for the
ed9d46
# ~stap-server directories and the explicit mkdir/chown/chmod bits
ed9d46
# here.  Part of the reason may be that a preexisting stap-server
ed9d46
# account may well be placed somewhere other than
ed9d46
# %{_localstatedir}/lib/stap-server, but we'd like their permissions
ed9d46
# set similarly.
ed9d46
ed9d46
test -e ~stap-server && chmod 750 ~stap-server
ed9d46
ed9d46
if [ ! -f ~stap-server/.systemtap/rc ]; then
ed9d46
  mkdir -p ~stap-server/.systemtap
ed9d46
  chown stap-server:stap-server ~stap-server/.systemtap
ed9d46
  # PR16276: guess at a reasonable number for a default --rlimit-nproc
ed9d46
  numcpu=`/usr/bin/getconf _NPROCESSORS_ONLN`
ed9d46
  if [ -z "$numcpu" -o "$numcpu" -lt 1 ]; then numcpu=1; fi
ed9d46
  nproc=`expr $numcpu \* 30`
ed9d46
  echo "--rlimit-as=614400000 --rlimit-cpu=60 --rlimit-nproc=$nproc --rlimit-stack=1024000 --rlimit-fsize=51200000" > ~stap-server/.systemtap/rc
ed9d46
  chown stap-server:stap-server ~stap-server/.systemtap/rc
ed9d46
fi
ed9d46
ed9d46
test -e %{_localstatedir}/log/stap-server/log || {
ed9d46
     touch %{_localstatedir}/log/stap-server/log
ed9d46
     chmod 644 %{_localstatedir}/log/stap-server/log
ed9d46
     chown stap-server:stap-server %{_localstatedir}/log/stap-server/log
ed9d46
}
ed9d46
# Prepare the service
ed9d46
%if %{with_systemd}
ed9d46
     # Note, Fedora policy doesn't allow network services enabled by default
ed9d46
     # /bin/systemctl enable stap-server.service >/dev/null 2>&1 || :
ed9d46
     /bin/systemd-tmpfiles --create %{_tmpfilesdir}/stap-server.conf >/dev/null 2>&1 || :
ed9d46
%else
ed9d46
    /sbin/chkconfig --add %{?scl_prefix}stap-server
ed9d46
%endif
ed9d46
exit 0
ed9d46
ed9d46
%triggerin client -- systemtap-server
ed9d46
if test -e ~stap-server/.systemtap/ssl/server/stap.cert; then
ed9d46
   # echo Authorizing ssl-peer/trusted-signer certificate for local systemtap-server
ed9d46
   %{_libexecdir}/systemtap/stap-authorize-cert ~stap-server/.systemtap/ssl/server/stap.cert %{_sysconfdir}/systemtap/ssl/client >/dev/null
ed9d46
   %{_libexecdir}/systemtap/stap-authorize-cert ~stap-server/.systemtap/ssl/server/stap.cert %{_sysconfdir}/systemtap/staprun >/dev/null
ed9d46
fi
ed9d46
exit 0
ed9d46
# XXX: corresponding %triggerun?
ed9d46
ed9d46
%preun server
ed9d46
# Check that this is the actual deinstallation of the package, as opposed to
ed9d46
# just removing the old package on upgrade.
ed9d46
if [ $1 = 0 ] ; then
ed9d46
    %if %{with_systemd}
ed9d46
       /bin/systemctl --no-reload disable stap-server.service >/dev/null 2>&1 || :
ed9d46
       /bin/systemctl stop stap-server.service >/dev/null 2>&1 || :
ed9d46
    %else
ed9d46
        /sbin/service %{?scl_prefix}stap-server stop >/dev/null 2>&1
ed9d46
        /sbin/chkconfig --del %{?scl_prefix}stap-server
ed9d46
    %endif
ed9d46
fi
ed9d46
exit 0
ed9d46
ed9d46
%postun server
ed9d46
# Check whether this is an upgrade of the package.
ed9d46
# If so, restart the service if it's running
ed9d46
if [ "$1" -ge "1" ] ; then
ed9d46
    %if %{with_systemd}
ed9d46
        /bin/systemctl condrestart stap-server.service >/dev/null 2>&1 || :
ed9d46
    %else
ed9d46
        /sbin/service %{?scl_prefix}stap-server condrestart >/dev/null 2>&1 || :
ed9d46
    %endif
ed9d46
fi
ed9d46
exit 0
ed9d46
ed9d46
%post initscript
ed9d46
%if %{with_systemd}
ed9d46
    /bin/systemctl enable systemtap.service >/dev/null 2>&1 || :
ed9d46
%else
ed9d46
    /sbin/chkconfig --add %{?scl_prefix}systemtap
ed9d46
%endif
ed9d46
exit 0
ed9d46
ed9d46
%preun initscript
ed9d46
# Check that this is the actual deinstallation of the package, as opposed to
ed9d46
# just removing the old package on upgrade.
ed9d46
if [ $1 = 0 ] ; then
ed9d46
    %if %{with_systemd}
ed9d46
        /bin/systemctl --no-reload disable systemtap.service >/dev/null 2>&1 || :
ed9d46
        /bin/systemctl stop systemtap.service >/dev/null 2>&1 || :
ed9d46
    %else
ed9d46
        /sbin/service %{?scl_prefix}systemtap stop >/dev/null 2>&1
ed9d46
        /sbin/chkconfig --del %{?scl_prefix}systemtap
ed9d46
    %endif
ed9d46
fi
ed9d46
exit 0
ed9d46
ed9d46
%postun initscript
ed9d46
# Check whether this is an upgrade of the package.
ed9d46
# If so, restart the service if it's running
ed9d46
if [ "$1" -ge "1" ] ; then
ed9d46
    %if %{with_systemd}
ed9d46
        /bin/systemctl condrestart systemtap.service >/dev/null 2>&1 || :
ed9d46
    %else
ed9d46
        /sbin/service %{?scl_prefix}systemtap condrestart >/dev/null 2>&1 || :
ed9d46
    %endif
ed9d46
fi
ed9d46
exit 0
ed9d46
ed9d46
%if %{with_virtguest}
ed9d46
%post runtime-virtguest
ed9d46
%if %{with_systemd}
ed9d46
   # Start services if there are ports present
ed9d46
   if [ -d /dev/virtio-ports ]; then
ed9d46
      (find /dev/virtio-ports -iname 'org.systemtap.stapsh.[0-9]*' -type l \
ed9d46
         | xargs -n 1 basename \
ed9d46
         | xargs -n 1 -I {} /bin/systemctl start stapsh@{}.service) >/dev/null 2>&1 || :
ed9d46
   fi
ed9d46
%else
ed9d46
   /sbin/chkconfig --add stapshd
ed9d46
   /sbin/chkconfig stapshd on
ed9d46
   /sbin/service stapshd start >/dev/null 2>&1 || :
ed9d46
%endif
ed9d46
exit 0
ed9d46
ed9d46
%preun runtime-virtguest
ed9d46
# Stop service if this is an uninstall rather than an upgrade
ed9d46
if [ $1 = 0 ]; then
ed9d46
   %if %{with_systemd}
ed9d46
      # We need to stop all stapsh services. Because they are instantiated from
ed9d46
      # a template service file, we can't simply call disable. We need to find
ed9d46
      # all the running ones and stop them all individually
ed9d46
      for service in `/bin/systemctl --full | grep stapsh@ | cut -d ' ' -f 1`; do
ed9d46
         /bin/systemctl stop $service >/dev/null 2>&1 || :
ed9d46
      done
ed9d46
   %else
ed9d46
      /sbin/service stapshd stop >/dev/null 2>&1
ed9d46
      /sbin/chkconfig --del stapshd
ed9d46
   %endif
ed9d46
fi
ed9d46
exit 0
ed9d46
ed9d46
%postun runtime-virtguest
ed9d46
# Restart service if this is an upgrade rather than an uninstall
ed9d46
if [ "$1" -ge "1" ]; then
ed9d46
   %if %{with_systemd}
ed9d46
      # We need to restart all stapsh services. Because they are instantiated from
ed9d46
      # a template service file, we can't simply call restart. We need to find
ed9d46
      # all the running ones and restart them all individually
ed9d46
      for service in `/bin/systemctl --full | grep stapsh@ | cut -d ' ' -f 1`; do
ed9d46
         /bin/systemctl condrestart $service >/dev/null 2>&1 || :
ed9d46
      done
ed9d46
   %else
ed9d46
      /sbin/service stapshd condrestart >/dev/null 2>&1
ed9d46
   %endif
ed9d46
fi
ed9d46
exit 0
ed9d46
%endif
ed9d46
ed9d46
%post
ed9d46
# Remove any previously-built uprobes.ko materials
ed9d46
(make -C %{_datadir}/systemtap/runtime/uprobes clean) >/dev/null 2>&1 || true
ed9d46
(/sbin/rmmod uprobes) >/dev/null 2>&1 || true
ed9d46
ed9d46
%preun
ed9d46
# Ditto
ed9d46
(make -C %{_datadir}/systemtap/runtime/uprobes clean) >/dev/null 2>&1 || true
ed9d46
(/sbin/rmmod uprobes) >/dev/null 2>&1 || true
ed9d46
ed9d46
# ------------------------------------------------------------------------
ed9d46
ed9d46
%if %{with_java}
ed9d46
ed9d46
%triggerin runtime-java -- java-1.8.0-openjdk, java-1.7.0-openjdk, java-1.6.0-openjdk
ed9d46
for f in %{_libexecdir}/systemtap/libHelperSDT_*.so; do
ed9d46
    %ifarch %{ix86}
ed9d46
	arch=i386
ed9d46
    %else
ed9d46
        arch=`basename $f | cut -f2 -d_ | cut -f1 -d.`
ed9d46
    %endif
ed9d46
    for archdir in %{_jvmdir}/*openjdk*/jre/lib/${arch}; do
ed9d46
	 if [ -d ${archdir} ]; then
ed9d46
            ln -sf %{_libexecdir}/systemtap/libHelperSDT_${arch}.so ${archdir}/libHelperSDT_${arch}.so
ed9d46
            ln -sf %{_libexecdir}/systemtap/HelperSDT.jar ${archdir}/../ext/HelperSDT.jar
ed9d46
	 fi
ed9d46
    done
ed9d46
done
ed9d46
ed9d46
%triggerun runtime-java -- java-1.8.0-openjdk, java-1.7.0-openjdk, java-1.6.0-openjdk
ed9d46
for f in %{_libexecdir}/systemtap/libHelperSDT_*.so; do
ed9d46
    %ifarch %{ix86}
ed9d46
	arch=i386
ed9d46
    %else
ed9d46
        arch=`basename $f | cut -f2 -d_ | cut -f1 -d.`
ed9d46
    %endif
ed9d46
    for archdir in %{_jvmdir}/*openjdk*/jre/lib/${arch}; do
ed9d46
        rm -f ${archdir}/libHelperSDT_${arch}.so
ed9d46
        rm -f ${archdir}/../ext/HelperSDT.jar
ed9d46
    done
ed9d46
done
ed9d46
ed9d46
%triggerpostun runtime-java -- java-1.8.0-openjdk, java-1.7.0-openjdk, java-1.6.0-openjdk
ed9d46
# Restore links for any JDKs remaining after a package removal:
ed9d46
for f in %{_libexecdir}/systemtap/libHelperSDT_*.so; do
ed9d46
    %ifarch %{ix86}
ed9d46
	arch=i386
ed9d46
    %else
ed9d46
        arch=`basename $f | cut -f2 -d_ | cut -f1 -d.`
ed9d46
    %endif
ed9d46
    for archdir in %{_jvmdir}/*openjdk*/jre/lib/${arch}; do
ed9d46
	 if [ -d ${archdir} ]; then
ed9d46
            ln -sf %{_libexecdir}/systemtap/libHelperSDT_${arch}.so ${archdir}/libHelperSDT_${arch}.so
ed9d46
            ln -sf %{_libexecdir}/systemtap/HelperSDT.jar ${archdir}/../ext/HelperSDT.jar
ed9d46
	 fi
ed9d46
    done
ed9d46
done
ed9d46
ed9d46
# XXX: analogous support for other types of JRE/JDK??
ed9d46
ed9d46
%endif
ed9d46
ed9d46
# ------------------------------------------------------------------------
ed9d46
ed9d46
%files -f systemtap.lang
ed9d46
# The master "systemtap" rpm doesn't include any files.
ed9d46
ed9d46
%files server -f systemtap.lang
ed9d46
%defattr(-,root,root)
ed9d46
%{_bindir}/stap-server
ed9d46
%dir %{_libexecdir}/systemtap
ed9d46
%{_libexecdir}/systemtap/stap-serverd
ed9d46
%{_libexecdir}/systemtap/stap-start-server
ed9d46
%{_libexecdir}/systemtap/stap-stop-server
ed9d46
%{_libexecdir}/systemtap/stap-gen-cert
ed9d46
%{_libexecdir}/systemtap/stap-sign-module
ed9d46
%{_libexecdir}/systemtap/stap-authorize-cert
ed9d46
%{_libexecdir}/systemtap/stap-env
ed9d46
%{_mandir}/man7/error*
ed9d46
%{_mandir}/man7/stappaths.7*
ed9d46
%{_mandir}/man7/warning*
ed9d46
%{_mandir}/man8/stap-server.8*
ed9d46
%if %{with_systemd}
ed9d46
%{_unitdir}/stap-server.service
ed9d46
%{_tmpfilesdir}/stap-server.conf
ed9d46
%else
ed9d46
%{initdir}/%{?scl_prefix}stap-server
ed9d46
%dir %{_sysconfdir}/stap-server/conf.d
ed9d46
%config(noreplace) %{_sysconfdir}/sysconfig/stap-server
ed9d46
%endif
ed9d46
%config(noreplace) %{_sysconfdir}/logrotate.d/stap-server
ed9d46
%dir %{_sysconfdir}/stap-server
ed9d46
%dir %attr(0750,stap-server,stap-server) %{_localstatedir}/lib/stap-server
ed9d46
%dir %attr(0700,stap-server,stap-server) %{_localstatedir}/lib/stap-server/.systemtap
ed9d46
%dir %attr(0755,stap-server,stap-server) %{_localstatedir}/log/stap-server
ed9d46
%ghost %config(noreplace) %attr(0644,stap-server,stap-server) %{_localstatedir}/log/stap-server/log
ed9d46
%ghost %attr(0755,stap-server,stap-server) %{_localstatedir}/run/stap-server
ed9d46
%doc README README.unprivileged AUTHORS NEWS 
ed9d46
%{!?_licensedir:%global license %%doc}
ed9d46
%license COPYING
ed9d46
ed9d46
ed9d46
%files devel -f systemtap.lang
ed9d46
%{_bindir}/stap
ed9d46
%{_bindir}/stap-prep
ed9d46
%{_bindir}/stap-report
ed9d46
%dir %{_datadir}/systemtap
ed9d46
%{_datadir}/systemtap/runtime
ed9d46
%{_datadir}/systemtap/tapset
ed9d46
%{_mandir}/man1/stap.1*
ed9d46
%{_mandir}/man1/stap-prep.1*
ed9d46
%{_mandir}/man1/stap-report.1*
ed9d46
%{_mandir}/man7/error*
ed9d46
%{_mandir}/man7/stappaths.7*
ed9d46
%{_mandir}/man7/warning*
ed9d46
%doc README README.unprivileged AUTHORS NEWS 
ed9d46
%{!?_licensedir:%global license %%doc}
ed9d46
%license COPYING
ed9d46
%if %{with_java}
ed9d46
%dir %{_libexecdir}/systemtap
ed9d46
%{_libexecdir}/systemtap/libHelperSDT_*.so
ed9d46
%endif
ed9d46
%if %{with_bundled_elfutils}
ed9d46
%dir %{_libdir}/systemtap
ed9d46
%{_libdir}/systemtap/lib*.so*
ed9d46
%endif
ed9d46
%if %{with_emacsvim}
ed9d46
%{_emacs_sitelispdir}/*.el*
ed9d46
%{_emacs_sitestartdir}/systemtap-init.el
ed9d46
%{_datadir}/vim/vimfiles/*/*.vim
ed9d46
%endif
ed9d46
# Notice that the stap-resolve-module-function.py file is used by
ed9d46
# *both* the python2 and python3 subrpms.  Both subrpms use that same
ed9d46
# python script to help list python probes.
ed9d46
%if %{with_python3_probes} || %{with_python2_probes}
ed9d46
%{_libexecdir}/systemtap/python/stap-resolve-module-function.py
ed9d46
%exclude %{_libexecdir}/systemtap/python/stap-resolve-module-function.py?
ed9d46
%endif
ed9d46
ed9d46
ed9d46
%files runtime -f systemtap.lang
ed9d46
%defattr(-,root,root)
ed9d46
%attr(4110,root,stapusr) %{_bindir}/staprun
ed9d46
%{_bindir}/stapsh
ed9d46
%{_bindir}/stap-merge
ed9d46
%{_bindir}/stap-report
ed9d46
%if %{with_dyninst}
ed9d46
%{_bindir}/stapdyn
ed9d46
%endif
ed9d46
%if %{with_bpf}
ed9d46
%{_bindir}/stapbpf
ed9d46
%endif
ed9d46
%dir %{_libexecdir}/systemtap
ed9d46
%{_libexecdir}/systemtap/stapio
ed9d46
%{_libexecdir}/systemtap/stap-authorize-cert
ed9d46
%if %{with_crash}
ed9d46
%dir %{_libdir}/systemtap
ed9d46
%{_libdir}/systemtap/staplog.so*
ed9d46
%endif
ed9d46
%{_mandir}/man1/stap-report.1*
ed9d46
%{_mandir}/man7/error*
ed9d46
%{_mandir}/man7/stappaths.7*
ed9d46
%{_mandir}/man7/warning*
ed9d46
%{_mandir}/man8/stapsh.8*
ed9d46
%{_mandir}/man8/staprun.8*
ed9d46
%if %{with_dyninst}
ed9d46
%{_mandir}/man8/stapdyn.8*
ed9d46
%endif
ed9d46
%if %{with_bpf}
ed9d46
%{_mandir}/man8/stapbpf.8*
ed9d46
%endif
ed9d46
%doc README README.security AUTHORS NEWS 
ed9d46
%{!?_licensedir:%global license %%doc}
ed9d46
%license COPYING
ed9d46
ed9d46
ed9d46
%files client -f systemtap.lang
ed9d46
%defattr(-,root,root)
ed9d46
%doc README README.unprivileged AUTHORS NEWS
ed9d46
%{_datadir}/systemtap/examples
ed9d46
%{!?_licensedir:%global license %%doc}
ed9d46
%license COPYING
ed9d46
%if %{with_docs}
ed9d46
%doc docs.installed/*.pdf
ed9d46
%if %{with_htmldocs}
ed9d46
%doc docs.installed/tapsets/*.html
ed9d46
%doc docs.installed/SystemTap_Beginners_Guide
ed9d46
%endif
ed9d46
%endif
ed9d46
%{_bindir}/stap
ed9d46
%{_bindir}/stap-prep
ed9d46
%{_bindir}/stap-report
ed9d46
%{_mandir}/man1/stap.1*
ed9d46
%{_mandir}/man1/stap-prep.1*
ed9d46
%{_mandir}/man1/stap-merge.1*
ed9d46
%{_mandir}/man1/stap-report.1*
ed9d46
%{_mandir}/man1/stapref.1*
ed9d46
%{_mandir}/man3/*
ed9d46
%{_mandir}/man7/error*
ed9d46
%{_mandir}/man7/stappaths.7*
ed9d46
%{_mandir}/man7/warning*
ed9d46
%dir %{_datadir}/systemtap
ed9d46
%{_datadir}/systemtap/tapset
ed9d46
ed9d46
ed9d46
ed9d46
%files initscript
ed9d46
%defattr(-,root,root)
ed9d46
%{sysconfdir}/rc.d/init.d/%{?scl_prefix}systemtap
ed9d46
%dir %{_sysconfdir}/systemtap
ed9d46
%dir %{_sysconfdir}/systemtap/conf.d
ed9d46
%dir %{_sysconfdir}/systemtap/script.d
ed9d46
%config(noreplace) %{_sysconfdir}/systemtap/config
ed9d46
%dir %{_localstatedir}/cache/systemtap
ed9d46
%ghost %{_localstatedir}/run/systemtap
ed9d46
%{_mandir}/man8/systemtap.8*
ed9d46
%if %{with_dracut}
ed9d46
   %dir %{dracutstap}
ed9d46
   %{dracutstap}/*
ed9d46
%endif
ed9d46
ed9d46
ed9d46
%files sdt-devel -f systemtap.lang
ed9d46
%defattr(-,root,root)
ed9d46
%{_bindir}/dtrace
ed9d46
%{_includedir}/sys/sdt.h
ed9d46
%{_includedir}/sys/sdt-config.h
ed9d46
%{_mandir}/man1/dtrace.1*
ed9d46
%doc README AUTHORS NEWS 
ed9d46
%{!?_licensedir:%global license %%doc}
ed9d46
%license COPYING
ed9d46
ed9d46
ed9d46
%files testsuite
ed9d46
%defattr(-,root,root)
ed9d46
%dir %{_datadir}/systemtap
ed9d46
%{_datadir}/systemtap/testsuite
ed9d46
ed9d46
ed9d46
%if %{with_java}
ed9d46
%files runtime-java
ed9d46
%dir %{_libexecdir}/systemtap
ed9d46
%{_libexecdir}/systemtap/libHelperSDT_*.so
ed9d46
%{_libexecdir}/systemtap/HelperSDT.jar
ed9d46
%{_libexecdir}/systemtap/stapbm
ed9d46
%endif
ed9d46
ed9d46
%if %{with_python2_probes}
ed9d46
%files runtime-python2
ed9d46
%{python_sitearch}/HelperSDT
ed9d46
%{python_sitearch}/HelperSDT-*.egg-info
ed9d46
%endif
ed9d46
%if %{with_python3_probes}
ed9d46
%files runtime-python3
ed9d46
%{python3_sitearch}/HelperSDT
ed9d46
%{python3_sitearch}/HelperSDT-*.egg-info
ed9d46
%endif
ed9d46
ed9d46
%if %{with_virthost}
ed9d46
%files runtime-virthost
ed9d46
%{_mandir}/man1/stapvirt.1*
ed9d46
%{_bindir}/stapvirt
ed9d46
%endif
ed9d46
ed9d46
%if %{with_virtguest}
ed9d46
%files runtime-virtguest
ed9d46
%if %{with_systemd}
ed9d46
   %{udevrulesdir}/99-stapsh.rules
ed9d46
   %{_unitdir}/stapsh@.service
ed9d46
%else
ed9d46
   %{udevrulesdir}/99-stapsh-init.rules
ed9d46
   %dir %{_libexecdir}/systemtap
ed9d46
   %{_libexecdir}/systemtap/stapsh-daemon
ed9d46
   %{initdir}/stapshd
ed9d46
   %{_sysconfdir}/sysconfig/modules/virtio_console.modules
ed9d46
%endif
ed9d46
%endif
ed9d46
ed9d46
# ------------------------------------------------------------------------
ed9d46
ed9d46
# Future new-release entries should be of the form
ed9d46
# * DDD MMM DD YYYY YOURNAME <YOUREMAIL> - V-R
ed9d46
# - Upstream release, see wiki page below for detailed notes.
ed9d46
#   http://sourceware.org/systemtap/wiki/SystemTapReleases
ed9d46
ed9d46
%changelog
ed9d46
* Wed Jul 18 2018 William Cohen <wcohen@redhat.com> - 3.3-1
ed9d46
- rebase on systemtap-3.3
ed9d46
ed9d46
* Tue Feb 27 2018 Frank Ch. Eigler <fche@redhat.com> - 3.0-4s
ed9d46
- respin for newer dyninst
ed9d46
ed9d46
* Thu Oct 05 2017 Frank Ch. Eigler <fche@redhat.com> - 3.0-3s
ed9d46
- restore ppc64 dyninst option; available on .el7 variant
ed9d46
ed9d46
* Wed Oct 04 2017 Frank Ch. Eigler <fche@redhat.com> - 3.0-2s
ed9d46
- BZ1495069, work around dts docker image repo problems by req /usr/bin/gcc etc.
ed9d46
ed9d46
* Mon Jun 26 2017 Frank Ch. Eigler <fche@redhat.com> - 3.0-1s
ed9d46
- Upstream release
ed9d46
ed9d46
* Thu Sep 22 2016 Frank Ch. Eigler <fche@redhat.com> - 3.0-8s
ed9d46
- rhbz1378462 stap-server tls cert creation
ed9d46
ed9d46
* Mon Sep 19 2016 Frank Ch. Eigler <fche@redhat.com> - 3.0-7s
ed9d46
- rhbz1376515 ppc64le probe point / parameter value fix
ed9d46
ed9d46
* Wed Aug 24 2016 Frank Ch. Eigler <fche@redhat.com> - 3.0-6
ed9d46
- rhbz1346112 delay tls cert creation redux
ed9d46
ed9d46
* Thu Aug 11 2016 Frank Ch. Eigler <fche@redhat.com> - 3.0-5
ed9d46
- rhbz1312169 stap-prep debuginfo-install improvement
ed9d46
ed9d46
* Tue Aug 09 2016 Frank Ch. Eigler <fche@redhat.com> - 3.0-4s
ed9d46
- rhbz1365550 PR19874 alarm(60) in staprun system()
ed9d46
ed9d46
* Thu Jul 21 2016 Frank Ch. Eigler <fche@redhat.com> - 3.0-3s
ed9d46
- rhbz1346112 delay tls cert creation
ed9d46
- rhbz1269062 null elevator
ed9d46
- rhbz1337416 'count' tapset variable - autocast/@defined
ed9d46
ed9d46
* Wed May 04 2016 Frank Ch. Eigler <fche@redhat.com> - 3.0-2
ed9d46
- 4 upstream patches for kernel lockdep hygiene, bz1242368
ed9d46
ed9d46
* Tue May 03 2016 Frank Ch. Eigler <fche@redhat.com> - 3.0-1
ed9d46
- Upstream release.
ed9d46
ed9d46
* Fri Apr 01 2016 Frank Ch. Eigler <fche@redhat.com> - 2.9-3s
ed9d46
- buildroot bump
ed9d46
ed9d46
* Thu Feb 25 2016 Frank Ch. Eigler <fche@redhat.com> - 2.9-2s
ed9d46
- buildroot bump
ed9d46
ed9d46
* Fri Jan 29 2016 Josh Stone <jistone@redhat.com> - 2.9-1s
ed9d46
- rebase to upstream 2.9
ed9d46
ed9d46
* Tue Jul  7 2015 Frank Ch. Eigler <fche@redhat.com> - 2.8-4
ed9d46
- rhbz1224363 (rebase to upstream 2.8+)
ed9d46
ed9d46
* Wed Mar 25 2015 Frank Ch. Eigler <fche@redhat.com> - 2.6-11
ed9d46
- rhbz1121363 (dracut support)
ed9d46
ed9d46
* Fri Feb 13 2015 Frank Ch. Eigler <fche@redhat.com> - 2.6-10
ed9d46
- rhbz1172781 (nfs3_proc_read_setup tapset)
ed9d46
- rhbz1128209 (uninstalled stapvirt files found)
ed9d46
ed9d46
* Fri Jan 09 2015 Frank Ch. Eigler <fche@redhat.com> - 2.6-9
ed9d46
- dts3.1 merge from rhel-7.1
ed9d46
- remove bodies of with_java, with_virtguest, with_virthost conditionals
ed9d46
ed9d46
* Wed Dec 10 2014 Frank Ch. Eigler <fche@redhat.com> - 2.6-8
ed9d46
- rhbz1171823 (nfsd svc_fh access)
ed9d46
ed9d46
* Wed Nov 26 2014 Frank Ch. Eigler <fche@redhat.com> - 2.6-7
ed9d46
- rhbz1167652 (stap dracut empty)
ed9d46
ed9d46
* Thu Nov 20 2014 Frank Ch. Eigler <fche@redhat.com> - 2.6-6
ed9d46
- rhbz1164373 (fix ppc64 kprobes via KERNEL_RELOC_SYMBOL)
ed9d46
- rhbz1119335 (document STAP_FIPS_OVERRIDE in staprun.8)
ed9d46
- rhbz1127591 (ppc64 hcall_* tracepoint blacklisting)
ed9d46
ed9d46
* Fri Oct 17 2014 Frank Ch. Eigler <fche@redhat.com> - 2.6-5
ed9d46
- RHBZ1153673 (stap segv during optimization)
ed9d46
ed9d46
* Fri Sep 19 2014 Frank Ch. Eigler <fche@redhat.com> - 2.6-3
ed9d46
- Added probinson's patch BZ1141919 for enabling more ppc64/aarch64 facilities,
ed9d46
  with some staplog.c followup
ed9d46
ed9d46
* Tue Sep 09 2014 Josh Stone <jistone@redhat.com> - 2.6-2
ed9d46
- Backport fix for 1139844
ed9d46
ed9d46
* Fri Sep 05 2014 Josh Stone <jistone@redhat.com> - 2.6-1
ed9d46
- Upstream release, rebased for 1107735
ed9d46
ed9d46
* Wed Aug 27 2014 Josh Stone <jistone@redhat.com> - 2.4-16
ed9d46
- Exclude ppc64le from with_crash (1125693)
ed9d46
ed9d46
* Tue Aug 26 2014 Josh Stone <jistone@redhat.com> - 2.4-15
ed9d46
- Tighten arch lists for prelink and dyninst (1094349, 1125693)
ed9d46
ed9d46
* Fri Mar 28 2014 Jonathan Lebon <jlebon@redhat.com> - 2.4-14
ed9d46
- Small fix on latest backport fix for dyninst runtime
ed9d46
ed9d46
* Fri Mar 28 2014 Jonathan Lebon <jlebon@redhat.com> - 2.4-13
ed9d46
- Backport fixes for 1051649 (see comments 4 and 5)
ed9d46
ed9d46
* Thu Mar 06 2014 Jonathan Lebon <jlebon@redhat.com> - 2.4-12
ed9d46
- Backport fix for 1073640
ed9d46
ed9d46
* Wed Feb 12 2014 Jonathan Lebon <jlebon@redhat.com> - 2.4-11
ed9d46
- Backport fix for 847285
ed9d46
ed9d46
* Wed Feb 12 2014 Jonathan Lebon <jlebon@redhat.com> - 2.4-10
ed9d46
- Apply spec file patches to this one, not the tarred one
ed9d46
- Add missing autoreconf patch for backport feature (1051649)
ed9d46
ed9d46
* Tue Feb 11 2014 Jonathan Lebon <jlebon@redhat.com> - 2.4-9
ed9d46
- Backport fixes for: 1062076, 1020207
ed9d46
ed9d46
* Tue Jan 28 2014 Daniel Mach <dmach@redhat.com> - 2.4-8
ed9d46
- Mass rebuild 2014-01-24
ed9d46
ed9d46
* Fri Jan 24 2014 Jonathan Lebon <jlebon@redhat.com> - 2.4-7
ed9d46
- Backport fix for 1057773
ed9d46
ed9d46
* Wed Jan 22 2014 Frank Ch. Subbackportmeister Eigler <fche@redhat.com> - 2.4-6
ed9d46
- Backport fixes for: 1056687
ed9d46
ed9d46
* Wed Jan 22 2014 Jonathan Lebon <jlebon@redhat.com> - 2.4-5
ed9d46
- Backport fixes for: 1035752, 1035850
ed9d46
ed9d46
* Tue Jan 21 2014 Jonathan Lebon <jlebon@redhat.com> - 2.4-4
ed9d46
- Backport fix for 1055778
ed9d46
ed9d46
* Fri Jan 17 2014 Jonathan Lebon <jlebon@redhat.com> - 2.4-3
ed9d46
- Backport fixes for: 1054962, 1054956, 1054954, 1044429
ed9d46
- Backport boot-time probing feature (1051649)
ed9d46
ed9d46
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.4-2
ed9d46
- Mass rebuild 2013-12-27
ed9d46
ed9d46
* Wed Nov 06 2013 Frank Ch. Eigler <fche@redhat.com> - 2.4-1
ed9d46
- Upstream release.
ed9d46
ed9d46
* Wed Oct 09 2013 Jonathan Lebon <jlebon@redhat.com>
ed9d46
- Added runtime-virthost and runtime-virtguest packages.
ed9d46
ed9d46
* Thu Jul 25 2013 Frank Ch. Eigler <fche@redhat.com> - 2.3-1
ed9d46
- Upstream release.
ed9d46
ed9d46
* Thu May 16 2013 Frank Ch. Eigler <fche@redhat.com> - 2.2.1-1
ed9d46
- Upstream release.
ed9d46
ed9d46
* Tue May 14 2013 Frank Ch. Eigler <fche@redhat.com> - 2.2-1
ed9d46
- Upstream release.
ed9d46
ed9d46
* Wed Feb 13 2013 Serguei Makarov <smakarov@redhat.com> - 2.1-1
ed9d46
- Upstream release.
ed9d46
ed9d46
* Tue Oct 09 2012 Josh Stone <jistone@redhat.com> - 2.0-1
ed9d46
- Upstream release.
ed9d46
ed9d46
* Tue Sep 11 2012 William Cohen <wcohen@redhat.com> - 1.8-7
ed9d46
- rhbz847919 need scl-compatible init scripts
ed9d46
- Backported fixes:
ed9d46
- rhbz848459 "groupadd: GID 156 is not unique" while installing systemtap-runtime-1.8-4.el5
ed9d46
- rhbz848460 sdt.c on systemtap-testsuite cannot be compiled
ed9d46
- rhbz848461 /usr/libexec/systemtap/stap-authorize-cert: No such file or directory
ed9d46
ed9d46
* Wed Sep 5 2012 William Cohen <wcohen@redhat.com> - 1.8-6
ed9d46
- Backport fix for rhbz853357.
ed9d46
ed9d46
* Thu Jul 5 2012 William Cohen <wcohen@redhat.com> - 1.8-5
ed9d46
- Make compatible with software collections.
ed9d46
ed9d46
* Wed Jun 27 2012 Stan Cox <scox@redhat.com> - 1.8-4
ed9d46
- Backported fix for pr14325
ed9d46
ed9d46
* Wed Jun 27 2012 Stan Cox <scox@redhat.com> - 1.8-3
ed9d46
- No publican in rhel 5.
ed9d46
ed9d46
* Wed Jun 27 2012 Stan Cox <scox@redhat.com> - 1.8-2
ed9d46
- Add s390 to the publican blacklist.
ed9d46
ed9d46
* Sun Jun 17 2012 Frank Ch. Eigler <fche@redhat.com> - 1.8-1
ed9d46
- Upstream release.
ed9d46
ed9d46
* Wed Feb 01 2012 Frank Ch. Eigler <fche@redhat.com> - 1.7-1
ed9d46
- Upstream release.
ed9d46
ed9d46
* Fri Jan 13 2012 David Smith <dsmith@redhat.com> - 1.6-2
ed9d46
- Fixed /bin/mktemp require.
ed9d46
ed9d46
* Mon Jul 25 2011 Stan Cox <scox@redhat.com> - 1.6-1
ed9d46
- Upstream release.
ed9d46
ed9d46
* Mon May 23 2011 Stan Cox <scox@redhat.com> - 1.5-1
ed9d46
- Upstream release.
ed9d46
ed9d46
* Mon Jan 17 2011 Frank Ch. Eigler <fche@redhat.com> - 1.4-1
ed9d46
- Upstream release.
ed9d46
ed9d46
* Wed Jul 21 2010 Josh Stone <jistone@redhat.com> - 1.3-1
ed9d46
- Upstream release.
ed9d46
ed9d46
* Mon Mar 22 2010 Frank Ch. Eigler <fche@redhat.com> - 1.2-1
ed9d46
- Upstream release.
ed9d46
ed9d46
* Mon Dec 21 2009 David Smith <dsmith@redhat.com> - 1.1-1
ed9d46
- Upstream release.
ed9d46
ed9d46
* Tue Sep 22 2009 Josh Stone <jistone@redhat.com> - 1.0-1
ed9d46
- Upstream release.
ed9d46
ed9d46
* Tue Aug  4 2009 Josh Stone <jistone@redhat.com> - 0.9.9-1
ed9d46
- Upstream release.
ed9d46
ed9d46
* Thu Jun 11 2009 Josh Stone <jistone@redhat.com> - 0.9.8-1
ed9d46
- Upstream release.
ed9d46
ed9d46
* Thu Apr 23 2009 Josh Stone <jistone@redhat.com> - 0.9.7-1
ed9d46
- Upstream release.
ed9d46
ed9d46
* Fri Mar 27 2009 Josh Stone <jistone@redhat.com> - 0.9.5-1
ed9d46
- Upstream release.
ed9d46
ed9d46
* Wed Mar 18 2009 Will Cohen <wcohen@redhat.com> - 0.9-2
ed9d46
- Add location of man pages.
ed9d46
ed9d46
* Tue Feb 17 2009 Frank Ch. Eigler <fche@redhat.com> - 0.9-1
ed9d46
- Upstream release.
ed9d46
ed9d46
* Thu Nov 13 2008 Frank Ch. Eigler <fche@redhat.com> - 0.8-1
ed9d46
- Upstream release.
ed9d46
ed9d46
* Tue Jul 15 2008 Frank Ch. Eigler <fche@redhat.com> - 0.7-1
ed9d46
- Upstream release.
ed9d46
ed9d46
* Fri Feb  1 2008 Frank Ch. Eigler <fche@redhat.com> - 0.6.1-3
ed9d46
- Add zlib-devel to buildreq; missing from crash-devel
ed9d46
- Process testsuite .stp files for #!stap->#!/usr/bin/stap
ed9d46
ed9d46
* Fri Jan 18 2008 Frank Ch. Eigler <fche@redhat.com> - 0.6.1-1
ed9d46
- Add crash-devel buildreq to build staplog.so crash(8) module.
ed9d46
- Many robustness & functionality improvements:
ed9d46
ed9d46
* Wed Dec  5 2007 Will Cohen <wcohen@redhat.com> - 0.6-2
ed9d46
- Correct Source to point to location contain code.
ed9d46
ed9d46
* Thu Aug  9 2007 David Smith <dsmith@redhat.com> - 0.6-1
ed9d46
- Bumped version, added libcap-devel BuildRequires.
ed9d46
ed9d46
* Wed Jul 11 2007 Will Cohen <wcohen@redhat.com> - 0.5.14-2
ed9d46
- Fix Requires and BuildRequires for sqlite.
ed9d46
ed9d46
* Mon Jul  2 2007 Frank Ch. Eigler <fche@redhat.com> - 0.5.14-1
ed9d46
- Many robustness improvements: 1117, 1134, 1305, 1307, 1570, 1806,
ed9d46
  2033, 2116, 2224, 2339, 2341, 2406, 2426, 2438, 2583, 3037,
ed9d46
  3261, 3282, 3331, 3428 3519, 3545, 3625, 3648, 3880, 3888, 3911,
ed9d46
  3952, 3965, 4066, 4071, 4075, 4078, 4081, 4096, 4119, 4122, 4127,
ed9d46
  4146, 4171, 4179, 4183, 4221, 4224, 4254, 4281, 4319, 4323, 4326,
ed9d46
  4329, 4332, 4337, 4415, 4432, 4444, 4445, 4458, 4467, 4470, 4471,
ed9d46
  4518, 4567, 4570, 4579, 4589, 4609, 4664
ed9d46
ed9d46
* Mon Mar 26 2007 Frank Ch. Eigler <fche@redhat.com> - 0.5.13-1
ed9d46
- An emergency / preliminary refresh, mainly for compatibility
ed9d46
  with 2.6.21-pre kernels.
ed9d46
ed9d46
* Mon Jan  1 2007 Frank Ch. Eigler <fche@redhat.com> - 0.5.12-1
ed9d46
- Many changes, see NEWS file.
ed9d46
ed9d46
* Tue Sep 26 2006 David Smith <dsmith@redhat.com> - 0.5.10-1
ed9d46
- Added 'systemtap-runtime' subpackage.
ed9d46
ed9d46
* Wed Jul 19 2006 Roland McGrath <roland@redhat.com> - 0.5.9-1
ed9d46
- PRs 2669, 2913
ed9d46
ed9d46
* Fri Jun 16 2006 Roland McGrath <roland@redhat.com> - 0.5.8-1
ed9d46
- PRs 2627, 2520, 2228, 2645
ed9d46
ed9d46
* Fri May  5 2006 Frank Ch. Eigler <fche@redhat.com> - 0.5.7-1
ed9d46
- PRs 2511 2453 2307 1813 1944 2497 2538 2476 2568 1341 2058 2220 2437
ed9d46
  1326 2014 2599 2427 2438 2465 1930 2149 2610 2293 2634 2506 2433
ed9d46
ed9d46
* Tue Apr  4 2006 Roland McGrath <roland@redhat.com> - 0.5.5-1
ed9d46
- Many changes, affected PRs include: 2068, 2293, 1989, 2334,
ed9d46
  1304, 2390, 2425, 953.
ed9d46
ed9d46
* Wed Feb  1 2006 Frank Ch. Eigler <fche@redhat.com> - 0.5.4-1
ed9d46
- PRs 1916, 2205, 2142, 2060, 1379
ed9d46
ed9d46
* Mon Jan 16 2006 Roland McGrath <roland@redhat.com> - 0.5.3-1
ed9d46
- Many changes, affected PRs include: 2056, 1144, 1379, 2057,
ed9d46
  2060, 1972, 2140, 2148
ed9d46
ed9d46
* Mon Dec 19 2005 Roland McGrath <roland@redhat.com> - 0.5.2-1
ed9d46
- Fixed build with gcc 4.1, various tapset changes.
ed9d46
ed9d46
* Wed Dec  7 2005 Roland McGrath <roland@redhat.com> - 0.5.1-1
ed9d46
- elfutils update, build changes
ed9d46
ed9d46
* Fri Dec 02 2005  Frank Ch. Eigler  <fche@redhat.com> - 0.5-1
ed9d46
- Many fixes and improvements: 1425, 1536, 1505, 1380, 1329, 1828, 1271,
ed9d46
  1339, 1340, 1345, 1837, 1917, 1903, 1336, 1868, 1594, 1564, 1276, 1295
ed9d46
ed9d46
* Mon Oct 31 2005 Roland McGrath <roland@redhat.com> - 0.4.2-1
ed9d46
- Many fixes and improvements: PRs 1344, 1260, 1330, 1295, 1311, 1368,
ed9d46
  1182, 1131, 1332, 1366, 1456, 1271, 1338, 1482, 1477, 1194.
ed9d46
ed9d46
* Wed Sep 14 2005 Roland McGrath <roland@redhat.com> - 0.4.1-1
ed9d46
- Many fixes and improvements since 0.2.2; relevant PRs include:
ed9d46
  1122, 1134, 1155, 1172, 1174, 1175, 1180, 1186, 1187, 1191, 1193, 1195,
ed9d46
  1197, 1205, 1206, 1209, 1213, 1244, 1257, 1258, 1260, 1265, 1268, 1270,
ed9d46
  1289, 1292, 1306, 1335, 1257
ed9d46
ed9d46
* Wed Sep  7 2005 Frank Ch. Eigler <fche@redhat.com>
ed9d46
- Bump version.
ed9d46
ed9d46
* Tue Aug 16 2005 Frank Ch. Eigler <fche@redhat.com>
ed9d46
- Bump version.
ed9d46
ed9d46
* Wed Aug  3 2005 Martin Hunt <hunt@redhat.com> - 0.2.2-1
ed9d46
- Add directory /var/cache/systemtap
ed9d46
- Add stp_check to /usr/libexec/systemtap
ed9d46
ed9d46
* Wed Aug  3 2005 Roland McGrath <roland@redhat.com> - 0.2.1-1
ed9d46
- New version 0.2.1, various fixes.
ed9d46
ed9d46
* Fri Jul 29 2005 Roland McGrath <roland@redhat.com> - 0.2-1
ed9d46
- New version 0.2, requires elfutils 0.111
ed9d46
ed9d46
* Mon Jul 25 2005 Roland McGrath <roland@redhat.com>
ed9d46
- Clean up spec file, build bundled elfutils.
ed9d46
ed9d46
* Thu Jul 21 2005 Martin Hunt <hunt@redhat.com>
ed9d46
- Set Version to use version from autoconf.
ed9d46
- Fix up some of the path names.
ed9d46
- Add Requires and BuildRequires.
ed9d46
ed9d46
* Tue Jul 19 2005 Will Cohen <wcohen@redhat.com>
ed9d46
- Initial creation of RPM.