13 Star 4 Fork 10

src-openEuler/X-diagnosis

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
xdiagnose.spec 1.93 KB
一键复制 编辑 原始数据 按行查看 历史
asphyxiasq 提交于 2024-06-17 15:17 . fix xdiag ntrace error
%global debug_package %{nil}
Name: xdiagnose
Version: 1.0.1
Release: 7
Summary: system diagnostic tool set
License: MulanPSL-2.0
URL: https://gitee.com/openeuler/X-diagnosis
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: python3 python3-setuptools
BuildRequires: elfutils-devel clang llvm libbpf libbpf-devel libbpf-static bpftool dwarves cmake
BuildRequires: kernel-debuginfo gdb
%description
Xdiagnose is an OS troubleshooting tool that integrates functions such as analysis, network tracking, periodic information recording, and historical experience curing.
%prep
%setup -n %{name}-%{version}
%build
pushd src/python
python3 setup.py build
popd
sh build/build.sh -b %{buildroot}/%{_bindir}
%install
pushd src/python
python3 setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
popd
sh build/build.sh -i %{buildroot}/%{_bindir}
mkdir -p %{buildroot}%{_sysconfdir}/x-diagnose
cp -a config/diag.conf %{buildroot}%{_sysconfdir}/x-diagnose
cp -a config/sysinspect.conf %{buildroot}%{_sysconfdir}/x-diagnose
%clean
rm -rf $RPM_BUILD_ROOT
%files -f src/python/INSTALLED_FILES
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/x-diagnose/diag.conf
%config(noreplace) %{_sysconfdir}/x-diagnose/sysinspect.conf
%{_bindir}/*
%changelog
* Mon Jun 17 2024 zhanpengxu<zhanpengxu@huawei.com> - 1.0.1-7
- fix xdiag ntrace error
* Wed May 29 2024 zhanpengxu<zhanpengxu@huawei.com> - 1.0.1-6
- fix xd_iolatency no return
* Tue Apr 23 2024 yujunze<yujunze2@huawei.com> - 1.0.1-5
- fix bpf error in linux 6.6
* Sun June 25 2023 wangxiaogang<wangxiaogang3@huawei.com> - 1.0.1-4
- fix param error
* Wed June 12 2023 wangxiaogang<wangxiaogang3@huawei.com> - 1.0.1-3
- fix python pack error
* Wed June 7 2023 wangxiaogang<wangxiaogang3@huawei.com> - 1.0.1-2
- new framework
* Fri Dec 2 2022 lankstra<lankstra@163.com> - 1.0.1-1
- init version.
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/X-diagnosis.git
git@gitee.com:src-openeuler/X-diagnosis.git
src-openeuler
X-diagnosis
X-diagnosis
master

搜索帮助