Compare commits
10 Commits
e9bcb6cefb
...
9f8d8a319d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9f8d8a319d | ||
|
|
9bc4f8e388 | ||
|
|
7a811da76d | ||
|
|
072eb3c0b6 | ||
|
|
082c2ca9eb | ||
|
|
338fad7166 | ||
|
|
21c9b0e27b | ||
|
|
16a578054d | ||
|
|
32cd76bd08 | ||
|
|
5c059dba34 |
31
systemtap-4.5-sw.patch
Executable file
31
systemtap-4.5-sw.patch
Executable file
@ -0,0 +1,31 @@
|
|||||||
|
diff -Naur systemtap-4.5.org/m4/intdiv0.m4 systemtap-4.5.sw/m4/intdiv0.m4
|
||||||
|
--- systemtap-4.5.org/m4/intdiv0.m4 2022-02-26 07:18:18.530000000 +0000
|
||||||
|
+++ systemtap-4.5.sw/m4/intdiv0.m4 2022-02-26 07:21:23.240000000 +0000
|
||||||
|
@@ -69,7 +69,7 @@
|
||||||
|
# Guess based on the CPU.
|
||||||
|
changequote(,)dnl
|
||||||
|
case "$host_cpu" in
|
||||||
|
- alpha* | i[34567]86 | x86_64 | m68k | s390*)
|
||||||
|
+ sw_64* | alpha* | i[34567]86 | x86_64 | m68k | s390*)
|
||||||
|
gt_cv_int_divbyzero_sigfpe="guessing yes";;
|
||||||
|
*)
|
||||||
|
gt_cv_int_divbyzero_sigfpe="guessing no";;
|
||||||
|
diff -Naur systemtap-4.5.org/staplog.c systemtap-4.5.sw/staplog.c
|
||||||
|
--- systemtap-4.5.org/staplog.c 2022-02-26 07:18:18.510000000 +0000
|
||||||
|
+++ systemtap-4.5.sw/staplog.c 2022-02-26 07:22:44.880000000 +0000
|
||||||
|
@@ -22,12 +22,14 @@
|
||||||
|
|
||||||
|
/* crash/defs.h defines NR_CPUS based upon architecture macros
|
||||||
|
X86, X86_64, etc. See crash/configure.c (!). */
|
||||||
|
-#if !defined(X86) && !defined(X86_64) && !defined(ALPHA) && !defined(PPC) && \
|
||||||
|
+#if !defined(X86) && !defined(X86_64) && !defined(ALPHA) && !defined(SW_64) && !defined(PPC) && \
|
||||||
|
!defined(IA64) && !defined(PPC64) && !defined(S390) && !defined(S390X) && \
|
||||||
|
!defined(ARM) && !defined(ARM64)
|
||||||
|
|
||||||
|
#if defined(__alpha__)
|
||||||
|
#define ALPHA
|
||||||
|
+#elif defined(__sw_64__)
|
||||||
|
+#define SW_64
|
||||||
|
#elif defined(__x86_64__)
|
||||||
|
#define X86_64
|
||||||
|
#elif defined(__i386__)
|
||||||
@ -22,13 +22,14 @@
|
|||||||
|
|
||||||
Name: systemtap
|
Name: systemtap
|
||||||
Version: 4.5
|
Version: 4.5
|
||||||
Release: 2
|
Release: 6
|
||||||
Summary: Linux trace and probe tool
|
Summary: Linux trace and probe tool
|
||||||
License: GPLv2+ and Public Domain
|
License: GPLv2+ and Public Domain
|
||||||
URL: http://sourceware.org/systemtap
|
URL: http://sourceware.org/systemtap
|
||||||
Source: https://sourceware.org/systemtap/ftp/releases/%{name}-%{version}.tar.gz
|
Source: https://sourceware.org/systemtap/ftp/releases/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
Patch1: 0001-Add-init-type-cast-to-resolve-gcc-issue.patch
|
Patch1: 0001-Add-init-type-cast-to-resolve-gcc-issue.patch
|
||||||
|
Patch2: systemtap-4.5-sw.patch
|
||||||
|
|
||||||
BuildRequires: gcc-c++ emacs systemd python3-setuptools
|
BuildRequires: gcc-c++ emacs systemd python3-setuptools
|
||||||
BuildRequires: gettext-devel rpm-devel readline-devel
|
BuildRequires: gettext-devel rpm-devel readline-devel
|
||||||
@ -46,7 +47,6 @@ BuildRequires: crash-devel zlib-devel
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
Requires: systemtap-client = %{version}-%{release}
|
Requires: systemtap-client = %{version}-%{release}
|
||||||
Requires: systemtap-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
SystemTap is an instrumentation system for systems running Linux.
|
SystemTap is an instrumentation system for systems running Linux.
|
||||||
@ -57,7 +57,7 @@ the components needed to locally develop and execute systemtap scripts.
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: Programmable system-wide instrumentation system - development headers, tools
|
Summary: Programmable system-wide instrumentation system - development headers, tools
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Requires: gcc make kernel-devel systemd
|
Requires: make kernel-devel systemd
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
This package contains the components needed to compile a systemtap
|
This package contains the components needed to compile a systemtap
|
||||||
@ -164,6 +164,7 @@ to remote requesters on demand.
|
|||||||
|
|
||||||
%package help
|
%package help
|
||||||
Summary: systemtap manual
|
Summary: systemtap manual
|
||||||
|
Buildarch: noarch
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://sourceware.org/systemtap
|
URL: http://sourceware.org/systemtap
|
||||||
|
|
||||||
@ -182,7 +183,9 @@ This package include systemtap manual
|
|||||||
--with-dracutstap=%{dracutstap} \
|
--with-dracutstap=%{dracutstap} \
|
||||||
--with-dracutbindir=%{dracutbindir} \
|
--with-dracutbindir=%{dracutbindir} \
|
||||||
--with-python3 \
|
--with-python3 \
|
||||||
|
%ifnarch sw_64
|
||||||
--with-python3-probes \
|
--with-python3-probes \
|
||||||
|
%endif
|
||||||
--enable-pie \
|
--enable-pie \
|
||||||
--with-rpm \
|
--with-rpm \
|
||||||
--enable-sqlite \
|
--enable-sqlite \
|
||||||
@ -255,7 +258,9 @@ install -p -m 755 initscript/99stap/start-staprun.sh $RPM_BUILD_ROOT%{dracutstap
|
|||||||
touch $RPM_BUILD_ROOT%{dracutstap}/params.conf
|
touch $RPM_BUILD_ROOT%{dracutstap}/params.conf
|
||||||
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/stap-exporter
|
mkdir -p $RPM_BUILD_ROOT/stap-exporter
|
||||||
|
%ifnarch sw_64
|
||||||
install -p -m 755 stap-exporter/stap-exporter $RPM_BUILD_ROOT%{_bindir}
|
install -p -m 755 stap-exporter/stap-exporter $RPM_BUILD_ROOT%{_bindir}
|
||||||
|
%endif
|
||||||
install -m 644 stap-exporter/stap-exporter.service $RPM_BUILD_ROOT%{_unitdir}
|
install -m 644 stap-exporter/stap-exporter.service $RPM_BUILD_ROOT%{_unitdir}
|
||||||
install -m 644 stap-exporter/stap-exporter.8* $RPM_BUILD_ROOT%{_mandir}/man8
|
install -m 644 stap-exporter/stap-exporter.8* $RPM_BUILD_ROOT%{_mandir}/man8
|
||||||
|
|
||||||
@ -327,8 +332,11 @@ fi
|
|||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%preun stap-exporter
|
%preun stap-exporter
|
||||||
|
if [ "$1" -eq "0" ] ; then
|
||||||
/bin/systemctl stop stap-exporter.service >/dev/null 2>&1 || :
|
/bin/systemctl stop stap-exporter.service >/dev/null 2>&1 || :
|
||||||
/bin/systemctl disable stap-exporter.service >/dev/null 2>&1 || :
|
/bin/systemctl disable stap-exporter.service >/dev/null 2>&1 || :
|
||||||
|
fi
|
||||||
|
exit 0
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/bin/systemctl enable systemtap.service >/dev/null 2>&1 || :
|
/bin/systemctl enable systemtap.service >/dev/null 2>&1 || :
|
||||||
@ -393,7 +401,9 @@ exit 0
|
|||||||
%{_emacs_sitelispdir}/*.el*
|
%{_emacs_sitelispdir}/*.el*
|
||||||
%{_emacs_sitestartdir}/systemtap-init.el
|
%{_emacs_sitestartdir}/systemtap-init.el
|
||||||
%{_datadir}/vim/vimfiles/*/*.vim
|
%{_datadir}/vim/vimfiles/*/*.vim
|
||||||
|
%ifnarch sw_64
|
||||||
%{_libexecdir}/systemtap/python/stap-resolve-module-function.py
|
%{_libexecdir}/systemtap/python/stap-resolve-module-function.py
|
||||||
|
%endif
|
||||||
|
|
||||||
%files runtime -f systemtap.lang
|
%files runtime -f systemtap.lang
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -440,20 +450,39 @@ exit 0
|
|||||||
%{_datadir}/systemtap/testsuite
|
%{_datadir}/systemtap/testsuite
|
||||||
|
|
||||||
%files runtime-python3
|
%files runtime-python3
|
||||||
|
%ifnarch sw_64
|
||||||
%{python3_sitearch}/HelperSDT
|
%{python3_sitearch}/HelperSDT
|
||||||
%{python3_sitearch}/HelperSDT-*.egg-info
|
%{python3_sitearch}/HelperSDT-*.egg-info
|
||||||
|
%endif
|
||||||
|
|
||||||
%files stap-exporter
|
%files stap-exporter
|
||||||
%{_unitdir}/stap-exporter.service
|
%{_unitdir}/stap-exporter.service
|
||||||
|
%ifnarch sw_64
|
||||||
%{_bindir}/stap-exporter
|
%{_bindir}/stap-exporter
|
||||||
/etc/stap-exporter/*
|
/etc/stap-exporter/*
|
||||||
/usr/sbin/stap-exporter
|
/usr/sbin/stap-exporter
|
||||||
/etc/sysconfig/stap-exporter
|
/etc/sysconfig/stap-exporter
|
||||||
|
%endif
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
%{_mandir}/man[1378]/*
|
%{_mandir}/man[1378]/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Aug 21 2024 chengsongyuxuan <chengsongyuxuan@cqsoftware.com.cn> - 4.5-6
|
||||||
|
- Add 'Buildarch: noarch' to the help subpackage.
|
||||||
|
|
||||||
|
* Mon Dec 5 2022 langfei<langfei@huawei.com> - 4.5-5
|
||||||
|
- Type:bugfix
|
||||||
|
- CVE:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:Resolve stap-exporter.service chenge to disable when upgraded systemtap-stap-exporter package
|
||||||
|
|
||||||
|
* Thu Oct 27 2022 wuzx<wuzx1226@qq.com> - 4.5-4
|
||||||
|
- Add sw64 architecture
|
||||||
|
|
||||||
|
* Mon Jun 20 2022 zhouwenpei <zhouwenpei1@h-partners.com> - 4.5-3
|
||||||
|
- Remove requires on gcc and systemtap-devel
|
||||||
|
|
||||||
* Wed Mar 9 2022 - Qiang Wei <qiang.wei@suse.com> - 4.5-2
|
* Wed Mar 9 2022 - Qiang Wei <qiang.wei@suse.com> - 4.5-2
|
||||||
- Add int type cast to resolve gcc issue for option Wformat=2
|
- Add int type cast to resolve gcc issue for option Wformat=2
|
||||||
|
|
||||||
@ -463,7 +492,7 @@ exit 0
|
|||||||
* Mon Feb 1 2021 xinghe <xinghe1@huawei.com> - 4.4-1
|
* Mon Feb 1 2021 xinghe <xinghe1@huawei.com> - 4.4-1
|
||||||
- upgrade to 4.4
|
- upgrade to 4.4
|
||||||
|
|
||||||
* Thu Jul 21 2020 jinzhimin <jinzhimin2@huawei.com> - 4.3-1
|
* Tue Jul 21 2020 jinzhimin <jinzhimin2@huawei.com> - 4.3-1
|
||||||
- upgrade to 4.3
|
- upgrade to 4.3
|
||||||
|
|
||||||
* Fri Mar 13 2020 yuxiangyang <yuxiangyang4@huawei.com> - 4.1.3
|
* Fri Mar 13 2020 yuxiangyang <yuxiangyang4@huawei.com> - 4.1.3
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user