114 Star 0 Fork 18

src-openEuler/ltrace

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
ltrace.spec 3.36 KB
一键复制 编辑 原始数据 按行查看 历史
邹鹏 提交于 2023-12-19 15:31 . Add support for ppc64le
name: ltrace
Version: 0.7.91
Release: 34
Summary: Trace the Library and System Calls a Program Makes
License: GPLv2+
URL: https://gitlab.com/cespedes/ltrace
Source0: http://repository.timesys.com/buildsources/l/ltrace/ltrace-0.7.91/ltrace-0.7.91.tar.gz
Patch0001: ltrace-0.7.91-account_execl.patch
Patch0002: ltrace-0.7.91-x86_64-irelative.patch
Patch0003: ltrace-0.7.91-man.patch
Patch0004: ltrace-0.7.91-cant_open.patch
Patch0005: ltrace-0.7.91-aarch64.patch
Patch0006: ltrace-0.7.2-e_machine.patch
Patch0007: ltrace-0.7.91-parser-ws_after_id.patch
Patch0008: ltrace-0.7.91-x86-plt_map.patch
Patch0009: ltrace-0.7.91-x86-unused_label.patch
Patch0010: ltrace-0.7.91-unwind-elfutils.patch
Patch0011: ltrace-0.7.91-multithread-no-f-1.patch
Patch0012: ltrace-0.7.91-multithread-no-f-2.patch
Patch0013: ltrace-0.7.91-testsuite-includes.patch
Patch0014: ltrace-0.7.91-testsuite-includes-2.patch
Patch0015: ltrace-0.7.91-tautology.patch
Patch0016: ltrace-0.7.91-aarch64-params.patch
# patch for openEuler
Patch9000: bugfix-0001-ltrace-0.7.91-aarch64_be-compile-support.patch
Patch9001: bugfix-0001-ltrace-byteswap-instruction-in-arm-be8-mode.patch
Patch9002: bugfix-for-use-after-free-about-soname.patch
Patch9003: fix-null-directive-argument.patch
Patch9004: Initialize-nrhs-to-avoid-gcc-warning.patch
# patch for arches
Patch8000: ltrace-0.7.91-add-support-for-loongarch.patch
Patch8001: ltrace-0.7.91-add-initial-riscv64-support.patch
Patch8002: ltrace-0.7.91-add-support-for-ppc64le.patch
BuildRequires: elfutils-devel dejagnu libselinux-devel autoconf automake libtool
%description
Ltrace is a program that runs the specified command until it exits. It
intercepts and records the dynamic library calls that are called by the
executed process and the signals that are received by that process. It
can also intercept and print the system calls executed by the program.
The program to trace need not be recompiled for this, so you can use
ltrace on binaries for which you do not have access to the source.
This is still a work in progress, so, for example, the tracking to
child processes may fail or some things may not work as expected.
%package help
Summary: Help document for the ltrace package
%description help
Help document for the ltrace package.
%prep
%autosetup -n %{name}-%{version} -p1
%build
autoreconf -i
%configure --docdir=%{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}}
%make_build
%install
%make_install bindir=%{_bindir}
%check
#timeout 180 make check ||:
%files
%doc NEWS CREDITS INSTALL README TODO COPYING
%{_bindir}/ltrace
%{_datadir}/ltrace
%files help
%{_mandir}/man1/ltrace.1*
%{_mandir}/man5/ltrace.conf.5*
%changelog
* Tue Dec 19 2023 peng.zou <peng.zou@shingroup.cn> - 0.7.91-34
- Add support for ppc64le
* Fri Jul 07 2023 laokz <zhangkai@iscas.ac.cn> - 0.7.91-33
- Backport riscv64 patch
* Thu Dec 15 2022 Hui Li <lihui@loongson.cn> - 0.7.91-32
- Add support for loongarch
* Mon Jan 11 2021 lingsheng <lingsheng@huawei.com> - 0.7.91-31
- Initialize 'nrhs' to avoid gcc warning
* Sat May 16 2020 Senlin Xia <xiasenlin1@huawei.com> - 0.7.91-30
- fix the error: "%s" directive argument is NULL [-Werror=format-overflow=]
* Wed Nov 27 2019 daiqianwen <daiqianwen@huawei.com> - 0.7.91-29
- Package init.
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/ltrace.git
git@gitee.com:src-openeuler/ltrace.git
src-openeuler
ltrace
ltrace
master

搜索帮助