Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libtracefs for openSUSE:Factory checked in at 2026-06-30 15:11:01 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libtracefs (Old) and /work/SRC/openSUSE:Factory/.libtracefs.new.11887 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libtracefs" Tue Jun 30 15:11:01 2026 rev:18 rq:1362316 version:1.8.3 Changes: -------- --- /work/SRC/openSUSE:Factory/libtracefs/libtracefs.changes 2025-04-20 20:02:08.518359900 +0200 +++ /work/SRC/openSUSE:Factory/.libtracefs.new.11887/libtracefs.changes 2026-06-30 15:11:04.391245541 +0200 @@ -1,0 +2,7 @@ +Thu Feb 5 13:39:30 UTC 2026 - Jan Engelhardt <[email protected]> + +- Update to release 1.8.3 + * libtracefs: Fix enum type in read_event_state + * libtracefs: Fix tracefs_event_is_enabled() for all events + +------------------------------------------------------------------- Old: ---- libtracefs-1.8.2.tar.gz New: ---- libtracefs-1.8.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libtracefs.spec ++++++ --- /var/tmp/diff_new_pack.njm2vA/_old 2026-06-30 15:11:05.215273541 +0200 +++ /var/tmp/diff_new_pack.njm2vA/_new 2026-06-30 15:11:05.215273541 +0200 @@ -1,7 +1,7 @@ # # spec file for package libtracefs # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2026 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ Name: libtracefs %define lname libtracefs1 -Version: 1.8.2 +Version: 1.8.3 Release: 0 Summary: Linux kernel trace file system library License: LGPL-2.1-only ++++++ _scmsync.obsinfo ++++++ --- /var/tmp/diff_new_pack.njm2vA/_old 2026-06-30 15:11:05.251274764 +0200 +++ /var/tmp/diff_new_pack.njm2vA/_new 2026-06-30 15:11:05.255274900 +0200 @@ -1,5 +1,5 @@ -mtime: 1744884901 -commit: dd2bf938048c152655e0494e4f6ea0783e260135052764763929df80cac145f7 +mtime: 1770298872 +commit: b5aa34332587527685db21780b6625743bdd0bc51bb03afc9e042c9919a6ba3a url: https://src.opensuse.org/jengelh/libtracefs revision: master ++++++ build.specials.obscpio ++++++ ++++++ build.specials.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.gitignore new/.gitignore --- old/.gitignore 1970-01-01 01:00:00.000000000 +0100 +++ new/.gitignore 2026-02-05 14:41:23.000000000 +0100 @@ -0,0 +1 @@ +.osc ++++++ libtracefs-1.8.2.tar.gz -> libtracefs-1.8.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libtracefs-1.8.2/Documentation/libtracefs-instances-manage.txt new/libtracefs-1.8.3/Documentation/libtracefs-instances-manage.txt --- old/libtracefs-1.8.2/Documentation/libtracefs-instances-manage.txt 2025-04-14 22:34:36.000000000 +0200 +++ new/libtracefs-1.8.3/Documentation/libtracefs-instances-manage.txt 2026-01-02 18:47:53.000000000 +0100 @@ -42,7 +42,7 @@ does not free the structure. *tracefs_instance_free()* must still be called on _instance_. -The tracefs_instance_alloc()* function allocates a new tracefs_instance structure +The *tracefs_instance_alloc()* function allocates a new tracefs_instance structure for existing trace instance. If the instance does not exist in the system, the function fails. The _tracing_dir_ parameter points to the system trace directory. It can be NULL, then default system trace directory is used. This parameter is useful to allocate diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libtracefs-1.8.2/Makefile new/libtracefs-1.8.3/Makefile --- old/libtracefs-1.8.2/Makefile 2025-04-14 22:34:36.000000000 +0200 +++ new/libtracefs-1.8.3/Makefile 2026-01-02 18:47:53.000000000 +0100 @@ -2,7 +2,7 @@ # libtracefs version TFS_VERSION = 1 TFS_PATCHLEVEL = 8 -TFS_EXTRAVERSION = 2 +TFS_EXTRAVERSION = 3 TRACEFS_VERSION = $(TFS_VERSION).$(TFS_PATCHLEVEL).$(TFS_EXTRAVERSION) export TFS_VERSION @@ -274,8 +274,8 @@ if $(LDCONFIG); then \ if ! grep -q "^$(libdir)$$" $(LD_SO_CONF_PATH)/* ; then \ $(CC) -o $(objtree)/test $(srctree)/test.c -I $(includedir_SQ) \ - -L $(libdir_SQ) -ltracefs &> /dev/null; \ - if ! $(objtree)/test &> /dev/null; then \ + -L $(libdir_SQ) -ltracefs > /dev/null 2>&1; \ + if ! $(objtree)/test > /dev/null 2>&1; then \ $(call print_install, trace.conf, $(LD_SO_CONF_PATH)) \ echo $(libdir_SQ) >> $(LD_SO_CONF_PATH)/trace.conf; \ $(LDCONFIG); \ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libtracefs-1.8.2/meson.build new/libtracefs-1.8.3/meson.build --- old/libtracefs-1.8.2/meson.build 2025-04-14 22:34:36.000000000 +0200 +++ new/libtracefs-1.8.3/meson.build 2026-01-02 18:47:53.000000000 +0100 @@ -6,7 +6,7 @@ 'libtracefs', ['c'], meson_version: '>= 0.50.0', license: 'LGPL-2.1', - version: '1.8.2', + version: '1.8.3', default_options: [ 'c_std=gnu99', 'buildtype=debug', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libtracefs-1.8.2/src/tracefs-events.c new/libtracefs-1.8.3/src/tracefs-events.c --- old/libtracefs-1.8.2/src/tracefs-events.c 2025-04-14 22:34:36.000000000 +0200 +++ new/libtracefs-1.8.3/src/tracefs-events.c 2026-01-02 18:47:53.000000000 +0100 @@ -1459,7 +1459,7 @@ *state = STATE_MIXED; break; default: - *state = TRACEFS_ERROR; + *state = STATE_ERROR; ret = -1; break; } @@ -1511,12 +1511,23 @@ } static int enable_disable_all(struct tracefs_instance *instance, - bool enable) + bool enable, enum event_state *state) { const char *str = enable ? "1" : "0"; + char *event_file; int ret; - ret = tracefs_instance_file_write(instance, "events/enable", str); + ret = asprintf(&event_file, "events/enable"); + if (ret < 0) + return ret; + + if (state) + ret = read_event_state(instance, event_file, state); + else + ret = tracefs_instance_file_write(instance, event_file, str); + + free(event_file); + return ret < 0 ? ret : 0; } @@ -1552,7 +1563,7 @@ /* Handle all events first */ if (!system && !event) - return enable_disable_all(instance, enable); + return enable_disable_all(instance, enable, state); systems = tracefs_event_systems(NULL); if (!systems) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libtracefs-1.8.2/src/tracefs-filter.c new/libtracefs-1.8.3/src/tracefs-filter.c --- old/libtracefs-1.8.2/src/tracefs-filter.c 2025-04-14 22:34:36.000000000 +0200 +++ new/libtracefs-1.8.3/src/tracefs-filter.c 2026-01-02 18:47:53.000000000 +0100 @@ -39,7 +39,7 @@ .type = "char", .name = "common_comm", .size = 4, - .flags = TEP_FIELD_IS_ARRAY | TEP_FIELD_IS_DYNAMIC, + .flags = TEP_FIELD_IS_ARRAY | TEP_FIELD_IS_DYNAMIC | TEP_FIELD_IS_STRING, }; const struct tep_format_field tfs_common_stacktrace __hidden = { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libtracefs-1.8.2/utest/trace-utest.c new/libtracefs-1.8.3/utest/trace-utest.c --- old/libtracefs-1.8.2/utest/trace-utest.c 2025-04-14 22:34:36.000000000 +0200 +++ new/libtracefs-1.8.3/utest/trace-utest.c 2026-01-02 18:47:53.000000000 +0100 @@ -79,6 +79,12 @@ CU_basic_set_mode(verbose); CU_basic_run_tests(); + + int err = CU_get_error() != CUE_SUCCESS || + CU_get_number_of_suites_failed() > 0 || + CU_get_number_of_failures() > 0; + CU_cleanup_registry(); - return 0; + + return err ? 1 : 0; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libtracefs-1.8.2/utest/tracefs-utest.c new/libtracefs-1.8.3/utest/tracefs-utest.c --- old/libtracefs-1.8.2/utest/tracefs-utest.c 2025-04-14 22:34:36.000000000 +0200 +++ new/libtracefs-1.8.3/utest/tracefs-utest.c 2026-01-02 18:47:53.000000000 +0100 @@ -1860,10 +1860,7 @@ printf("debug directory mounted at '%s'\n", debug_dir); - /* Make sure the directory has content.*/ - asprintf(&path, "%s/tracing", debug_dir); - CU_TEST(stat(path, &st) == 0); - free(path); + CU_TEST(stat(debug_dir, &st) == 0); } if (save_debug) @@ -3849,11 +3846,15 @@ static int test_suite_init(void) { test_tep = tracefs_local_events(NULL); - if (test_tep == NULL) + if (test_tep == NULL) { + perror("tracefs_local_events"); return 1; + } test_instance = tracefs_instance_create(TEST_INSTANCE_NAME); - if (!test_instance) + if (!test_instance) { + perror("tracefs_instance_create"); return 1; + } mapping_is_supported = tracefs_mapped_is_supported(); if (mapping_is_supported)
