Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package latrace for openSUSE:Factory checked 
in at 2022-04-22 21:54:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/latrace (Old)
 and      /work/SRC/openSUSE:Factory/.latrace.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "latrace"

Fri Apr 22 21:54:30 2022 rev:10 rq:972153 version:0.5.11

Changes:
--------
--- /work/SRC/openSUSE:Factory/latrace/latrace.changes  2018-02-07 
18:41:09.572895870 +0100
+++ /work/SRC/openSUSE:Factory/.latrace.new.1538/latrace.changes        
2022-04-22 21:55:40.334902943 +0200
@@ -1,0 +2,23 @@
+Thu Apr 21 13:02:40 UTC 2022 - Fridrich Strba <[email protected]>
+
+- Add config.sub and config.guess files to sources in order to fix
+  generation of configure from configure.ac in Factory
+- Fetch the tarball using source service, since the tarball does
+  not exist any more on people.redhat.com
+- Added patches:
+  * 0001-make-Fixes-paraller-building-like-make-j16.patch:
+    Upstream fix for highly parallel builds
+  * 0002-stats-bugfix-use-timersub-and-timeradd.patch:
+    Upstream commit to replace buggy tv_sub and tv_add by
+    timersub and timeradd
+  * 0003-stats-report-zero-percents-instead-of-NaN.patch:
+    Upstream fix to report zero percent instead of NaN
+  * 0004-add-aarch64-and-ppc64le-support-to-audit.h.patch:
+    Upstream commit to add support for ppc64le and aarch64
+    architectures
+  * ppc-fedora.patch
+  * latrace-PRINT-format.patch:
+    Avoid a non-literal format string by using string token
+    pasting  
+
+-------------------------------------------------------------------

Old:
----
  latrace-0.5.11.tar.bz2

New:
----
  0001-make-Fixes-paraller-building-like-make-j16.patch
  0002-stats-bugfix-use-timersub-and-timeradd.patch
  0003-stats-report-zero-percents-instead-of-NaN.patch
  0004-add-aarch64-and-ppc64le-support-to-audit.h.patch
  _service
  config.guess
  config.sub
  latrace-0.5.11.tar.xz
  latrace-PRINT-format.patch
  ppc-fedora.patch

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

Other differences:
------------------
++++++ latrace.spec ++++++
--- /var/tmp/diff_new_pack.BP2VRM/_old  2022-04-22 21:55:40.818903494 +0200
+++ /var/tmp/diff_new_pack.BP2VRM/_new  2022-04-22 21:55:40.822903499 +0200
@@ -2,7 +2,7 @@
 #
 # spec file for package latrace
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -13,7 +13,7 @@
 # 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/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -21,20 +21,30 @@
 Version:        0.5.11
 Release:        0
 Summary:        Trace Library Calls using LD_AUDIT
-License:        GPL-3.0+
+License:        GPL-3.0-or-later
 Group:          System/Monitoring
-Source:         
http://people.redhat.com/jolsa/latrace/dl/latrace-%{version}.tar.bz2
+URL:            http://people.redhat.com/jolsa/latrace/index.shtml
+Source:         %{name}-%{version}.tar.xz
+# Fresh config.guess and config.sub files
+# wget -O config.guess 
'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD'
+Source1:        config.guess
+# wget -O config.sub 
'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD'
+Source2:        config.sub
 Source99:       latrace-rpmlintrc
 Patch0:         reproducible.patch
 Patch1:         latrace-0.5.11-fixes.diff
-Url:            http://people.redhat.com/jolsa/latrace/index.shtml
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+Patch2:         0001-make-Fixes-paraller-building-like-make-j16.patch
+Patch3:         0002-stats-bugfix-use-timersub-and-timeradd.patch
+Patch4:         0003-stats-report-zero-percents-instead-of-NaN.patch
+Patch5:         0004-add-aarch64-and-ppc64le-support-to-audit.h.patch
+Patch6:         latrace-PRINT-format.patch
+Patch7:         ppc-fedora.patch
 BuildRequires:  asciidoc
 BuildRequires:  autoconf
 BuildRequires:  bison
 BuildRequires:  flex
+BuildRequires:  libtool
 BuildRequires:  xmlto
-ExclusiveArch:  %{ix86} x86_64 %{arm}
 
 %description
 latrace is a glibc 2.4+ LD_AUDIT frontend. It allows you to trace library calls
@@ -42,8 +52,15 @@
 
 %prep
 %setup -q
+cp %{SOURCE1} %{SOURCE2} .
 %patch0 -p1
 %patch1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
 
 %build
 autoconf
@@ -54,8 +71,8 @@
 %make_install V=1
 
 %files
