[PATCH 4/5] Add asinfo to build strace deb/rpm packages

Edgar Kaziakhmedov edgar.kaziakhmedov at virtuozzo.com
Mon Aug 28 16:11:09 UTC 2017


As asinfo detects ABI mode based on userspace environment in biarch
systems, add asinfo only to strace package.

* debian/control (strace, strace-udeb): Add asinfo decription.
* debian/strace.install: Add path to asinfo binary.
* debian/strace.manpages: Add path to asinfo man.
* strace.spec.in (%files): Add asinfo binary.

Signed-off-by: Edgar Kaziakhmedov <edgar.kaziakhmedov at virtuozzo.com>
---
 debian/control         | 6 ++++++
 debian/strace.install  | 1 +
 debian/strace.manpages | 1 +
 strace.spec.in         | 7 +++++--
 4 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/debian/control b/debian/control
index 2a7963f9..47542475 100644
--- a/debian/control
+++ b/debian/control
@@ -20,6 +20,9 @@ Description: System call tracer
  System calls and signals are events that happen at the user/kernel
  interface. A close examination of this boundary is very useful for bug
  isolation, sanity checking and attempting to capture race conditions.
+ .
+ In addition, asinfo tool, included to package, allows to get information
+ about any system call for specified architecture.
 
 Package: strace64
 Architecture: i386 powerpc s390 sparc
@@ -54,5 +57,8 @@ Description: System call tracer
  interface. A close examination of this boundary is very useful for bug
  isolation, sanity checking and attempting to capture race conditions.
  .
+ In addition, asinfo tool, included to package, allows to get information
+ about any system call for specified architecture.
+ .
  This is a stripped down package intended for debugging use in the Debian
  installer.
diff --git a/debian/strace.install b/debian/strace.install
index 1f419282..4c7d5975 100644
--- a/debian/strace.install
+++ b/debian/strace.install
@@ -1 +1,2 @@
 build/strace usr/bin
+build/tools/asinfo/asinfo usr/bin
diff --git a/debian/strace.manpages b/debian/strace.manpages
index 5e74dd72..918fac1a 100644
--- a/debian/strace.manpages
+++ b/debian/strace.manpages
@@ -1 +1,2 @@
 strace.1
+build/tools/asinfo/asinfo.1
diff --git a/strace.spec.in b/strace.spec.in
index 0556f78d..ee02a507 100644
--- a/strace.spec.in
+++ b/strace.spec.in
@@ -21,7 +21,8 @@ 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.
+purposes. Also strace includes advanced system call information tool
+(asinfo), which provides information about system calls and architectures.
 
 Install strace if you need a tool to track the system calls made and
 received by a process.
@@ -36,7 +37,8 @@ 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.
+purposes. Also strace includes advanced system call information tool
+(asinfo), which provides information about system calls and architectures.
 
 Install strace if you need a tool to track the system calls made and
 received by a process.
@@ -92,6 +94,7 @@ echo 'END OF TEST SUITE INFORMATION'
 %{?suse_version:%defattr(-,root,root)}
 %doc CREDITS ChangeLog ChangeLog-CVS COPYING NEWS README
 %{_bindir}/strace
+${_bindir}/asinfo
 %{_bindir}/strace-log-merge
 %{_mandir}/man1/*
 
-- 
2.11.0





More information about the Strace-devel mailing list