- Avoid usage of %{_libdir} in a noarch package: noarch cannot rely

on libdir, an arch-dependent variable. Rather use %{_prefix}/lib*
  to remove files. Fixes build with RPM 4.20.

OBS-URL: https://build.opensuse.org/package/show/devel:tools/systemtap?expand=0&rev=152
This commit is contained in:
Martin Pluskal 2025-01-15 07:39:56 +00:00 committed by Git OBS Bridge
commit f7c0cf9e42
19 changed files with 2454 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,13 @@
All patches need to have a patch description header similar to what is used in
SuSE kernel git tree. Patches added without this will be reverted. Thanks.
From: Name <email>
Subject: Summary of fix
Date: date
References: bnc#xxxxxx (bugzilla reference if applicable)
Upstream: yes (provide repo/commit-id in description) or no (provide reason)
Signed-Off-by: Name <email> (same as From: if committer is patch author)
Short paragraph describing problem/fix.
References to upstream repo-path/commit-id if applicable.

13
README-KEYRING Normal file
View File

@ -0,0 +1,13 @@
How to update the systemtap keyring
===================================
1. update systemtap version in specfile to new version
2. run 'osc service localrun download_files' to download the new tarball and signatrure files (the signature file may be .sig or .asc, it varies depending on who
made the release)
3. run 'gpg systemtap-${ver}.tar.gz.{sig,asc}' -- look for "gpg: Signature made {date} using RSA key ID {key}" in output
4. run 'gpg --keyserver pgp.mit.edu --recv-key $key' to obtain the key from the public keyserver
5. run 'gpg --export --armor --output systemtap.keyring $key'. Select 'y' to
overwrite existing file (previous is backed up in .osc)
How to verify against the keyring
=================================
1. run 'gpg --keyring systemtap.keyring systemtap-${ver}.tar.gz.sig'

6
_multibuild Normal file
View File

@ -0,0 +1,6 @@
<multibuild>
<package>systemtap-docs</package>
<package>systemtap-headers</package>
<package>systemtap-dtrace</package>
</multibuild>

2
stap-server.conf Normal file
View File

@ -0,0 +1,2 @@
# Systemtap-server needs some files in /var/run
d /run/stap-server 0755 root root -

3
systemtap-5.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1db8c1d65bb13b65bc3f30e4cee2f7e174d517e908d994bb0fcde0051f181b40
size 6590820

16
systemtap-5.1.tar.gz.asc Normal file
View File

@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEETdE2SQQRwKQrKIRPJYtu+g8gnSQFAmYsJFgACgkQJYtu+g8g
nSRR7g/+PBWvHSsD24d/k4QR39X9+eANOY166u+SEbDKc2Wh+5JOjjCKY1cTf8mY
M+Z8nFeHZcQW5bXexX8HHui3W1+Nk2IkrLE0Tc11TaIz/Sjj8jouNsM8OVp3GYIu
nZlhOrGmBnh//ojJRV0eiccgHWxVJUfQf4JV8CPt4gKDm1a0tIJVId2HsUQXl4hN
u/cdrCPQgDk2WzpKTQqnfLHrCjEsfgxRVEDERyn+cjYfeYMZyMkyYG+0ln+775i8
64S8Qe9oOX80dRjRPQ7S0IvOLje4PWUlw6p2ZhW1P6Wf0G2xXKJ4n6T0PSI77ju8
QdZUDm78j4S0fJLjrkFe1IWepsZYCmom/JQWGufmPTn8xEgIAXji7vHRu2fx9pa2
HBtFrrRqwdxfEa5UB3McSZl128B/x8+jkCROKdV+e/Uk8lu7KUkVkeLQzbXgh8kd
2nRxzDPCwN/Ps1Udz/6DUiEBAUwSjtqnIe+p+a1fG/HSxTEHYhCj99SFyQB/8ufd
Zh+7W33eki2zMiUzTWBMSOjkydUdQ0rEYcJryWh9RCpeEZKcwwIPvU9p3hKtpUxD
zsE2Piy8NWqdjTBY+ENkPNEkEIMcqSgqW3nZTRbDuZ85PmC5ikide3p6ql085PRr
kpMImFX76fTbiToAC76bXjrtuKzvmgd/uCt9Kt143162cxAZdao=
=nS25
-----END PGP SIGNATURE-----

View File

