2007-01-10 01:58:04 +01:00
|
|
|
#
|
2011-02-18 01:53:03 +01:00
|
|
|
# spec file for package systemtap
|
2007-01-10 01:58:04 +01:00
|
|
|
#
|
2023-05-04 13:34:07 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2007-01-10 01:58:04 +01:00
|
|
|
#
|
2008-08-14 02:38:19 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-08-15 23:36:03 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-10 01:58:04 +01:00
|
|
|
#
|
|
|
|
|
2008-03-14 17:58:07 +01:00
|
|
|
|
2015-02-17 22:16:31 +01:00
|
|
|
%if ! %{defined _rundir}
|
|
|
|
%define _rundir %{_localstatedir}/run
|
|
|
|
%endif
|
2019-10-03 18:52:33 +02:00
|
|
|
Name: systemtap
|
2024-01-26 16:07:07 +01:00
|
|
|
Version: 5.0
|
2015-02-17 22:16:31 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Instrumentation System
|
2018-03-26 18:18:28 +02:00
|
|
|
License: GPL-2.0-or-later
|
2015-02-17 22:16:31 +01:00
|
|
|
Group: Development/Tools/Debuggers
|
2019-10-14 09:33:31 +02:00
|
|
|
URL: https://sourceware.org/systemtap/
|
Accepting request 627384 from home:simson:branches:devel:tools
- Upgrade to version 3.3:
Changelog: https://lwn.net/Articles/757030/
eBPF backend extensions, easier access to examples, adapting to
meltdown/spectre complications, real-time / high-cpu-count
concurrency fixes
- Added public key of "Frank Ch. Eigler <fche@elastic.org>",
since he signed the new package
- Upgrade to version 3.3:
Changelog: https://lwn.net/Articles/757030/
eBPF backend extensions, easier access to examples, adapting to
meltdown/spectre complications, real-time / high-cpu-count
concurrency fixes
- Remove patches, because the issues were fixed upstream:
systemtap-change-extra_cflags-escape-processing.patch
- Adjust patch for version 3.3:
systemtap-build-source-dir.patch
- Added public key of "Frank Ch. Eigler <fche@elastic.org>",
since he signed the new package
- Upgrade to version 3.3:
Changelog: https://lwn.net/Articles/757030/
eBPF backend extensions, easier access to examples, adapting to
meltdown/spectre complications, real-time / high-cpu-count
concurrency fixes
- Remove patches, because the issues were fixed upstream:
systemtap-fixes-for-gcc-8.patch
systemtap-change-extra_cflags-escape-processing.patch
- Adjust patch for version 3.3:
systemtap-build-source-dir.patch
- Added public key of "Frank Ch. Eigler <fche@elastic.org>",
since he signed the new package
OBS-URL: https://build.opensuse.org/request/show/627384
OBS-URL: https://build.opensuse.org/package/show/devel:tools/systemtap?expand=0&rev=101
2018-08-16 09:21:58 +02:00
|
|
|
Source0: https://sourceware.org/systemtap/ftp/releases/systemtap-%{version}.tar.gz
|
Accepting request 1085967 from home:dirkmueller:Factory
- update to 4.9:
* ISystemtap: the new interactive systemtap jupyter kernel.
This provides a simple GUI for writing/running Systemtap
scripts in an easy, incremental way within Jupyterlab.
Added 2 news scripts, stap-jupyter-install
and stap-jupyter-container. See stap-jupyter(1).
* The new "language-server" mode, specified by "stap
--language-server", starts a LSP server which will
communicate with the client via stdio.
* This server currently supports code completion suggestions.
* See language-server/README.md for more details and usage
instructions.
* Safety/liveness checking for $context variable assignments in
probes of retpoline-compiled kernels is temporarily disabled.
* DWARF-related probes (.function, .statement) now merge DWARF
and non-DWARF symbol-table based matches, rather than being
either-or.
* The python3 tapset was extended to support python3 3.9, 3.10,
and 3.11. See stapprobes(3stap) for further details on probing
python functions.
* A template cve band-aid script is now included, which
demonstrates how to use a new 'livepatch.stp' tapset to
standardize activation, interactive control,
and monitoring of systemtap cve band-aids.
* The kernel runtime now uses much less memory when the number
of "possible CPUs" are way more than the online ones. For
example, VMWare guests usually have 128 "possible CPUs" while fewer
CPUs are actually present or online in the guest system.
* The memory allocation size is now irrelevant to the value of
NR_CPUS of the current kernel. It is only subject to the
OBS-URL: https://build.opensuse.org/request/show/1085967
OBS-URL: https://build.opensuse.org/package/show/devel:tools/systemtap?expand=0&rev=142
2023-05-10 18:07:34 +02:00
|
|
|
Source1: https://sourceware.org/systemtap/ftp/releases/systemtap-%{version}.tar.gz.asc
|
2019-10-03 18:52:33 +02:00
|
|
|
Source2: %{name}.keyring
|
2015-02-17 22:16:31 +01:00
|
|
|
Source3: README-BEFORE-ADDING-PATCHES
|
2015-09-12 07:34:52 +02:00
|
|
|
Source4: README-KEYRING
|
|
|
|
Source5: stap-server.conf
|
2015-02-17 22:16:31 +01:00
|
|
|
Patch1: systemtap-build-source-dir.patch
|
2022-02-15 15:47:59 +01:00
|
|
|
|
2024-01-26 16:07:07 +01:00
|
|
|
BuildRequires: autoconf >= 2.71
|
2019-08-15 23:36:03 +02:00
|
|
|
BuildRequires: automake
|
2024-01-26 16:07:07 +01:00
|
|
|
BuildRequires: fdupes
|
2011-12-21 12:21:19 +01:00
|
|
|
BuildRequires: gcc-c++
|
2019-04-15 18:10:19 +02:00
|
|
|
BuildRequires: libavahi-devel
|
2011-12-21 12:21:19 +01:00
|
|
|
BuildRequires: libcap-devel
|
2020-01-28 18:25:01 +01:00
|
|
|
BuildRequires: libdw-devel
|
2011-12-21 12:21:19 +01:00
|
|
|
BuildRequires: mozilla-nspr-devel
|
|
|
|
BuildRequires: mozilla-nss-devel
|
|
|
|
BuildRequires: mozilla-nss-tools
|
2019-10-03 18:52:33 +02:00
|
|
|
BuildRequires: pkgconfig
|
2017-11-10 19:27:48 +01:00
|
|
|
BuildRequires: python3-base
|
2011-12-21 12:21:19 +01:00
|
|
|
BuildRequires: sqlite-devel
|
Accepting request 1085967 from home:dirkmueller:Factory
- update to 4.9:
* ISystemtap: the new interactive systemtap jupyter kernel.
This provides a simple GUI for writing/running Systemtap
scripts in an easy, incremental way within Jupyterlab.
Added 2 news scripts, stap-jupyter-install
and stap-jupyter-container. See stap-jupyter(1).
* The new "language-server" mode, specified by "stap
--language-server", starts a LSP server which will
communicate with the client via stdio.
* This server currently supports code completion suggestions.
* See language-server/README.md for more details and usage
instructions.
* Safety/liveness checking for $context variable assignments in
probes of retpoline-compiled kernels is temporarily disabled.
* DWARF-related probes (.function, .statement) now merge DWARF
and non-DWARF symbol-table based matches, rather than being
either-or.
* The python3 tapset was extended to support python3 3.9, 3.10,
and 3.11. See stapprobes(3stap) for further details on probing
python functions.
* A template cve band-aid script is now included, which
demonstrates how to use a new 'livepatch.stp' tapset to
standardize activation, interactive control,
and monitoring of systemtap cve band-aids.
* The kernel runtime now uses much less memory when the number
of "possible CPUs" are way more than the online ones. For
example, VMWare guests usually have 128 "possible CPUs" while fewer
CPUs are actually present or online in the guest system.
* The memory allocation size is now irrelevant to the value of
NR_CPUS of the current kernel. It is only subject to the
OBS-URL: https://build.opensuse.org/request/show/1085967
OBS-URL: https://build.opensuse.org/package/show/devel:tools/systemtap?expand=0&rev=142
2023-05-10 18:07:34 +02:00
|
|
|
BuildRequires: pkgconfig(json-c)
|
2024-01-26 16:07:07 +01:00
|
|
|
BuildRequires: pkgconfig(libdebuginfod)
|
2019-02-03 19:17:43 +01:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
2019-10-14 09:33:31 +02:00
|
|
|
Requires: %{name}-dtrace = %{version}
|
2009-05-20 12:03:04 +02:00
|
|
|
Requires: %{name}-runtime = %{version}-%{release}
|
2020-02-06 03:04:20 +01:00
|
|
|
Recommends: kernel-devel
|
2015-02-17 22:16:31 +01:00
|
|
|
Obsoletes: systemtap-client < 1.5
|
2007-01-10 01:58:04 +01:00
|
|
|
|
|
|
|
%description
|
2011-11-02 20:17:40 +01:00
|
|
|
SystemTap is an instrumentation system for systems running Linux.
|
2009-07-23 16:26:04 +02:00
|
|
|
Developers can write instrumentation to collect data on the operation
|
|
|
|
of the system.
|
2007-01-10 01:58:04 +01:00
|
|
|
|
2009-05-20 12:03:04 +02:00
|
|
|
%package runtime
|
|
|
|
Summary: Runtime environment for systemtap
|
2012-01-29 07:34:38 +01:00
|
|
|
Group: Development/Tools/Debuggers
|
2009-05-20 12:03:04 +02:00
|
|
|
|
|
|
|
%description runtime
|
2011-11-02 20:17:40 +01:00
|
|
|
SystemTap is an instrumentation system for systems running Linux.
|
2009-05-20 12:03:04 +02:00
|
|
|
This package contains the runtime environment for systemtap programs.
|
|
|
|
|
|
|
|
%package server
|
|
|
|
Summary: Systemtap server
|
2012-01-29 07:34:38 +01:00
|
|
|
Group: Development/Tools/Debuggers
|
2009-05-20 12:03:04 +02:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2010-07-21 15:53:52 +02:00
|
|
|
# dependancies for systemtap shell scripts
|
2012-06-14 22:58:07 +02:00
|
|
|
Requires: avahi
|
|
|
|
Requires: avahi-utils
|
|
|
|
Requires: coreutils
|
|
|
|
Requires: mozilla-nss-tools
|
|
|
|
Requires: unzip
|
|
|
|
Requires: zip
|
2009-05-20 12:03:04 +02:00
|
|
|
|
|
|
|
%description server
|
2011-11-02 20:17:40 +01:00
|
|
|
SystemTap is an instrumentation system for systems running Linux.
|
2009-05-20 12:03:04 +02:00
|
|
|
This package contains the server component of systemtap.
|
|
|
|
|
|
|
|
%package sdt-devel
|
|
|
|
Summary: Static probe support tools
|
2018-02-20 13:53:55 +01:00
|
|
|
# systemtap-headers provides the same header files
|
|
|
|
# as sdt-devel, so we must conflict.
|
2018-03-26 18:18:28 +02:00
|
|
|
Group: Development/Tools/Debuggers
|
2009-05-20 12:03:04 +02:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2019-02-03 19:17:43 +01:00
|
|
|
Conflicts: systemtap-headers
|
2009-05-20 12:03:04 +02:00
|
|
|
|
|
|
|
%description sdt-devel
|
2011-11-02 20:17:40 +01:00
|
|
|
SystemTap is an instrumentation system for systems running Linux.
|
2009-05-20 12:03:04 +02:00
|
|
|
This package contains the support tools for static probes.
|
|
|
|
|
2007-01-10 01:58:04 +01:00
|
|
|
%prep
|
2019-10-03 18:52:33 +02:00
|
|
|
%setup -q
|
2022-01-28 00:39:59 +01:00
|
|
|
%autopatch -p1
|
2007-01-10 01:58:04 +01:00
|
|
|
|
|
|
|
%build
|
2019-08-15 23:36:03 +02:00
|
|
|
autoreconf -fi
|
2017-11-10 19:27:48 +01:00
|
|
|
%configure \
|
|
|
|
--disable-docs \
|
|
|
|
--with-python3 \
|
|
|
|
--docdir=%{_docdir}/systemtap
|
|
|
|
make %{?_smp_mflags} V=1
|
2007-01-10 01:58:04 +01:00
|
|
|
|
|
|
|
%install
|
2017-11-10 19:27:48 +01:00
|
|
|
%make_install
|
2019-10-10 10:16:08 +02:00
|
|
|
rm -f %{buildroot}%{_bindir}/dtrace
|
2015-02-17 22:16:31 +01:00
|
|
|
rm -f %{buildroot}%{_libexecdir}/systemtap/stap-server-request
|
2010-07-21 15:53:52 +02:00
|
|
|
# README, AUTHORS, NEWS, man3 and all examples packaged by systemtap-docs
|
|
|
|
# COPYING needs to stay in main for GPL
|
2015-02-17 22:16:31 +01:00
|
|
|
rm -rf %{buildroot}%{_docdir}/systemtap/
|
2017-03-28 22:46:58 +02:00
|
|
|
rm -rf %{buildroot}%{_datadir}/systemtap/examples
|
2016-04-05 01:30:37 +02:00
|
|
|
rm -rf %{buildroot}%{_mandir}/man3 %{buildroot}%{_mandir}/cs/man3
|
2015-02-17 22:16:31 +01:00
|
|
|
mkdir -p %{buildroot}%{_docdir}/systemtap/
|
|
|
|
cp COPYING %{buildroot}%{_docdir}/systemtap/
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/cache/systemtap
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/log
|
|
|
|
touch %{buildroot}%{_localstatedir}/log/stap-server.log
|
2021-04-28 16:40:26 +02:00
|
|
|
# config file for stap-server (/run now on tmpfs)
|
2020-09-07 08:47:24 +02:00
|
|
|
mkdir -p %{buildroot}%{_tmpfilesdir}
|
|
|
|
install -m 644 %{SOURCE5} %{buildroot}%{_tmpfilesdir}
|
2011-11-02 20:17:40 +01:00
|
|
|
|
2024-01-26 16:07:07 +01:00
|
|
|
%fdupes %{buildroot}%{_datadir}/%{name}
|
|
|
|
|
2015-02-17 22:16:31 +01:00
|
|
|
%find_lang systemtap
|
2007-01-10 01:58:04 +01:00
|
|
|
|
2011-11-24 14:00:00 +01:00
|
|
|
%post server
|
|
|
|
# Create tmpfiles
|
2020-09-07 08:47:24 +02:00
|
|
|
%tmpfiles_create %{_tmpfilesdir}/stap-server.conf
|
2011-11-24 14:00:00 +01:00
|
|
|
|
2007-01-10 01:58:04 +01:00
|
|
|
%files
|
2009-05-20 12:03:04 +02:00
|
|
|
%{_bindir}/stap
|
2022-09-13 03:07:15 +02:00
|
|
|
%{_bindir}/stap-profile-annotate
|
Accepting request 1085967 from home:dirkmueller:Factory
- update to 4.9:
* ISystemtap: the new interactive systemtap jupyter kernel.
This provides a simple GUI for writing/running Systemtap
scripts in an easy, incremental way within Jupyterlab.
Added 2 news scripts, stap-jupyter-install
and stap-jupyter-container. See stap-jupyter(1).
* The new "language-server" mode, specified by "stap
--language-server", starts a LSP server which will
communicate with the client via stdio.
* This server currently supports code completion suggestions.
* See language-server/README.md for more details and usage
instructions.
* Safety/liveness checking for $context variable assignments in
probes of retpoline-compiled kernels is temporarily disabled.
* DWARF-related probes (.function, .statement) now merge DWARF
and non-DWARF symbol-table based matches, rather than being
either-or.
* The python3 tapset was extended to support python3 3.9, 3.10,
and 3.11. See stapprobes(3stap) for further details on probing
python functions.
* A template cve band-aid script is now included, which
demonstrates how to use a new 'livepatch.stp' tapset to
standardize activation, interactive control,
and monitoring of systemtap cve band-aids.
* The kernel runtime now uses much less memory when the number
of "possible CPUs" are way more than the online ones. For
example, VMWare guests usually have 128 "possible CPUs" while fewer
CPUs are actually present or online in the guest system.
* The memory allocation size is now irrelevant to the value of
NR_CPUS of the current kernel. It is only subject to the
OBS-URL: https://build.opensuse.org/request/show/1085967
OBS-URL: https://build.opensuse.org/package/show/devel:tools/systemtap?expand=0&rev=142
2023-05-10 18:07:34 +02:00
|
|
|
%{_bindir}/stap-jupyter-container
|
|
|
|
%{_bindir}/stap-jupyter-install
|
2010-09-04 00:57:05 +02:00
|
|
|
%{_mandir}/man[17]/*
|
2016-04-05 01:30:37 +02:00
|
|
|
%{_mandir}/cs/man[17]/*
|
2010-07-21 15:53:52 +02:00
|
|
|
%dir %{_datadir}/%{name}
|
|
|
|
%{_datadir}/%{name}/runtime
|
Accepting request 1085967 from home:dirkmueller:Factory
- update to 4.9:
* ISystemtap: the new interactive systemtap jupyter kernel.
This provides a simple GUI for writing/running Systemtap
scripts in an easy, incremental way within Jupyterlab.
Added 2 news scripts, stap-jupyter-install
and stap-jupyter-container. See stap-jupyter(1).
* The new "language-server" mode, specified by "stap
--language-server", starts a LSP server which will
communicate with the client via stdio.
* This server currently supports code completion suggestions.
* See language-server/README.md for more details and usage
instructions.
* Safety/liveness checking for $context variable assignments in
probes of retpoline-compiled kernels is temporarily disabled.
* DWARF-related probes (.function, .statement) now merge DWARF
and non-DWARF symbol-table based matches, rather than being
either-or.
* The python3 tapset was extended to support python3 3.9, 3.10,
and 3.11. See stapprobes(3stap) for further details on probing
python functions.
* A template cve band-aid script is now included, which
demonstrates how to use a new 'livepatch.stp' tapset to
standardize activation, interactive control,
and monitoring of systemtap cve band-aids.
* The kernel runtime now uses much less memory when the number
of "possible CPUs" are way more than the online ones. For
example, VMWare guests usually have 128 "possible CPUs" while fewer
CPUs are actually present or online in the guest system.
* The memory allocation size is now irrelevant to the value of
NR_CPUS of the current kernel. It is only subject to the
OBS-URL: https://build.opensuse.org/request/show/1085967
OBS-URL: https://build.opensuse.org/package/show/devel:tools/systemtap?expand=0&rev=142
2023-05-10 18:07:34 +02:00
|
|
|
%{_datadir}/%{name}/interactive-notebook
|
2010-07-21 15:53:52 +02:00
|
|
|
%{_datadir}/%{name}/tapset
|
|
|
|
#packaged by systemtap-initscript in upstream
|
|
|
|
%dir %{_localstatedir}/cache/systemtap
|
2008-01-12 03:27:42 +01:00
|
|
|
|
2011-11-02 20:17:40 +01:00
|
|
|
%files runtime -f systemtap.lang
|
2010-07-21 15:53:52 +02:00
|
|
|
%doc %{_docdir}/systemtap
|
2009-05-20 12:03:04 +02:00
|
|
|
%{_bindir}/staprun
|
2011-11-02 20:17:40 +01:00
|
|
|
%{_bindir}/stapsh
|
2011-02-18 01:53:03 +01:00
|
|
|
%{_bindir}/stap-merge
|
2009-05-20 12:03:04 +02:00
|
|
|
%{_bindir}/stap-report
|
2017-11-21 03:55:31 +01:00
|
|
|
%{_bindir}/stapbpf
|
2010-07-21 15:53:52 +02:00
|
|
|
%dir %{_libexecdir}/%{name}
|
|
|
|
%{_libexecdir}/%{name}/stapio
|
|
|
|
%{_libexecdir}/%{name}/stap-env
|
|
|
|
%{_libexecdir}/%{name}/stap-authorize-cert
|
|
|
|
%{_mandir}/man8/staprun.8*
|
2019-08-15 23:36:03 +02:00
|
|
|
%{_mandir}/man8/systemtap-service.8*
|
2016-04-05 01:30:37 +02:00
|
|
|
%{_mandir}/cs/man8/systemtap.8*
|
2013-08-09 00:44:35 +02:00
|
|
|
%{_mandir}/man8/stapsh.8*
|
2016-04-05 01:30:37 +02:00
|
|
|
%{_mandir}/cs/man8/stapsh.8*
|
2017-11-21 03:55:31 +01:00
|
|
|
%{_mandir}/man8/stapbpf.8*
|
2009-05-20 12:03:04 +02:00
|
|
|
|
|
|
|
%files server
|
2020-09-07 08:47:24 +02:00
|
|
|
%dir %{_tmpfilesdir}
|
|
|
|
%{_tmpfilesdir}/stap-server.conf
|
2009-05-20 12:03:04 +02:00
|
|
|
%{_bindir}/stap-server
|
2011-11-02 20:17:40 +01:00
|
|
|
%{_libexecdir}/%{name}/stap-gen-cert
|
2010-07-21 15:53:52 +02:00
|
|
|
%{_libexecdir}/%{name}/stap-serverd
|
2011-11-02 20:17:40 +01:00
|
|
|
%{_libexecdir}/%{name}/stap-sign-module
|
2010-07-21 15:53:52 +02:00
|
|
|
%{_libexecdir}/%{name}/stap-start-server
|
|
|
|
%{_libexecdir}/%{name}/stap-stop-server
|
|
|
|
%{_mandir}/man8/stap-server.8*
|
2016-04-05 01:30:37 +02:00
|
|
|
%{_mandir}/cs/man8/stap-server.8*
|
2010-07-21 15:53:52 +02:00
|
|
|
%ghost %{_localstatedir}/log/stap-server.log
|
2014-05-18 06:48:20 +02:00
|
|
|
%ghost %dir %{_rundir}/stap-server
|
2009-05-20 12:03:04 +02:00
|
|
|
|
|
|
|
%files sdt-devel
|
2018-02-20 13:53:55 +01:00
|
|
|
%{_includedir}/sys/*.h
|
2009-05-20 12:03:04 +02:00
|
|
|
|
2007-02-25 23:39:54 +01:00
|
|
|
%changelog
|