Projects
home:pandora:RobinOS23
strace
_service:download_src_package:strace.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:download_src_package:strace.spec of Package strace
%define anolis_release 1 Summary: Tracks and displays system calls associated with a running process Name: strace Version: 5.16 Release: %{anolis_release}%{?dist} # The test suite is GPLv2+, all the rest is LGPLv2.1+. License: LGPL-2.1+ and GPL-2.0+ URL: https://strace.io Source: https://strace.io/files/%{version}/strace-%{version}.tar.xz BuildRequires: xz BuildRequires: gcc gzip make # Install Bluetooth headers for AF_BLUETOOTH sockets decoding. BuildRequires: pkgconfig(bluez) # Install elfutils-devel or libdw-devel to enable strace -k option. # Install binutils-devel to enable symbol demangling. BuildRequires: elfutils-devel binutils-devel BuildRequires: libselinux-devel # Fallback definitions for make_build/make_install macros %{?!__make: %global __make %_bindir/make} %{?!__install: %global __install %_bindir/install} %{?!make_build: %global make_build %__make %{?_smp_mflags}} %{?!make_install: %global make_install %__make install DESTDIR="%{?buildroot}" INSTALL="%__install -p"} %description The strace program intercepts and records the system calls called and received by a running process. Strace can print a record of each system call, its arguments and its return value. Strace is useful for diagnosing problems and debugging, as well as for instructional purposes. Install strace if you need a tool to track the system calls made and received by a process. %prep %setup -q echo -n %version-%release > .tarball-version echo -n 2022 > .year echo -n 2022-01-04 > doc/.strace.1.in.date echo -n 2022-01-01 > doc/.strace-log-merge.1.in.date %build echo 'BEGIN OF BUILD ENVIRONMENT INFORMATION' uname -a |head -1 libc="$(ldd /bin/sh |sed -n 's|^[^/]*\(/[^ ]*/libc\.so[^ ]*\).*|\1|p' |head -1)" $libc |head -1 file -L /bin/sh gcc --version |head -1 ld --version |head -1 kver="$(printf '%%s\n%%s\n' '#include <linux/version.h>' 'LINUX_VERSION_CODE' | gcc -E -P -)" printf 'kernel-headers %%s.%%s.%%s\n' $(($kver/65536)) $(($kver/256%%256)) $(($kver%%256)) echo 'END OF BUILD ENVIRONMENT INFORMATION' CFLAGS_FOR_BUILD="$RPM_OPT_FLAGS"; export CFLAGS_FOR_BUILD %configure --enable-mpers=check %make_build %install %make_install # some say uncompressed changelog files are too big for f in ChangeLog ChangeLog-CVS; do gzip -9n < "$f" > "$f".gz & done wait %check %{buildroot}%{_bindir}/strace -V %make_build -k check VERBOSE=1 echo 'BEGIN OF TEST SUITE INFORMATION' tail -n 99999 -- tests*/test-suite.log tests*/ksysent.gen.log find tests* -type f -name '*.log' -print0 | xargs -r0 grep -H '^KERNEL BUG:' -- ||: echo 'END OF TEST SUITE INFORMATION' %files %doc CREDITS ChangeLog.gz ChangeLog-CVS.gz COPYING NEWS README %{_bindir}/strace %{_bindir}/strace-log-merge %{_mandir}/man1/* %changelog * Mon Mar 07 2022 Yuanhong Peng <yummypeng@linux.alibaba.com> - 5.16-1 - Init from upstream v5.16
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2