@ -0,0 +1,88 @@
From: Tony Jones <tonyj@suse.de>
Subject: adjust build source dir for SuSE packaging
References: bnc#796574
kernel-$flavor:
/lib/modules/$version-$flavor
kernel-$flavor-devel: requires kernel-source
/usr/src/linux-$version-obj/$arch/$flavor
/lib/modules/$version-$flavor/build -> /usr/src/linux-$version-obj/$arch/$flavor
/lib/modules/$version-$flavor/source -> /usr/src/linux-$version [kernel-source]
kernel-flavor-debugsource:
/usr/src/debug/kernel-$flavor/
linux-obj/ {corresponds to /lib/modules/$version-$flavor/build}
linux-3.0/ {mirrors kernel-source}
DW_AT_comp_dir points to debugsource/linux-obj directory but internal trace
headers are only found in linux-3.0. Regardless, we don't want to require
debugsource as devel already requires kernel-source which provides the
necessary headers.
---
session.cxx | 28 ++++++++++++++++++++++++----
1 file changed, 24 insertions(+), 4 deletions(-)
--- a/session.cxx
+++ b/session.cxx
@@ -108,6 +108,7 @@ systemtap_session::systemtap_session ():
kernel_release = string (buf.release);
release = kernel_release;
kernel_build_tree = "/lib/modules/" + kernel_release + "/build";
+ kernel_source_tree = "/lib/modules/" + kernel_release + "/source";
architecture = machine = normalize_machine(buf.machine);
for (unsigned i=0; i<5; i++) perpass_verbose[i]=0;
@@ -298,6 +299,7 @@ systemtap_session::systemtap_session (co
{
release = kernel_release = kern;
kernel_build_tree = "/lib/modules/" + kernel_release + "/build";
+ kernel_source_tree = "/lib/modules/" + kernel_release + "/source";
kernel_extra_cflags = other.kernel_extra_cflags;
architecture = machine = normalize_machine(arch);
setup_kernel_release(kern.c_str());
@@ -2218,21 +2220,39 @@ systemtap_session::setup_kernel_release
// normal search in tapsets.cxx. Without CONFIG_DEBUG_INFO, we'd
// need heuristics such as this one:
- string some_random_source_only_file = kernel_build_tree + "/COPYING";
+ // SUSE: if "build" link specified, attempt to determine "source" link
+ // N.B we won't match using above tapsets.cxx check
+ struct stat buf;
+ string source_tree = kernel_build_tree;
+
+ if (lstat(kernel_build_tree.c_str(), &buf) != -1 && S_ISLNK(buf.st_mode)) {
+ size_t pos = source_tree.find_last_of('/');
+ if (pos < source_tree.length() && source_tree.substr(pos+1, string::npos) == "build")
+ source_tree.replace(pos+1, string::npos, "source");
+ }
+
+retry:
+ string some_random_source_only_file = source_tree + "/COPYING";
ifstream epic (some_random_source_only_file.c_str());
if (! epic.fail())
{
- kernel_source_tree = kernel_build_tree;
+ kernel_source_tree = source_tree;
if (verbose > 2)
clog << _F("Located kernel source tree (COPYING) at '%s'", kernel_source_tree.c_str()) << endl;
- }
+ } else if (source_tree != kernel_build_tree) {
+ // one last try using kernel_build_tree (local fs build)
+ source_tree = kernel_build_tree;
+ goto retry;
+ }
}
else
{
update_release_sysroot = true;
kernel_release = kstr;
- if (!kernel_release.empty())
+ if (!kernel_release.empty()) {
kernel_build_tree = "/lib/modules/" + kernel_release + "/build";
+ kernel_source_tree = "/lib/modules/" + kernel_release + "/source";
+ }
// PR10745
// Let's not look for the kernel_source_tree; it's definitely

61
systemtap-docdir-fix.diff Normal file
View File

@ -0,0 +1,61 @@
From: Tony Jones <tonyj@suse.de>
Subject: change doc install path
References: none
Upstream: never
SuSE %{_docdir} is /usr/share/doc/packages. Change install locations to match.
---
Makefile.am | 2 +-
doc/Makefile.am | 2 +-
doc/SystemTap_Tapset_Reference/Makefile.am | 4 ++--
doc/beginners/Makefile.am | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
--- a/Makefile.am
+++ b/Makefile.am
@@ -266,7 +266,7 @@ endif
| while read f; do if test -x $$f; then \
i_cmd="$(INSTALL_PROGRAM)"; else \
i_cmd="$(INSTALL_DATA)"; fi; \
- $$i_cmd -D $$f $(DESTDIR)$(pkgdatadir)/examples/$$f; done)
+ $$i_cmd -D $$f $(DESTDIR)$(datadir)/doc/packages/systemtap/examples/$$f; done)
test -e $(DESTDIR)$(sysconfdir)/systemtap || mkdir -p $(DESTDIR)$(sysconfdir)/systemtap
if BUILD_SERVER
test -e $(DESTDIR)$(localstatedir)/run/stap-server || mkdir -p $(DESTDIR)$(localstatedir)/run/stap-server
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -3,7 +3,7 @@
AUTOMAKE_OPTIONS = subdir-objects
PDF_FILES = tutorial.pdf langref.pdf
-DOC_INSTALL_DIR = $(DESTDIR)$(datadir)/doc/systemtap
+DOC_INSTALL_DIR = $(DESTDIR)$(datadir)/doc/packages/systemtap
SUBDIRS = SystemTap_Tapset_Reference beginners
if BUILD_DOCS
--- a/doc/SystemTap_Tapset_Reference/Makefile.am
+++ b/doc/SystemTap_Tapset_Reference/Makefile.am
@@ -1,9 +1,9 @@
## process this file with automake to produce Makefile.in
-DOC_INSTALL_DIR = $(DESTDIR)$(datadir)/doc/systemtap
+DOC_INSTALL_DIR = $(DESTDIR)$(datadir)/doc/packages/systemtap
MAN_INSTALL_DIR = $(DESTDIR)$(mandir)/man3
-HTML_INSTALL_DIR = $(DESTDIR)$(datadir)/doc/systemtap/tapsets
+HTML_INSTALL_DIR = $(DOC_INSTALL_DIR)/tapsets
if XMLTO_STRINGPARAM
XMLTOHTMLPARAMS=--stringparam use.id.as.filename=1 -m $(abs_srcdir)/generate-toc.xml
--- a/doc/beginners/Makefile.am
+++ b/doc/beginners/Makefile.am
@@ -2,7 +2,7 @@
## process this file with automake to produce Makefile.in
-DOC_INSTALL_DIR = $(DESTDIR)$(datadir)/doc/systemtap
+DOC_INSTALL_DIR = $(DESTDIR)$(datadir)/doc/packages/systemtap
SBG = SystemTap_Beginners_Guide
BEGIN_INSTALL_DIR = $(DOC_INSTALL_DIR)/$(SBG)

578
systemtap-docs.changes Normal file
View File

