Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libxmlb for openSUSE:Factory checked 
in at 2022-10-12 18:23:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libxmlb (Old)
 and      /work/SRC/openSUSE:Factory/.libxmlb.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libxmlb"

Wed Oct 12 18:23:24 2022 rev:9 rq:1009287 version:0.3.10

Changes:
--------
--- /work/SRC/openSUSE:Factory/libxmlb/libxmlb.changes  2022-07-26 
19:42:36.124700815 +0200
+++ /work/SRC/openSUSE:Factory/.libxmlb.new.2275/libxmlb.changes        
2022-10-12 18:24:17.425604350 +0200
@@ -1,0 +2,8 @@
+Sat Oct  1 11:12:48 UTC 2022 - Dirk M??ller <[email protected]>
+
+- update to 0.3.10:
+  * Fix dumping and exporting multiple files from the CLI (Richard Hughes)
+  * Watch files before loading them into the builder (Philip Withnall)
+  * Fix potential double free when filtering by language (Sergio Costas 
Rodriguez)
+
+-------------------------------------------------------------------

Old:
----
  libxmlb-0.3.9.tar.gz

New:
----
  libxmlb-0.3.10.tar.gz

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

Other differences:
------------------
++++++ libxmlb.spec ++++++
--- /var/tmp/diff_new_pack.Qeiobf/_old  2022-10-12 18:24:19.465609447 +0200
+++ /var/tmp/diff_new_pack.Qeiobf/_new  2022-10-12 18:24:19.473609467 +0200
@@ -19,7 +19,7 @@
 
 %define sover 2
 Name:           libxmlb
-Version:        0.3.9
+Version:        0.3.10
 Release:        0
 Summary:        Library for querying compressed XML metadata
 License:        LGPL-2.1-or-later

++++++ libxmlb-0.3.9.tar.gz -> libxmlb-0.3.10.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libxmlb-0.3.9/NEWS new/libxmlb-0.3.10/NEWS
--- old/libxmlb-0.3.9/NEWS      2022-05-24 12:05:36.000000000 +0200
+++ new/libxmlb-0.3.10/NEWS     2022-09-11 12:09:18.000000000 +0200
@@ -1,3 +1,12 @@
+Version 0.3.10
+~~~~~~~~~~~~~~
+Released: 2022-09-11
+
+Bugfixes:
+ - Fix dumping and exporting multiple files from the CLI (Richard Hughes)
+ - Watch files before loading them into the builder (Philip Withnall)
+ - Fix potential double free when filtering by language (Sergio Costas 
Rodriguez)
+
 Version 0.3.9
 ~~~~~~~~~~~~~
 Released: 2022-05-24
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libxmlb-0.3.9/RELEASE new/libxmlb-0.3.10/RELEASE
--- old/libxmlb-0.3.9/RELEASE   2022-05-24 12:05:36.000000000 +0200
+++ new/libxmlb-0.3.10/RELEASE  2022-09-11 12:09:18.000000000 +0200
@@ -2,10 +2,10 @@
 
 1. Write NEWS entries for libxmlb in the same format as usual.
 
-git shortlog 0.3.8.. | grep -i -v trivial | grep -v Merge > NEWS.new
+git shortlog 0.3.9.. | grep -i -v trivial | grep -v Merge > NEWS.new
 
-Version 0.3.9
-~~~~~~~~~~~~~
+Version 0.3.10
+~~~~~~~~~~~~~~
 Released: 2022-xx-xx
 
 New Features:
@@ -15,7 +15,7 @@
 Commit changes to git:
 
 # MAKE SURE THESE ARE CORRECT
-export release_ver="0.3.9"
+export release_ver="0.3.10"
 
 git commit -a -m "Release libxmlb ${release_ver}" --no-verify
 git tag -s -f -m "Release libxmlb ${release_ver}" "${release_ver}"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libxmlb-0.3.9/meson.build 
