Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ltrace for openSUSE:Factory checked 
in at 2021-04-12 12:33:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ltrace (Old)
 and      /work/SRC/openSUSE:Factory/.ltrace.new.2401 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ltrace"

Mon Apr 12 12:33:51 2021 rev:46 rq:884045 version:0.7.91

Changes:
--------
--- /work/SRC/openSUSE:Factory/ltrace/ltrace.changes    2020-12-18 
19:56:45.417893733 +0100
+++ /work/SRC/openSUSE:Factory/.ltrace.new.2401/ltrace.changes  2021-04-12 
12:33:58.437073479 +0200
@@ -1,0 +2,7 @@
+Fri Apr  9 12:27:01 UTC 2021 - Dirk M??ller <[email protected]>
+
+- add ltrace-0.7.91-ppc64le-scv.patch from Fedora
+- spec-cleaner
+- add timeout to testsuite run, it is non-fatal anyway 
+
+-------------------------------------------------------------------
@@ -5 +11,0 @@
-

New:
----
  ltrace-0.7.91-ppc64le-scv.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ltrace.spec ++++++
--- /var/tmp/diff_new_pack.pw2WTV/_old  2021-04-12 12:33:59.261074755 +0200
+++ /var/tmp/diff_new_pack.pw2WTV/_new  2021-04-12 12:33:59.265074761 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ltrace
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,17 +16,18 @@
 #
 
 
+%define git_id gea8928d
 Name:           ltrace
+Version:        0.7.91
+Release:        0
 Summary:        Library and system call tracer for programs
 License:        GPL-2.0-or-later
 Group:          Development/Tools/Debuggers
-Version:        0.7.91
-Release:        0
-URL:            http://ltrace.org/
-%define git_id gea8928d
+URL:            https://ltrace.org/
 Source:         ltrace-%{version}-%{git_id}.tar.bz2
 Source2:        baselibs.conf
-Patch:          readdir.patch
+Patch0:         readdir.patch
+Patch1:         
https://src.fedoraproject.org/rpms/ltrace/raw/rawhide/f/ltrace-0.7.91-ppc64le-scv.patch
 Patch3:         ppc-ptrace.patch
 Patch4:         arm-trace.patch
 Patch5:         gcc9-printf-s-null-argument.patch
@@ -41,12 +42,7 @@
 BuildRequires:  libdw-devel
 BuildRequires:  libelf-devel
 BuildRequires:  libtool
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-ExclusiveArch:  %ix86 s390x ppc ppc64 ppc64le %arm x86_64 alpha ia64 m68k 
aarch64
-# bug437293
-%ifarch ppc64
-Obsoletes:      ltrace-64bit
-%endif
+ExclusiveArch:  %{ix86} s390x ppc ppc64 ppc64le %{arm} x86_64 alpha ia64 m68k 
aarch64
 
 %description
 Ltrace is a program that runs the specified command until it exits. It
@@ -62,7 +58,8 @@
 
 %prep
 %setup -q
-%patch -p1
+%patch0 -p1
+%patch1 -p1
 %patch3 -p1
 %patch4 -p1
 %patch5
@@ -74,11 +71,11 @@
 ./autogen.sh
 export CFLAGS="%{optflags} -Wall -Wno-unused-local-typedefs"
 %configure --disable-shared
-make %{?_smp_mflags}
+%make_build
 
 %check
 %if 1
-if make check
+if timeout 180 make check
 then
        echo 'no make check errors' > testresults.txt
 else
@@ -100,14 +97,14 @@
 
 %install
 %make_install
-rm -rf %{buildroot}/usr/share/doc/ltrace
+rm -rf %{buildroot}%{_datadir}/doc/ltrace
 
 %files
 %doc README
 %license COPYING
 %{_bindir}/ltrace
 %{_datadir}/ltrace
-%{_mandir}/man1/ltrace.1.gz
-%{_mandir}/man5/ltrace.conf.5.gz
+%{_mandir}/man1/ltrace.1%{?ext_man}
+%{_mandir}/man5/ltrace.conf.5%{?ext_man}
 
 %changelog

++++++ ltrace-0.7.91-ppc64le-scv.patch ++++++
diff -rup a/sysdeps/linux-gnu/ppc/trace.c b/sysdeps/linux-gnu/ppc/trace.c
--- a/sysdeps/linux-gnu/ppc/trace.c     2021-02-08 14:35:16.876494095 -0500
+++ b/sysdeps/linux-gnu/ppc/trace.c     2021-02-08 15:05:59.468107311 -0500
@@ -57,6 +57,7 @@ get_arch_dep(struct process *proc)
 }
 
 #define SYSCALL_INSN   0x44000002
+#define SYSCALL2_INSN  0x44000001
 
 /* Returns 1 if syscall, 2 if sysret, 0 otherwise. */
 int
@@ -75,7 +76,7 @@ syscall_p(struct process *proc, int stat
                                0);
 #endif
 
-               if (insn == SYSCALL_INSN) {
+               if (insn == SYSCALL_INSN || insn == SYSCALL2_INSN) {
                        *sysnum =
                            (int)ptrace(PTRACE_PEEKUSER, proc->pid,
                                        sizeof(long) * PT_R0, 0);

Reply via email to