-%defattr(-,root,root)
-%doc COPYING ChangeLog README TODO ReleaseNotes
+%license COPYING
+%doc ChangeLog README TODO ReleaseNotes
 %config %dir %{_sysconfdir}/latrace.d
 %config %dir %{_sysconfdir}/latrace.d/headers
 %config %{_sysconfdir}/latrace.d/*.conf
@@ -69,6 +86,6 @@
 %{_bindir}/latrace-ctl
 %dir %{_libdir}/latrace
 %{_libdir}/latrace/libltaudit.so.%{version}
-%doc %{_mandir}/man1/latrace.1%{ext_man}
+%{_mandir}/man1/latrace.1%{?ext_man}
 
 %changelog

++++++ 0001-make-Fixes-paraller-building-like-make-j16.patch ++++++
>From 01166acb9da9ea2aea40349c44d78764f8e2f3cd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tapani=20P=C3=A4lli?= <[email protected]>
Date: Mon, 5 Sep 2011 10:42:38 -0400
Subject: [PATCH 1/4] make: Fixes paraller building like 'make -j16'

---
 ChangeLog     | 4 ++++
 test/Makefile | 6 +++---
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 2a00346..65dff9b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-09-05 Jiri Olsa <[email protected]>
+       * Fixes paraller building like 'make -j16'
+         (contributed by Tapani P??lli <[email protected]>)
+
 -------------------------------------------------------------------------------
 latrace 0.5.11
 
diff --git a/test/Makefile b/test/Makefile
index 418760e..4ae134c 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -16,16 +16,16 @@ lib-test-libsym2.so: test/lib-test-libsym2.o
 lib-test-libsym3.so: test/lib-test-libsym3.o
        $(QUIET_LD)$(CC) $(CFLAGS) -fPIC -shared $(LDFLAGS) -o $@ $^
 
-test-common: test/test-lib.o test/test-common.o
+test-common: lib-test-common.so test/test-lib.o test/test-common.o
        $(QUIET_LD)$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ lib-test-common.so
 
-test-args: test/test-lib.o test/test-args.o 
test/sysdeps/$(CONFIG_SYSDEP_DIR)/test-args.o
+test-args: lib-test-args.so test/test-lib.o test/test-args.o 
test/sysdeps/$(CONFIG_SYSDEP_DIR)/test-args.o
        $(QUIET_LD)$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ lib-test-args.so
 
 test-kill: test/test-kill.o
        $(QUIET_LD)$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
 
-test-libsym: test/test-libsym.o test/test-lib.o
+test-libsym: lib-test-libsym1.so lib-test-libsym2.so lib-test-libsym3.so 
test/test-libsym.o test/test-lib.o
        $(QUIET_LD)$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ lib-test-libsym1.so 
lib-test-libsym2.so lib-test-libsym3.so
 
 OBJS+=test/test-lib.o
-- 
2.35.3


++++++ 0002-stats-bugfix-use-timersub-and-timeradd.patch ++++++
>From 749d16e7ac7dab3641d23eeead752335e23854f4 Mon Sep 17 00:00:00 2001
From: Akos PASZTORY <[email protected]>
Date: Sat, 3 Dec 2011 15:42:56 +0000
Subject: [PATCH 2/4] stats: bugfix: use timersub() and timeradd()

tv_sub() had a bug: if 'a' represented the same time as 'b' then it
added extra 1000000 usecs.
---
 ChangeLog   |  4 ++++
 src/stats.c | 41 +++++------------------------------------
 2 files changed, 9 insertions(+), 36 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 65dff9b..9afa02c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-12-05 Jiri Olsa <[email protected]>
+       * stats bugfix - use timersub() and timeradd()
+         (contributed by Akos Pasztory <[email protected]>)
+
 2011-09-05 Jiri Olsa <[email protected]>
        * Fixes paraller building like 'make -j16'
          (contributed by Tapani P??lli <[email protected]>)
diff --git a/src/stats.c b/src/stats.c
index b1c8dda..d5c5351 100644
--- a/src/stats.c
+++ b/src/stats.c
@@ -31,37 +31,6 @@
 struct timeval tv_program_start;
 struct timeval tv_program_stop;
 
-/* res = a - b*/
-static int tv_sub(struct timeval *res, struct timeval *a, struct timeval *b)
-{
-       res->tv_sec = a->tv_sec - b->tv_sec;
-
-       if (a->tv_usec > b->tv_usec)
-               res->tv_usec = a->tv_usec - b->tv_usec;
-       else {
-               res->tv_usec = a->tv_usec + (1000000 - b->tv_usec);
-               if (res->tv_sec)
-                       res->tv_sec--;
-       }
-
-       return 0;
-}
-
-/* res = a + b*/
-static int tv_add(struct timeval *res, struct timeval *a, struct timeval *b)
-{
-       struct timeval tv;
-       tv.tv_sec = a->tv_sec + b->tv_sec;
-       tv.tv_usec = a->tv_usec + b->tv_usec;
-       if (tv.tv_usec > 1000000) {
-               tv.tv_usec -= 1000000;
-               tv.tv_sec++;
-       }
-
-       *res = tv;
-       return 0;
-}
-
 int lt_stats_alloc(struct lt_config_app *cfg, struct lt_thread *t)
 {
        int i;
@@ -186,8 +155,8 @@ int lt_stats_sym(struct lt_config_app *cfg, struct 
lt_thread *t,
 
        if (FIFO_MSG_TYPE_EXIT == m->h.type) {
                struct timeval tv;
-               tv_sub(&tv, &m->h.tv, &sym->tv_cur);
-               tv_add(&sym->tv_all, &sym->tv_all, &tv);
+               timersub(&m->h.tv, &sym->tv_cur, &tv);
+               timeradd(&sym->tv_all, &tv, &sym->tv_all);
        }
 
        return 0;
@@ -248,7 +217,7 @@ static int lt_stats_show_thread(struct lt_config_app *cfg, 
struct lt_thread *t)
 
        for(i = 0; i < t->sym_cnt; i++) {
                struct lt_stats_sym *sym = t->sym_array[i];
-               tv_add(&tv_thread_accu, &tv_thread_accu, &sym->tv_all);
+               timeradd(&sym->tv_all, &tv_thread_accu, &tv_thread_accu);
        }
 
        time_global = tv_thread_accu.tv_sec * 1000000 + tv_thread_accu.tv_usec;
@@ -270,7 +239,7 @@ static int lt_stats_show_thread(struct lt_config_app *cfg, 
struct lt_thread *t)
 
        PRINT_VERBOSE(cfg, 1, "%s\n", "printing");
 
-       tv_sub(&tv_thread_real, &t->tv_stop, &t->tv_start);
+       timersub(&t->tv_stop, &t->tv_start, &tv_thread_real);
        printf("\nThread %d (runtime %u.%06u sec)\n", 
                t->tid, (u_int) tv_thread_real.tv_sec, (u_int) 
tv_thread_real.tv_usec);
        printf("%3s %-6s %10s %10s %10s %-30s\n", 
@@ -311,7 +280,7 @@ int lt_stats_show(struct lt_config_app *cfg)
        struct lt_thread *t;
 
        struct timeval tv_program_real;
-       tv_sub(&tv_program_real, &tv_program_stop, &tv_program_start);
+       timersub(&tv_program_stop, &tv_program_start, &tv_program_real);
 
        
printf("\n--------------------------------------------------------------------------\n");
        printf("Statistics for [%s] total runtime: %u.%06u sec\n", 
-- 
2.35.3


++++++ 0003-stats-report-zero-percents-instead-of-NaN.patch ++++++
>From 2849dc00038e6b18403ffae653c89ae0b835a14a Mon Sep 17 00:00:00 2001
From: Akos PASZTORY <[email protected]>
Date: Sat, 3 Dec 2011 15:42:57 +0000
Subject: [PATCH 3/4] stats: report zero percents instead of NaN

---
 ChangeLog   | 1 +
 src/stats.c | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 9afa02c..f752b62 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2011-12-05 Jiri Olsa <[email protected]>
        * stats bugfix - use timersub() and timeradd()
+       * stats - report zero percents instead of NaN
          (contributed by Akos Pasztory <[email protected]>)
 
 2011-09-05 Jiri Olsa <[email protected]>
diff --git a/src/stats.c b/src/stats.c
index d5c5351..410c68e 100644
--- a/src/stats.c
+++ b/src/stats.c
@@ -24,6 +24,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <setjmp.h>
+#include <math.h>
 
 #include "config.h"
 
@@ -229,6 +230,8 @@ static int lt_stats_show_thread(struct lt_config_app *cfg, 
struct lt_thread *t)
                u_int time_sym = sym->tv_all.tv_sec*1000000 + 
sym->tv_all.tv_usec;
 
                sym->percent = time_sym / (time_global/100);
+               if (isnan(sym->percent))
+                       sym->percent = 0.0f;
                sym->usec_call = time_sym/sym->call;
        }
 
-- 
2.35.3


++++++ 0004-add-aarch64-and-ppc64le-support-to-audit.h.patch ++++++
>From fe46504f854e28ad83b17b085564d1d7eb5c67d4 Mon Sep 17 00:00:00 2001
From: Kyle McMartin <[email protected]>
Date: Mon, 5 May 2014 13:33:12 -0400
Subject: [PATCH] add aarch64 and ppc64le support to audit.h

Signed-off-by: Kyle McMartin <[email protected]>
---
 src/audit.h | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/src/audit.h b/src/audit.h
index 2633944..1ef2e13 100644
--- a/src/audit.h
+++ b/src/audit.h
@@ -46,13 +46,26 @@
 # define sp_reg lr_sp
 # define La_retval La_arm_retval
 # define int_retval lrv_reg[0]
+#elif defined __aarch64__
+# define pltenter la_aarch64_gnu_pltenter
+# define pltexit la_aarch64_gnu_pltexit
+# define La_regs La_aarch64_regs
+# define sp_reg lr_sp
+# define La_retval La_aarch64_retval
+# define int_retval lrv_xreg[0]
 #elif defined __powerpc__ && __WORDSIZE == 32
 # define pltenter la_ppc32_gnu_pltenter
 # define pltexit la_ppc32_gnu_pltexit
 # define La_regs La_ppc32_regs
 # define La_retval La_ppc32_retval
 # define int_retval lrv_r3
-#elif defined __powerpc__ && __WORDSIZE == 64
+#elif defined __powerpc__ && __WORDSIZE == 64 && _CALL_ELF == 2
+# define pltenter la_ppc64v2_gnu_pltenter
+# define pltexit la_ppc64v2_gnu_pltexit
+# define La_regs La_ppc64v2_regs
+# define La_retval La_ppc64v2_retval
+# define int_retval lrv_r3
+#elif defined __powerpc__ && __WORDSIZE == 64 && _CALL_ELF != 2
 # define pltenter la_ppc64_gnu_pltenter
 # define pltexit la_ppc64_gnu_pltexit
 # define La_regs La_ppc64_regs
-- 
2.35.3


++++++ _service ++++++
<services>
        <service name="tar_scm" mode="disabled">
                <param name="scm">git</param>
                <param name="url">https://github.com/jkkm/latrace.git</param>
                <param 
name="revision">f766581e7d100326a002cfce8c7a87254efd4423</param>
                <param name="versionformat">0.5.11</param>
        </service>
        <service name="recompress" mode="disabled">
                <param name="file">*.tar</param>
                <param name="compression">xz</param>
        </service>
        <service name="set_version" mode="disabled"/>
</services>

++++++ config.guess ++++++
++++ 1755 lines (skipped)

++++++ config.sub ++++++
++++ 1891 lines (skipped)

++++++ latrace-PRINT-format.patch ++++++
Avoid a non-literal format string by using string token pasting.

diff --git a/src/config.h b/src/config.h
index 278771a35999a126..0346f0dcb9ccbc11 100644
--- a/src/config.h
+++ b/src/config.h
@@ -386,13 +386,11 @@ void tty_close(struct lt_config_app *cfg);
 
 #define PRINT(fmt, args...) \
 do { \
-       char lpbuf[1024]; \
-       sprintf(lpbuf, "[%d %s:%05d] %s", \
+       printf("[%d %s:%05d] " fmt, \
                (pid_t) syscall(SYS_gettid), \
                __FUNCTION__, \
                __LINE__, \
-               fmt); \
-       printf(lpbuf, ## args); \
+              ## args); \
        fflush(NULL); \
 } while(0)
 

++++++ ppc-fedora.patch ++++++
commit a8f809faddff9a71adcee565b3644fa66ebfe4bc (origin/f22, origin/f21)
Author: Peter Robinson <[email protected]>
Date:   Wed Nov 26 14:52:05 2014 +0000
References: 
https://src.fedoraproject.org/rpms/latrace/blob/f30/f/latrace-ppc64-basic-audit.patch
Notes: Cherry-picked to openSUSE by fstrba, 2022-04-21T16:11:09

[ The latrace-ppc64-basic-audit.patch from F30 contains
what has become upstream commit fe46504f854e28ad83b17b085564d1d7eb5c67d4;
the following hunk with lt_stack_framesize did not make it upstream still. 
-jengelh]

--- a/src/stack.c
+++ b/src/stack.c
@@ -6,6 +6,13 @@
 
 #include "config.h"
 
+#if defined __powerpc__
+/* check the current stack pointer and check its boundaries */
+int lt_stack_framesize(struct lt_config_audit *cfg, La_regs *regs)
+{
+       return lt_sh(cfg, framesize);
+}
+#else
 static __thread void *stack_start = NULL;
 static __thread void *stack_end   = NULL;
 
@@ -124,3 +131,4 @@ int lt_stack_framesize(struct lt_config_audit *cfg, La_regs 
*regs)
 
        return framesize;
 }
+#endif

Reply via email to