new/libxmlb-0.3.10/meson.build
--- old/libxmlb-0.3.9/meson.build       2022-05-24 12:05:36.000000000 +0200
+++ new/libxmlb-0.3.10/meson.build      2022-09-11 12:09:18.000000000 +0200
@@ -1,5 +1,5 @@
 project('libxmlb', 'c',
-  version : '0.3.9',
+  version : '0.3.10',
   license : 'LGPL-2.1+',
   meson_version : '>=0.47.0',
   default_options : ['warning_level=2', 'c_std=c99'],
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libxmlb-0.3.9/src/xb-builder-node.h 
new/libxmlb-0.3.10/src/xb-builder-node.h
--- old/libxmlb-0.3.9/src/xb-builder-node.h     2022-05-24 12:05:36.000000000 
+0200
+++ new/libxmlb-0.3.10/src/xb-builder-node.h    2022-09-11 12:09:18.000000000 
+0200
@@ -58,7 +58,9 @@
 XbBuilderNode *
 xb_builder_node_new(const gchar *element);
 XbBuilderNode *
-xb_builder_node_insert(XbBuilderNode *parent, const gchar *element, ...) 
G_GNUC_NULL_TERMINATED;
+xb_builder_node_insert(XbBuilderNode *parent,
+                      const gchar *element,
+                      ...) G_GNUC_NULL_TERMINATED G_GNUC_WARN_UNUSED_RESULT;
 void
 xb_builder_node_insert_text(XbBuilderNode *parent, const gchar *element, const 
gchar *text, ...)
     G_GNUC_NULL_TERMINATED;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libxmlb-0.3.9/src/xb-builder.c 
new/libxmlb-0.3.10/src/xb-builder.c
--- old/libxmlb-0.3.9/src/xb-builder.c  2022-05-24 12:05:36.000000000 +0200
+++ new/libxmlb-0.3.10/src/xb-builder.c 2022-09-11 12:09:18.000000000 +0200
@@ -442,7 +442,7 @@
        for (guint i = 0; i < nodes->len; i++) {
                XbBuilderNode *bn2 = g_ptr_array_index(nodes, i);
                if (xb_builder_node_get_priority(bn2) < prio_best)
-                       g_ptr_array_add(nodes_to_destroy, bn2);
+                       g_ptr_array_add(nodes_to_destroy, g_object_ref(bn2));
 
                /* never visit this node again */
                xb_builder_node_set_priority(bn2, -2);
@@ -765,7 +765,7 @@
        XbBuilderNodetabHelper nodetab_helper = {
            .buf = NULL,
        };
-       g_autoptr(GPtrArray) nodes_to_destroy = g_ptr_array_new();
+       g_autoptr(GPtrArray) nodes_to_destroy = 
g_ptr_array_new_with_free_func((GDestroyNotify)g_object_unref);
        g_autoptr(GTimer) timer = xb_silo_start_profile(priv->silo);
        g_autoptr(XbBuilderCompileHelper) helper = NULL;
 
@@ -813,6 +813,10 @@
                        root = g_object_ref(helper->root);
                }
 
+               /* watch the source */
+               if (!xb_builder_watch_source(self, source, cancellable, error))
+                       return NULL;
+
                if (priv->profile_flags & XB_SILO_PROFILE_FLAG_DEBUG)
                        g_debug("compiling %s???", source_guid);
                if (!xb_builder_compile_source(helper, source, root, 
cancellable, &error_local)) {
@@ -828,10 +832,6 @@
                                                   source_guid);
                        return NULL;
                }
-
-               /* watch the source */
-               if (!xb_builder_watch_source(self, source, cancellable, error))
-                       return NULL;
        }
 
        /* run any node functions */
@@ -991,6 +991,10 @@
        if (flags & XB_BUILDER_COMPILE_FLAG_WATCH_BLOB)
                load_flags |= XB_SILO_LOAD_FLAG_WATCH_BLOB;
 
+       /* ensure all the sources are watched */
+       if (!xb_builder_watch_sources(self, cancellable, error))
+               return NULL;
+
        /* profile new silo if needed */
        xb_silo_set_profile_flags(silo_tmp, priv->profile_flags);
 
