packaging: Initial packaging
authorAnas Nashif <anas.nashif@intel.com>
Tue, 6 Nov 2012 22:03:44 +0000 (14:03 -0800)
committerSungguk Na <sungguk.na@samsung.com>
Fri, 27 Nov 2020 08:54:34 +0000 (17:54 +0900)
Change-Id: I3b84c7b4a1fb24bbadbce07e14a157ebc80b767e
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
packaging/baselibs.conf [new file with mode: 0644]
packaging/strace-4.7.diff [new file with mode: 0644]
packaging/strace.spec [new file with mode: 0644]

diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf
new file mode 100644 (file)
index 0000000..11b88f1
--- /dev/null
@@ -0,0 +1,4 @@
+strace
+  +/usr/bin/strace-graph -> /usr/bin/strace-graph<extension>
+  +/usr/bin/strace -> /usr/bin/strace<extension>
+  prereq -glibc-x86
diff --git a/packaging/strace-4.7.diff b/packaging/strace-4.7.diff
new file mode 100644 (file)
index 0000000..a812726
--- /dev/null
@@ -0,0 +1,13 @@
+--- strace-4.5.20/util.c.orig  2010-02-04 23:40:57.000000000 +0100
++++ strace-4.5.20/util.c       2010-04-15 14:26:42.697554000 +0200
+@@ -1292,9 +1292,8 @@ arg_setup(struct tcb *tcp, arg_setup_sta
+       sof = (cfm >> 0) & 0x7f;
+       sol = (cfm >> 7) & 0x7f;
+-      bsp = (long) ia64_rse_skip_regs((unsigned long *) bsp, -sof + sol);
++      *state = ia64_rse_skip_regs((unsigned long *) bsp, -sof + sol);
+-      *state = (unsigned long *) bsp;
+       return 0;
+ }
diff --git a/packaging/strace.spec b/packaging/strace.spec
new file mode 100644 (file)
index 0000000..06385ff
--- /dev/null
@@ -0,0 +1,78 @@
+#
+# spec file for package strace
+#
+# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+#
+# All modifications and additions to the file contributed by third parties
+# remain the property of their copyright owners, unless otherwise agreed
+# upon. The license for this file, and modifications and additions to the
+# file, is the same license as for the pristine package itself (unless the
+# license for the pristine package is not an Open Source License, in which
+# case the license is the MIT License). An "Open Source License" is a
+# license that conforms to the Open Source Definition (Version 1.9)
+# published by the Open Source Initiative.
+
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
+#
+
+
+Name:           strace
+BuildRequires:  libacl-devel
+BuildRequires:  libaio-devel
+BuildRequires:  lksctp-tools-devel
+BuildRequires:  xz
+# bug437293
+%ifarch ppc64
+Obsoletes:      strace-64bit
+%endif
+#
+Version:        4.7
+Release:        0
+License:        BSD-3-Clause
+Summary:        A utility to trace the system calls of a program
+Url:            http://sourceforge.net/projects/strace/
+Group:          Development/Tools/Debuggers
+Source:         http://dl.sourceforge.net/strace/strace-%{version}.tar.xz
+Source2:        baselibs.conf
+Patch0:         strace-%{version}.diff
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+
+%description
+With strace, you can trace the activity of a program.  Information
+about any system calls the program makes and the signals it receives
+and processes can be seen.  Child processes can also be tracked.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+export CFLAGS="%{optflags}"
+%ifarch alpha
+CFLAGS="$CFLAGS -ffixed-8"
+%endif
+%configure \
+%ifarch %sparc
+       --host=%_target_platform
+%endif
+
+make %{?_smp_mflags}
+
+# Have to exclude make check for qemu builds, which apparently don't support PTRACE.
+%if !(0%{?qemu_user_space_build})
+%check
+make check
+%endif
+
+%install
+%make_install
+
+%files
+%defattr(-,root,root)
+%doc README README-linux NEWS
+%{_bindir}/strace
+%{_bindir}/strace-graph
+%{_bindir}/strace-log-merge
+%doc %{_mandir}/man1/strace.1.gz
+
+%changelog