Hello community,

here is the log from the commit of package ltrace for openSUSE:Factory checked 
in at 2020-12-18 19:56:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ltrace (Old)
 and      /work/SRC/openSUSE:Factory/.ltrace.new.5145 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ltrace"

Fri Dec 18 19:56:43 2020 rev:45 rq:855835 version:0.7.91

Changes:
--------
--- /work/SRC/openSUSE:Factory/ltrace/ltrace.changes    2020-11-12 
22:34:31.041855413 +0100
+++ /work/SRC/openSUSE:Factory/.ltrace.new.5145/ltrace.changes  2020-12-18 
19:56:45.417893733 +0100
@@ -1,0 +2,6 @@
+Mon Dec 14 17:01:27 UTC 2020 - Sarah Julia Kriesch <[email protected]>
+
+- Added s390x-ptrace.patch and remove 2 unused functions to fix 'expr_clone' 
error from latest release
+
+
+-------------------------------------------------------------------

New:
----
  s390x-ptrace.patch

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

Other differences:
------------------
++++++ ltrace.spec ++++++
--- /var/tmp/diff_new_pack.NOmRJt/_old  2020-12-18 19:56:46.177894546 +0100
+++ /var/tmp/diff_new_pack.NOmRJt/_new  2020-12-18 19:56:46.177894546 +0100
@@ -32,6 +32,7 @@
 Patch5:         gcc9-printf-s-null-argument.patch
 Patch6:         lens-double-free.patch
 Patch7:         gcc9-Wlto-type-mismatch.patch
+Patch8:         s390x-ptrace.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  binutils-devel
@@ -41,7 +42,7 @@
 BuildRequires:  libelf-devel
 BuildRequires:  libtool
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-ExclusiveArch:  %ix86 s390 s390x ppc ppc64 ppc64le %arm x86_64 alpha ia64 m68k 
aarch64
+ExclusiveArch:  %ix86 s390x ppc ppc64 ppc64le %arm x86_64 alpha ia64 m68k 
aarch64
 # bug437293
 %ifarch ppc64
 Obsoletes:      ltrace-64bit
@@ -67,6 +68,7 @@
 %patch5
 %patch6 -p1
 %patch7 -p1
+%patch8 -p1
 
 %build
 ./autogen.sh

++++++ s390x-ptrace.patch ++++++
Index: ltrace-0.7.91/expr.c
===================================================================
--- ltrace-0.7.91.orig/expr.c
+++ ltrace-0.7.91/expr.c
@@ -171,85 +171,6 @@ expr_destroy(struct expr_node *node)
        abort();
 }
 
-static int
-expr_alloc_and_clone(struct expr_node **retpp, struct expr_node *node, int own)
-{
-       *retpp = node;
-       if (own) {
-               *retpp = malloc(sizeof **retpp);
-               if (*retpp == NULL || expr_clone(*retpp, node) < 0) {
-                       free(*retpp);
-                       return -1;
-               }
-       }
-       return 0;
-}
-
-int
-expr_clone(struct expr_node *retp, const struct expr_node *node)
-{
-       *retp = *node;
-
-       switch (node->kind) {
-               struct expr_node *nlhs;
-               struct expr_node *nrhs;
-
-       case EXPR_OP_ARGNO:
-       case EXPR_OP_SELF:
-               return 0;
-
-       case EXPR_OP_CONST:
-               return value_clone(&retp->u.value, &node->u.value);
-
-       case EXPR_OP_NAMED:
-               if (node->u.name.own
-                   && (retp->u.name.s = strdup(node->u.name.s)) == NULL)
-                       return -1;
-               return 0;
-
-       case EXPR_OP_INDEX:
-               if (expr_alloc_and_clone(&nlhs, node->lhs, node->own_lhs) < 0)
-                       return -1;
-
-               if (expr_alloc_and_clone(&nrhs, node->u.node.n,
-                                        node->u.node.own) < 0) {
-                       if (nlhs != node->lhs) {
-                               expr_destroy(nlhs);
-                               free(nlhs);
-                       }
-                       return -1;
-               }
-
-               retp->lhs = nlhs;
-               retp->u.node.n = nrhs;
-               return 0;
-
-       case EXPR_OP_CALL2:
-               if (expr_alloc_and_clone(&nrhs, node->u.call.rhs,
-                                        node->u.call.own_rhs) < 0)
-                       return -1;
-               retp->u.call.rhs = nrhs;
-               /* Fall through.  */
-
-       case EXPR_OP_UP:
-       case EXPR_OP_CALL1:
-               if (expr_alloc_and_clone(&nlhs, node->lhs, node->own_lhs) < 0) {
-                       if (node->kind == EXPR_OP_CALL2
-                           && node->u.call.own_rhs) {
-                               expr_destroy(nrhs);
-                               free(nrhs);
-                               return -1;
-                       }
-               }
-
-               retp->lhs = nlhs;
-               return 0;
-       }
-
-       assert(!"Invalid value of node kind");
-       abort();
-}
-
 int
 expr_is_compile_constant(struct expr_node *node)
 {
Index: ltrace-0.7.91/expr.h
===================================================================
--- ltrace-0.7.91.orig/expr.h
+++ ltrace-0.7.91/expr.h
@@ -125,9 +125,6 @@ void expr_init_cb2(struct expr_node *nod
 /* Release the data inside NODE.  Doesn't free NODE itself.  */
 void expr_destroy(struct expr_node *node);
 
-/* Copy expression NODE into the area pointed to by RETP.  Return 0 on
- * success or a negative value on failure.  */
-int expr_clone(struct expr_node *retp, const struct expr_node *node);
 
 /* Evaluate the expression NODE in context of VALUE.  ARGUMENTS is a
  * dictionary of named and numbered values that NODE may use.  Returns
_______________________________________________
openSUSE Commits mailing list -- [email protected]
To unsubscribe, email [email protected]
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives: 
https://lists.opensuse.org/archives/list/[email protected]

Reply via email to