@ -0,0 +1,578 @@
-------------------------------------------------------------------
Mon Jan 6 13:20:23 UTC 2025 - Dominique Leuenberger <dimstar@opensuse.org>
- Avoid usage of %{_libdir} in a noarch package: noarch cannot rely
on libdir, an arch-dependent variable. Rather use %{_prefix}/lib*
to remove files. Fixes build with RPM 4.20.
-------------------------------------------------------------------
Mon Jun 17 22:44:47 UTC 2024 - Tony Jones <tonyj@suse.com>
- Upgrade to version 5.1. See systemtap.changes for changelog
-------------------------------------------------------------------
Sat Dec 30 13:48:44 UTC 2023 - Florian "sp1rit" <sp1rit@disroot.org>
- Upgrade to version 5.0. See systemtap.changed for changelog
-------------------------------------------------------------------
Tue Sep 13 01:21:04 UTC 2022 - Tony Jones <tonyj@suse.com>
- Upgrade to version 4.7. See systemtap.spec for changelog
-------------------------------------------------------------------
Thu Jan 27 23:26:36 UTC 2022 - Tony Jones <tonyj@suse.com>
- Upgrade to version 4.6. See systemtap.spec for changelog
-------------------------------------------------------------------
Fri Dec 6 17:33:04 UTC 2019 - Tony Jones <tonyj@suse.com>
- Upgrade to version 4.2. See systemtap.spec for changelog
-------------------------------------------------------------------
Fri Aug 9 20:06:57 UTC 2019 - Tony Jones <tonyj@suse.com>
- Upgrade to version 4.1. See systemtap.spec for changelog
- Remove systemtap-exporter files (built due to BuildRequires: python3-devel)
-------------------------------------------------------------------
Fri Aug 3 16:50:41 UTC 2018 - sschricker@suse.de
- 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
-------------------------------------------------------------------
Fri Feb 2 23:31:59 UTC 2018 - tonyj@suse.com
- Fix python3 build failures
-------------------------------------------------------------------
Mon Nov 20 23:06:17 UTC 2017 - tonyj@suse.com
- Upgrade to version 3.2. See systemtap.spec for changelog
Drop patch: systemtap-doc-back-down-gettext-version.diff
-------------------------------------------------------------------
Tue Mar 28 20:04:44 UTC 2017 - jeffm@suse.com
- Update to version 3.1. See systemtap.spec for changelog
Added patch: systemtap-doc-back-down-gettext-version.diff
-------------------------------------------------------------------
Fri Apr 1 17:29:31 UTC 2016 - tonyj@suse.com
- Update to version 3.0. See systemtap.spec for changelog
Drop patch: systemtap-xmlto-fop.diff
-------------------------------------------------------------------
Tue Nov 10 00:40:17 UTC 2015 - tonyj@suse.com
- Update to version 2.9. See systemtap.spec for changelog
-------------------------------------------------------------------
Fri Sep 11 18:00:49 UTC 2015 - tonyj@suse.com
- Update to version 2.8. See systemtap.spec for changelog
Update patch 'systemtap-docdir-fix.diff' (package beginners guide)
-------------------------------------------------------------------
Fri Mar 27 14:11:25 UTC 2015 - p.drouand@gmail.com
- Update to version 2.7. See systemtap.spec for changelog
- Update systemtap-docdir-fix.diff
-------------------------------------------------------------------
Tue Feb 17 20:51:58 UTC 2015 - mpluskal@suse.com
- Add gpg signature and keyring
- Cleanup spec file with spec-cleaner
-------------------------------------------------------------------
Tue Sep 9 06:06:42 UTC 2014 - tonyj@suse.com
- Update to version 2.6. See systemtap.spec for changelog
-------------------------------------------------------------------
Fri May 2 19:50:28 UTC 2014 - tonyj@suse.com
- Update to version 2.5. See systemtap.spec for changelog
- Drop patch: langref.tex-add-option-to-babel-setup.patch (upstream)
- Patch systemtap-docs-autoconf-version.diff was still present
despite being "dropped" in 2.4, really delete it
-------------------------------------------------------------------
Thu Dec 19 22:05:14 UTC 2013 - tonyj@suse.com
- Fix build errors due to changes in LaTeX packaging
- Add patch 'langref.tex-add-option-to-babel-setup.patch'
-------------------------------------------------------------------
Fri Nov 15 18:51:03 UTC 2013 - tonyj@suse.com
- Update to version 2.4. See systemtap.spec for changelog
- Drop patch systemtap-docs-autoconf-version.diff
-------------------------------------------------------------------
Wed Aug 7 17:44:37 UTC 2013 - tonyj@suse.com
- Update to version 2.3. See systemtap.spec for changelog
-------------------------------------------------------------------
Wed May 22 17:47:56 UTC 2013 - tonyj@suse.com
- Update to version 2.2.1. See systemtap.spec for changelog
-------------------------------------------------------------------
Sat Jan 12 05:10:48 UTC 2013 - tonyj@suse.com
- Update to version 2.0. See systemtap.spec for changelog
-------------------------------------------------------------------
Fri Jul 27 10:29:23 UTC 2012 - aj@suse.de
- Fix build with glibc 2.16
-------------------------------------------------------------------
Mon Jun 18 09:47:49 CEST 2012 - jslaby@suse.de
- Upgrade to version 1.8
-------------------------------------------------------------------
Thu Jun 14 20:11:49 UTC 2012 - dimstar@opensuse.org
- Add systemtap-automake112.patch: Fix build with automake 1.12:
+ Support for automatic de-ANSI-fication has been removed.
+ Patch taken from upstream, git commit id 5b2bc70.
-------------------------------------------------------------------
Sat Feb 18 01:36:46 UTC 2012 - tonyj@suse.com
- Update to version 1.7. See systemtap.spec for changelog
-------------------------------------------------------------------
Sun Jan 29 06:34:11 UTC 2012 - coolo@suse.com
- add automake too
-------------------------------------------------------------------
Wed Dec 21 10:44:28 UTC 2011 - coolo@suse.com
- add autoconf as buildrequire to avoid implicit dependency
-------------------------------------------------------------------
Wed Nov 2 10:54:46 CET 2011 - jslaby@suse.de
- update to 1.6
-------------------------------------------------------------------
Tue Jun 7 08:11:15 UTC 2011 - coolo@novell.com
- fix file dependencies of examples and testsuite
-------------------------------------------------------------------
Tue May 17 11:28:27 CEST 2011 - jslaby@suse.de
- fix gcc 4.6 build
-------------------------------------------------------------------
Fri Jan 21 18:45:18 UTC 2011 - tonyj@novell.com
- Update to version 1.4. See systemtap.changes for full changelog.
-------------------------------------------------------------------
Thu Aug 26 02:15:11 UTC 2010 - tonyj@novell.com
- Update to version 1.3
-------------------------------------------------------------------
Thu Mar 11 22:49:52 UTC 2010 - tonyj@novell.com
- Update to version 1.1. See systemtap.changes for full changelog.
-------------------------------------------------------------------
Wed Dec 2 23:52:10 UTC 2009 - tonyj@novell.com
- Minor changes to spec file
-------------------------------------------------------------------
Fri Oct 2 18:57:14 CEST 2009 - tonyj@suse.de
- updated to version 1.0. See systemtap.changes for full changelog.
-------------------------------------------------------------------
Tue Jul 21 08:47:33 CEST 2009 - tiwai@suse.de
- corrected to use libexecdir
- fix summary and description
-------------------------------------------------------------------
Thu Jun 18 12:46:08 CEST 2009 - tiwai@suse.de
- change to noarch
-------------------------------------------------------------------
Tue Jun 16 16:26:52 CEST 2009 - tiwai@suse.de
- updated to version 0.9.8:
* Module signing support
* Debuginfo suggestions when a script fails
* Using %M in print formats for hex dumps can now print entire
buffers
* Dwarfless syscalls: The nd_syscalls tapset is now available to
probe system calls without requiring kernel debug info.
* sid() returns the session ID of the current process
* stringat() indexes a single character from a string.
* New script examples
-------------------------------------------------------------------
Fri May 22 09:38:19 CEST 2009 - tiwai@suse.de
- add missing examples installation in docs subpackage
-------------------------------------------------------------------
Wed May 20 13:02:00 CEST 2009 - tiwai@suse.de
- split docs and examples to docs subpackage and generate from its
own spec file to cut off the dependency loop
-------------------------------------------------------------------
Fri May 15 11:46:11 CEST 2009 - tiwai@suse.de
- split to several subpackages, systemtap-runtime, -client, -server
and -sdt-devel (bnc#503088).
-------------------------------------------------------------------
Fri May 8 16:43:08 CEST 2009 - tiwai@suse.de
- updated to released version 0.9.7:
* Lots of fixes, improvements, see NEWS file for details
-------------------------------------------------------------------
Thu Feb 19 16:55:48 CET 2009 - tiwai@suse.de
- updated to systemtap snashot 20090214:
* Version bump to 0.8
* Bunch of fixes and updates, see ChangeLog
* Fix for recent 2.6.29 kernels
- fixed doc build, using fop instead of direct xmlto pdf
-------------------------------------------------------------------
Thu Feb 12 16:32:29 CET 2009 - tiwai@suse.de
- backport the blacklist additions from upstream to fix possible
system crash (bnc#459387, bnc#473277)
-------------------------------------------------------------------
Thu Feb 5 13:31:19 CET 2009 - tiwai@suse.de
- Backport tapset/signal.stp to fix the signal probe problem
(bnc#468321)
-------------------------------------------------------------------
Tue Feb 3 14:39:38 CET 2009 - tiwai@suse.de
- Fix debugpath.exp with $SYSTEMTAP_DEBUGINFO_PATH (bnc#471811)
-------------------------------------------------------------------
Thu Jan 29 12:58:42 CET 2009 - tiwai@suse.de
- Fix procfs dir_entry count warning (bnc#470526)
- Improve the parsing of lineno checks (bnc#468247)
-------------------------------------------------------------------
Thu Jan 15 08:22:24 CET 2009 - tiwai@suse.de
- Fix quoting in Tcl scripts (bnc#461588)
-------------------------------------------------------------------
Mon Jan 12 12:55:06 CET 2009 - tiwai@suse.de
- Fix syntax errors with Tcl send_log (bnc#460886)
-------------------------------------------------------------------
Thu Dec 18 16:59:23 CET 2008 - tiwai@suse.de
- Fix stap failures with signal tapsets (bnc#459387)
-------------------------------------------------------------------
Tue Dec 16 13:50:32 CET 2008 - tiwai@suse.de
- Fix dependency on libebl1 (bnc#448331, #445783)
- Fix stap for 2.6.28 kernels
-------------------------------------------------------------------
Fri Dec 12 16:32:35 CET 2008 - tiwai@suse.de
- Don't assert of dwarf_getsrcfiles(). This hits recent SUSE
kernels (bnc#455992)
- Backport fix patches for stap-*-server scripts to run with
netcat (bnc#446686)
-------------------------------------------------------------------
Mon Dec 8 14:09:01 CET 2008 - tiwai@suse.de
- fixed unresolved path in man pages (bnc#457217)
- fixed build for old distros on OBS
-------------------------------------------------------------------
Thu Dec 4 18:08:23 CET 2008 - tiwai@suse.de
- fix ioblock.stp for SUSE 2.6.27.x kernel (bnc#456175)
-------------------------------------------------------------------
Fri Nov 21 14:09:21 CET 2008 - tiwai@suse.de
- Add the bound check of parameters to fix segfault (bnc#447551)
-------------------------------------------------------------------
Tue Nov 4 13:57:24 CET 2008 - tiwai@suse.de
- Fix systemtap assertion with CONFIG_RELOCATABLE (bnc#440351)
-------------------------------------------------------------------
Thu Sep 11 17:14:47 CEST 2008 - tiwai@suse.de
- updated to snapshot 20080906
* Fix / clean up autotools stuff
* Ugly workaround for 2.6.27 and later kernel
* stap-server updates
* Lots of small fixes
-------------------------------------------------------------------
Tue Aug 12 18:11:10 CEST 2008 - tiwai@suse.de
- updated to snapshot 20080809
* bump to 0.7.1
* tutorials
* examples
* i386-fix merged
* previous patches are all merged in
- add latex2html to buildrequires for generating documents
-------------------------------------------------------------------
Fri Jun 20 15:58:30 CEST 2008 - tiwai@suse.de
- fix run on i386 (bnc#401970)
- don't include obsolete linux/compile.h.
-------------------------------------------------------------------
Wed Jun 18 16:04:01 CEST 2008 - tiwai@suse.de
- updated to snapshot 20080614:
* bump to version 0.7, man page updates, misc fixes
see ChangeLog for details
-------------------------------------------------------------------
Fri Mar 14 14:15:17 CET 2008 - tiwai@suse.de
- updated to snapshot 20080308:
* configure fixes, compile option changes
* fixes for 2.6.25 kernel
-------------------------------------------------------------------
Wed Jan 30 18:26:01 CET 2008 - tiwai@suse.de
- updated to snapshot 20080126
* fix configure and automake stuff
* gcc 4.3 fix is included
* ufprobes fixes, improvements
* reorganized probe condition implementation.
-------------------------------------------------------------------
Fri Jan 11 17:10:09 CET 2008 - tiwai@suse.de
- updated to snapshot 20080105
- fixed build of the snapshot with gcc 4.3
-------------------------------------------------------------------
Mon Nov 19 14:53:53 CET 2007 - tiwai@suse.de
- enable gcc-4.3 patch (yes, we use only gcc4.3 now)
- updated to snapshot 20071117
-------------------------------------------------------------------
Thu Oct 25 12:53:04 CEST 2007 - tiwai@suse.de
- disable gcc-4.3 fix again since it breaks older gccs...
-------------------------------------------------------------------
Wed Oct 24 16:33:35 CEST 2007 - tiwai@suse.de
- fix build with gcc 4.3
-------------------------------------------------------------------
Mon Oct 22 15:23:15 CEST 2007 - tiwai@suse.de
- updated to snapshot 20071020:
* bump up version 0.6
* bunch of updates and fixes, see ChangeLog
-------------------------------------------------------------------
Tue Aug 14 16:53:57 CEST 2007 - tiwai@suse.de
- updated to snapshot 20070811:
* Updated -m MODNAME usage
* Rework on line editing functions
-------------------------------------------------------------------
Mon Jul 16 17:39:33 CEST 2007 - tiwai@suse.de
- updated to snapshot 20070714:
* configure fix for sqlite
* support for crash extension module
* new enum for type column in coverage_element
-------------------------------------------------------------------
Wed Jul 4 12:22:34 CEST 2007 - tiwai@suse.de
- updated to snapshot 20070630:
* auto-tools fixes, sqlite3 requirement
- add sqlite-devel and glib2-devel to buildrequires
-------------------------------------------------------------------
Wed Jun 6 16:13:15 CEST 2007 - tiwai@suse.de
- updated to snapshot 20070602:
* fix for gcc4.3
* minor fixes in elaborate.*
- include the snapshot date into version string
- clean up spec file
-------------------------------------------------------------------
Tue May 22 17:09:38 CEST 2007 - tiwai@suse.de
- updated to snapshot 20070519:
* Updated temporary handlings
* Autoconf tweaks
* Performance improvements with const and temporary handlings
* Removed do_write and do_read probles, added aio_write,
aio_read, writev and readv probes.
-------------------------------------------------------------------
Mon May 21 12:24:15 CEST 2007 - tiwai@suse.de
- use the external elfutils packages.
-------------------------------------------------------------------
Tue Apr 24 18:15:56 CEST 2007 - tiwai@suse.de
- updated to snapshot 20070421 and elfutils-0.127:
* minor compile warning fixes
* add interruptible parameter
* improvement on documents
* fix for debugfs and relayfs mounts
* see ChangeLog for other changes
-------------------------------------------------------------------
Mon Mar 19 17:25:52 CET 2007 - tiwai@suse.de
- updated to snapshot 20070317:
including all fix patches
-------------------------------------------------------------------
Thu Mar 8 15:24:56 CET 2007 - tiwai@suse.de
- fix the handling of function arguments in more generic way
(#245310, #252311)
added a new option -P to switch the prologue-search behavior
-------------------------------------------------------------------
Wed Mar 7 15:47:20 CET 2007 - tiwai@suse.de
- fix misalignment of exception table entry on s390x (#249576)
-------------------------------------------------------------------
Mon Feb 26 12:42:41 CET 2007 - tiwai@suse.de
- fix crash with large H value in hist_linear() (#248430)
-------------------------------------------------------------------
Fri Feb 23 16:43:53 CET 2007 - tiwai@suse.de
- fix mmap syscall on s390x (#248110)
-------------------------------------------------------------------
Thu Feb 15 13:20:32 CET 2007 - tiwai@suse.de
- fix a wrong name of store_deref definition (#245544)
-------------------------------------------------------------------
Wed Feb 14 16:39:39 CET 2007 - tiwai@suse.de
- fix the handling of function arguments on s390x (#245310)
-------------------------------------------------------------------
Tue Feb 6 14:51:54 CET 2007 - tiwai@suse.de
- update to snapshot 20070203, bugfixes including:
* add missing sockets tapset support (#239346)
* fix the array membership (#242481)
-------------------------------------------------------------------
Wed Jan 31 13:44:43 CET 2007 - tiwai@suse.de
- turn on Autoprov again to fix broken dependency.
-------------------------------------------------------------------
Tue Jan 30 12:01:03 CET 2007 - tiwai@suse.de
- update to snapshot 20070120 and elfutils-0.125 to fix major
bugs (#238710):
* fixed libdw known bugs in elfutils 0.124
* add the missing support of tapsetr/errno.stp for s390x
* fix conditionals in syscall tapset for s390x
* new macros to safely read/write values from kernel pointers
* fix the non-standard C behavior to handle NULL in an array
* fixed support for benchmarking mode with off-line code
* added support to allow user to use array size declarations
* reduce number of calls to stp_module_relocate within $tvar
functions
-------------------------------------------------------------------
Tue Jan 9 19:30:00 CET 2007 - tiwai@suse.de
- updated to the recent snapshot version (FATE 301670).
* fix cache bugs
* auto-tools fixes
* probe registartion rework
* allow negative numeric literals
* bugfixes/optmizations
- elfutls 1.2.4
removed codes with problematic license in elfutils (#232894)
-------------------------------------------------------------------
Thu Aug 24 19:10:59 CEST 2006 - tiwai@suse.de
- update elfutils to 1.2.3, including vmlinux.debuginfo fix.
-------------------------------------------------------------------
Thu Aug 24 18:20:39 CEST 2006 - tiwai@suse.de
- fix the auto-lookup of vmlinux debuginfo for SUSE systems
- fix the stp compilation with 2.6.18 kernel
-------------------------------------------------------------------
Wed Aug 9 15:27:09 CEST 2006 - tiwai@suse.de
- updated to latest snapshot (version 0.5.8)
with elfutils-1.2.2.
-------------------------------------------------------------------
Tue Apr 18 03:14:22 CEST 2006 - mason@suse.de
- Update to latest snapshot
-------------------------------------------------------------------
Sun Apr 9 20:32:35 CEST 2006 - mason@suse.de
- created package

96
systemtap-docs.spec Normal file
View File

@ -0,0 +1,96 @@
#
# spec file for package systemtap-docs
#
# Copyright (c) 2025 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: systemtap-docs
Version: 5.1
Release: 0
Summary: Documents and examples for systemtap
License: GPL-2.0-or-later
Group: Development/Tools/Debuggers
URL: https://sourceware.org/systemtap/
Source0: https://sourceware.org/systemtap/ftp/releases/systemtap-%{version}.tar.gz
Source1: https://sourceware.org/systemtap/ftp/releases/systemtap-%{version}.tar.gz.asc
Source2: systemtap.keyring
Source3: README-BEFORE-ADDING-PATCHES
Source4: README-KEYRING
Patch1: systemtap-docdir-fix.diff
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: pkgconfig(json-c)
# for documents
BuildRequires: fop
BuildRequires: gcc-c++
BuildRequires: latex2html
BuildRequires: libdw-devel
BuildRequires: pkgconfig
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: texlive-amsfonts
BuildRequires: texlive-babel-english
BuildRequires: texlive-collection-fontsrecommended
BuildRequires: texlive-metafont-bin
BuildRequires: xmlto
BuildRequires: pkgconfig(libdebuginfod)
BuildRequires: tex(charter.sty)
BuildRequires: tex(fancybox.sty)
BuildRequires: tex(fancyhdr.sty)
BuildRequires: tex(fancyvrb.sty)
BuildRequires: tex(float.sty)
BuildRequires: tex(fullpage.sty)
BuildArch: noarch
%description
SystemTap is an instrumentation system for systems running Linux.
This package contains the documents and examples for systemtap.
%prep
%setup -q -n systemtap-%{version}
%autopatch -p1
%build
# fix interpreter
find testsuite examples -name "*.stp" | xargs -n1 sed -i -e 's, /bin/env, %{_bindir}/env,'
find testsuite examples -type f | xargs chmod 644
autoreconf -fi
%configure --docdir=%{_docdir}/systemtap --disable-nls --with-python3
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags} doc
# COPYING packaged by main spec
cp README AUTHORS NEWS %{buildroot}%{_docdir}/systemtap/
# remove binaries and runtime stuff
rm -rf %{buildroot}%{_bindir}
rm -rf %{buildroot}%{_sbindir}
rm -rf %{buildroot}%{_prefix}/lib*
rm -rf %{buildroot}%{_libexecdir}
rm -rf %{buildroot}%{_datadir}/systemtap
rm -rf %{buildroot}%{_includedir}
rm -rf %{buildroot}%{_sysconfdir}
rm -rf %{buildroot}%{_unitdir}
# these man pages are in each sub package
rm -rf %{buildroot}%{_mandir}/man[178]
rm -rf %{buildroot}%{_mandir}/cs/man[178]
%files
%defattr(-,root,root)
%doc %{_docdir}/systemtap
%{_mandir}/man3/*
%{_mandir}/cs/man3/*
%changelog

67
systemtap-dtrace.changes Normal file
View File

@ -0,0 +1,67 @@
-------------------------------------------------------------------
Mon Jun 17 22:44:47 UTC 2024 - Tony Jones <tonyj@suse.com>
- Upgrade to version 5.1. See systemtap.changes for changelog
-------------------------------------------------------------------
Fri Mar 8 15:56:21 UTC 2024 - pgajdos@suse.com
- remove dependency on /usr/bin/python3 using
%python3_fix_shebang macro, [bsc#1212476]
-------------------------------------------------------------------
Sat Dec 30 13:48:44 UTC 2023 - Florian "sp1rit" <sp1rit@disroot.org>
- Upgrade to version 5.0. See systemtap.changed for changelog
-------------------------------------------------------------------
Tue Sep 13 01:21:04 UTC 2022 - Tony Jones <tonyj@suse.com>
- Upgrade to version 4.7. See systemtap.spec for changelog
-------------------------------------------------------------------
Thu Apr 21 23:43:35 UTC 2022 - Tony Jones <tonyj@suse.com>
- Remove unnecessary patches. Only patches specific to dtrace are needed.
-------------------------------------------------------------------
Wed Mar 2 19:19:36 UTC 2022 - Tony Jones <tonyj@suse.com>
- Add gcc12 support (bsc#1196583)
New patch: PR28778-gcc-warning-tweak-for-sprintf-precision-parameter.patch
New patch: gcc12-c-compatibility-tweak-use-lambdas-instead-of-ptr_fun.patch
New patch: gcc12-c-compatibility-re-tweak-for-rhel6-use-function-pointer-instead-of-lambdas-instead-of-ptr_fun.patch
New patch: buildrun-for-LKM-backend-add-Wno-infinite-recursion.patch
New patch: gcc12-warning-suppression.patch
-------------------------------------------------------------------
Mon Feb 21 10:56:37 UTC 2022 - Andreas Schwab <schwab@suse.de>
- Handle-user-supplied-sdt-probe-argument-template.patch: Fix glibc build
failure on s390x
-------------------------------------------------------------------
Mon Feb 14 15:46:00 UTC 2022 - Tony Jones <tonyj@suse.com>
- Resolve gcc compilation error reported against glib2 and libvirt
New patch: sys-sdt.h-fp-constraints-arm32.patch
New patch: sys-sdt.h-fp-constraints-x86_64.patch
New patch: sys-sdt.h-fp-constraints-aarch64-s390.patch
- Add existing patch systemtap-build-source-dir.patch to spec for consistency
-------------------------------------------------------------------
Thu Jan 27 23:26:36 UTC 2022 - Tony Jones <tonyj@suse.com>
- Upgrade to version 4.6. See systemtap.spec for changelog
-------------------------------------------------------------------
Fri Dec 6 17:32:23 UTC 2019 - Tony Jones <tonyj@suse.com>
- Upgrade to version 4.2. See systemtap.spec for changelog
-------------------------------------------------------------------
Fri Sep 27 15:07:24 UTC 2019 - Michael Gorse <mgorse@suse.com>
- Moved the dtrace binary into a separate package to resolve build
cycle with glib2 (bsc#1145438).

61
systemtap-dtrace.spec Normal file
View File

@ -0,0 +1,61 @@
#
# spec file for package systemtap-dtrace
#
# Copyright (c) 2025 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%if ! %{defined _rundir}
%define _rundir %{_localstatedir}/run
%endif
Name: systemtap-dtrace
Version: 5.1
Release: 0
Summary: SystemTap dtrace utility
License: GPL-2.0-or-later
Group: Development/Tools/Debuggers
URL: http://sourceware.org/systemtap/
Source0: http://sourceware.org/systemtap/ftp/releases/systemtap-%{version}.tar.gz
Source1: http://sourceware.org/systemtap/ftp/releases/systemtap-%{version}.tar.gz.asc
Source2: systemtap.keyring
Source3: README-BEFORE-ADDING-PATCHES
Source4: README-KEYRING
BuildRequires: python-rpm-macros
BuildArch: noarch
%description
SystemTap is an instrumentation system for systems running Linux.
This package contains the dtrace utility to build provider and probe
definitions.
%prep
%setup -q -n systemtap-%{version}
%autopatch -p1
%build
# Our binutils always support '?' in the section characters on all
# architectures, no need for configure tests
sed s=@preferred_python@=%{_bindir}/python3= dtrace.in |sed s=@prefix@=%{_prefix}= >dtrace
%install
mkdir -p %{buildroot}%{_bindir}
install -m 755 dtrace %{buildroot}%{_bindir}
%python3_fix_shebang
%files
%defattr(-,root,root)
%{_bindir}/dtrace
%changelog

92
systemtap-headers.changes Normal file
View File

@ -0,0 +1,92 @@
-------------------------------------------------------------------
Mon Jun 17 22:44:47 UTC 2024 - Tony Jones <tonyj@suse.com>
- Upgrade to version 5.1. See systemtap.changes for changelog
-------------------------------------------------------------------
Tue Sep 13 01:21:04 UTC 2022 - Tony Jones <tonyj@suse.com>
- Upgrade to version 4.7. See systemtap.spec for changelog
- Remove patches (upstream):
Handle-user-supplied-sdt-probe-argument-template.patch
PR28778-gcc-warning-tweak-for-sprintf-precision-parameter.patch
buildrun-for-LKM-backend-add-Wno-infinite-recursion.patch
gcc12-c-compatibility-re-tweak-for-rhel6-use-function-pointer-instead-of-lambdas-instead-of-ptr_fun.patch
gcc12-c-compatibility-tweak-use-lambdas-instead-of-ptr_fun.patch
gcc12-warning-suppression.patch
sys-sdt.h-fp-constraints-aarch64-s390.patch
sys-sdt.h-fp-constraints-arm32.patch
sys-sdt.h-fp-constraints-x86_64.patch
-------------------------------------------------------------------
Wed Mar 2 19:19:36 UTC 2022 - Tony Jones <tonyj@suse.com>
- Add gcc12 support (bsc#1196583)
New patch: PR28778-gcc-warning-tweak-for-sprintf-precision-parameter.patch
New patch: gcc12-c-compatibility-tweak-use-lambdas-instead-of-ptr_fun.patch
New patch: gcc12-c-compatibility-re-tweak-for-rhel6-use-function-pointer-instead-of-lambdas-instead-of-ptr_fun.patch
New patch: buildrun-for-LKM-backend-add-Wno-infinite-recursion.patch
New patch: gcc12-warning-suppression.patch
-------------------------------------------------------------------
Mon Feb 21 10:56:37 UTC 2022 - Andreas Schwab <schwab@suse.de>
- Handle-user-supplied-sdt-probe-argument-template.patch: Fix glibc build
failure on s390x
-------------------------------------------------------------------
Mon Feb 14 15:46:00 UTC 2022 - Tony Jones <tonyj@suse.com>
- Resolve gcc compilation error reported against glib2 and libvirt
New patch: sys-sdt.h-fp-constraints-arm32.patch
New patch: sys-sdt.h-fp-constraints-x86_64.patch
New patch: sys-sdt.h-fp-constraints-aarch64-s390.patch
-------------------------------------------------------------------
Thu Jan 27 23:26:36 UTC 2022 - Tony Jones <tonyj@suse.com>
- Upgrade to version 4.6. See systemtap.spec for changelog
-------------------------------------------------------------------
Fri Dec 6 17:32:56 UTC 2019 - Tony Jones <tonyj@suse.com>
- Upgrade to version 4.2. See systemtap.spec for changelog
-------------------------------------------------------------------
Fri Aug 9 20:06:57 UTC 2019 - Tony Jones <tonyj@suse.com>
- Upgrade to version 4.1. See systemtap.spec for changelog
-------------------------------------------------------------------
Fri Aug 3 16:50:41 UTC 2018 - sschricker@suse.de
- 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
-------------------------------------------------------------------
Fri Feb 16 15:20:50 UTC 2018 - matz@suse.com
- Add Conflicts with systemtap-sdt-devel, as that one again
provides the headers as well.
-------------------------------------------------------------------
Thu Feb 8 15:26:17 UTC 2018 - matz@suse.com
- Created new specfile systemtap-headers.spec, so bootstrap cycles
packages can use them without blowing up the cycle.
[fate#324969]

68
systemtap-headers.spec Normal file
View File

@ -0,0 +1,68 @@
#
# spec file for package systemtap-headers
#
# Copyright (c) 2025 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# Note: this separate package systemtap-headers exists so that ring0
# packages can make use of the SDT headers without pulling in all
# build requirements of the normal systemtap package. Normal use
# outside of BuildRequires in ring0 packages should use systemtap-sdt-devel
%if ! %{defined _rundir}
%define _rundir %{_localstatedir}/run
%endif
Name: systemtap-headers
Version: 5.1
Release: 0
Summary: SystemTap headers
License: GPL-2.0-or-later
Group: Development/Tools/Debuggers
URL: http://sourceware.org/systemtap/
Source0: https://sourceware.org/systemtap/ftp/releases/systemtap-%{version}.tar.gz
Source1: https://sourceware.org/systemtap/ftp/releases/systemtap-%{version}.tar.gz.asc
Source2: systemtap.keyring
Source3: README-BEFORE-ADDING-PATCHES
Source4: README-KEYRING
Source5: stap-server.conf
Patch1: systemtap-build-source-dir.patch
# sdt-devel provides the same header files as us, so we
# must conflict
Conflicts: systemtap-sdt-devel
%description
SystemTap is an instrumentation system for systems running Linux.
This package contains only the headers for static system probes and
exists only to limit build cycles. Normally you should install
systemtap-sdt-devel, which also contains these headers.
%prep
%setup -q -n systemtap-%{version}
%autopatch -p1
%build
# Our binutils always support '?' in the section characters on all
# architectures, no need for configure tests
sed -e 's/@support_section_question@/1/' < includes/sys/sdt-config.h.in > includes/sys/sdt-config.h
%install
mkdir -p %{buildroot}%{_includedir}/sys
cp -rp includes/sys/*.h %{buildroot}%{_includedir}/sys/
%files
%defattr(-,root,root)
%{_includedir}/sys/*.h
%changelog

1014
systemtap.changes Normal file

File diff suppressed because it is too large Load Diff

65
systemtap.keyring Normal file
View File

@ -0,0 +1,65 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
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
=AUk/
-----END PGP PUBLIC KEY BLOCK-----

187
systemtap.spec Normal file
View File

@ -0,0 +1,187 @@
#
# spec file for package systemtap
#
# Copyright (c) 2025 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%if ! %{defined _rundir}
%define _rundir %{_localstatedir}/run
%endif
Name: systemtap
Version: 5.1
Release: 0
Summary: Instrumentation System
License: GPL-2.0-or-later
Group: Development/Tools/Debuggers
URL: https://sourceware.org/systemtap/
Source0: https://sourceware.org/systemtap/ftp/releases/systemtap-%{version}.tar.gz
Source1: https://sourceware.org/systemtap/ftp/releases/systemtap-%{version}.tar.gz.asc
Source2: %{name}.keyring
Source3: README-BEFORE-ADDING-PATCHES
Source4: README-KEYRING
Source5: stap-server.conf
Patch1: systemtap-build-source-dir.patch
BuildRequires: autoconf >= 2.71
BuildRequires: automake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: libavahi-devel
BuildRequires: libcap-devel
BuildRequires: libdw-devel
BuildRequires: mozilla-nspr-devel
BuildRequires: mozilla-nss-devel
BuildRequires: mozilla-nss-tools
BuildRequires: pkgconfig
BuildRequires: python3-base
BuildRequires: sqlite-devel
BuildRequires: pkgconfig(json-c)
BuildRequires: pkgconfig(libdebuginfod)
BuildRequires: pkgconfig(systemd)
Requires: %{name}-dtrace = %{version}
Requires: %{name}-runtime = %{version}-%{release}
Recommends: kernel-devel
Obsoletes: systemtap-client < 1.5
%description
SystemTap is an instrumentation system for systems running Linux.
Developers can write instrumentation to collect data on the operation
of the system.
%package runtime
Summary: Runtime environment for systemtap
Group: Development/Tools/Debuggers
%description runtime
SystemTap is an instrumentation system for systems running Linux.
This package contains the runtime environment for systemtap programs.
%package server
Summary: Systemtap server
Group: Development/Tools/Debuggers
Requires: %{name} = %{version}-%{release}
# dependancies for systemtap shell scripts
Requires: avahi
Requires: avahi-utils
Requires: coreutils
Requires: mozilla-nss-tools
Requires: unzip
Requires: zip
%description server
SystemTap is an instrumentation system for systems running Linux.
This package contains the server component of systemtap.
%package sdt-devel
Summary: Static probe support tools
# systemtap-headers provides the same header files
# as sdt-devel, so we must conflict.
Group: Development/Tools/Debuggers
Requires: %{name} = %{version}-%{release}
Conflicts: systemtap-headers
%description sdt-devel
SystemTap is an instrumentation system for systems running Linux.
This package contains the support tools for static probes.
%prep
%setup -q
%autopatch -p1
%build
autoreconf -fi
%configure \
--disable-docs \
--with-python3 \
--docdir=%{_docdir}/systemtap
make %{?_smp_mflags} V=1
%install
%make_install
rm -f %{buildroot}%{_bindir}/dtrace
rm -f %{buildroot}%{_libexecdir}/systemtap/stap-server-request
# README, AUTHORS, NEWS, man3 and all examples packaged by systemtap-docs
# COPYING needs to stay in main for GPL
rm -rf %{buildroot}%{_docdir}/systemtap/
rm -rf %{buildroot}%{_datadir}/systemtap/examples
rm -rf %{buildroot}%{_mandir}/man3 %{buildroot}%{_mandir}/cs/man3
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
# config file for stap-server (/run now on tmpfs)
mkdir -p %{buildroot}%{_tmpfilesdir}
install -m 644 %{SOURCE5} %{buildroot}%{_tmpfilesdir}
%fdupes %{buildroot}%{_datadir}/%{name}
%python3_fix_shebang
%find_lang systemtap
%post server
# Create tmpfiles
%tmpfiles_create %{_tmpfilesdir}/stap-server.conf
%files
%{_bindir}/stap
%{_bindir}/stap-profile-annotate
%{_bindir}/stap-jupyter-container
%{_bindir}/stap-jupyter-install
%{_mandir}/man[17]/*
%{_mandir}/cs/man[17]/*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/runtime
%{_datadir}/%{name}/interactive-notebook
%{_datadir}/%{name}/tapset
#packaged by systemtap-initscript in upstream
%dir %{_localstatedir}/cache/systemtap
%files runtime -f systemtap.lang
%doc %{_docdir}/systemtap
%{_bindir}/staprun
%{_bindir}/stapsh
%{_bindir}/stap-merge
%{_bindir}/stap-report
%{_bindir}/stapbpf
%dir %{_libexecdir}/%{name}
%{_libexecdir}/%{name}/stapio
%{_libexecdir}/%{name}/stap-env
%{_libexecdir}/%{name}/stap-authorize-cert
%{_mandir}/man8/staprun.8*
%{_mandir}/man8/systemtap-service.8*
%{_mandir}/cs/man8/systemtap.8*
%{_mandir}/man8/stapsh.8*
%{_mandir}/cs/man8/stapsh.8*
%{_mandir}/man8/stapbpf.8*
%files server
%dir %{_tmpfilesdir}
%{_tmpfilesdir}/stap-server.conf
%{_bindir}/stap-server
%{_libexecdir}/%{name}/stap-gen-cert
%{_libexecdir}/%{name}/stap-serverd
%{_libexecdir}/%{name}/stap-sign-module
%{_libexecdir}/%{name}/stap-start-server
%{_libexecdir}/%{name}/stap-stop-server
%{_mandir}/man8/stap-server.8*
%{_mandir}/cs/man8/stap-server.8*
%ghost %{_localstatedir}/log/stap-server.log
%ghost %dir %{_rundir}/stap-server
%files sdt-devel
%{_includedir}/sys/*.h
%changelog