@@ -1024,19 +1028,16 @@
                    (flags & XB_BUILDER_COMPILE_FLAG_IGNORE_GUID) > 0) {
                        g_autoptr(GBytes) blob = xb_silo_get_bytes(silo_tmp);
 
-                       g_debug("loading silo with file contents");
-                       if (!xb_silo_load_from_bytes(priv->silo, blob, 
load_flags, error))
-                               return NULL;
-
-                       /* ensure all the sources are watched */
-                       if (!xb_builder_watch_sources(self, cancellable, error))
-                               return NULL;
-
                        /* ensure backing file is watched for changes */
                        if (flags & XB_BUILDER_COMPILE_FLAG_WATCH_BLOB) {
                                if (!xb_silo_watch_file(priv->silo, file, 
cancellable, error))
                                        return NULL;
                        }
+
+                       g_debug("loading silo with file contents");
+                       if (!xb_silo_load_from_bytes(priv->silo, blob, 
load_flags, error))
+                               return NULL;
+
                        return g_object_ref(priv->silo);
                }
        }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libxmlb-0.3.9/src/xb-machine.c 
new/libxmlb-0.3.10/src/xb-machine.c
--- old/libxmlb-0.3.9/src/xb-machine.c  2022-05-24 12:05:36.000000000 +0200
+++ new/libxmlb-0.3.10/src/xb-machine.c 2022-09-11 12:09:18.000000000 +0200
@@ -1061,8 +1061,7 @@
                            tmp);
                return FALSE;
        }
-       if (result != NULL)
-               *result = xb_opcode_get_val(&opcode_success);
+       *result = xb_opcode_get_val(&opcode_success);
 
        /* success */
        return TRUE;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libxmlb-0.3.9/src/xb-self-test.c 
new/libxmlb-0.3.10/src/xb-self-test.c
--- old/libxmlb-0.3.9/src/xb-self-test.c        2022-05-24 12:05:36.000000000 
+0200
+++ new/libxmlb-0.3.10/src/xb-self-test.c       2022-09-11 12:09:18.000000000 
+0200
@@ -2764,9 +2764,9 @@
        g_test_add_func("/libxmlb/xpath-parent-subnode", 
xb_xpath_parent_subnode_func);
        g_test_add_func("/libxmlb/multiple-roots", 
xb_builder_multiple_roots_func);
        g_test_add_func("/libxmlb/single-root", xb_builder_single_root_func);
-       if (g_test_perf())
+       if (g_test_perf()) {
                g_test_add_func("/libxmlb/threading", xb_threading_func);
-       if (g_test_perf())
                g_test_add_func("/libxmlb/speed", xb_speed_func);
+       }
        return g_test_run();
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libxmlb-0.3.9/src/xb-tool.c 
new/libxmlb-0.3.10/src/xb-tool.c
--- old/libxmlb-0.3.9/src/xb-tool.c     2022-05-24 12:05:36.000000000 +0200
+++ new/libxmlb-0.3.10/src/xb-tool.c    2022-09-11 12:09:18.000000000 +0200
@@ -188,7 +188,7 @@
        /* load blobs */
        for (guint i = 0; values[i] != NULL; i++) {
                g_autofree gchar *str = NULL;
-               g_autoptr(GFile) file = g_file_new_for_path(values[0]);
+               g_autoptr(GFile) file = g_file_new_for_path(values[i]);
                g_autoptr(XbSilo) silo = xb_silo_new();
                if (!xb_silo_load_from_file(silo, file, flags, NULL, error))
                        return FALSE;
@@ -223,7 +223,7 @@
        /* load blobs */
        for (guint i = 0; values[i] != NULL; i++) {
                g_autofree gchar *str = NULL;
-               g_autoptr(GFile) file = g_file_new_for_path(values[0]);
+               g_autoptr(GFile) file = g_file_new_for_path(values[i]);
                g_autoptr(XbSilo) silo = xb_silo_new();
                if (!xb_silo_load_from_file(silo, file, flags, NULL, error))
                        return FALSE;

Reply via email to