Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package girara for openSUSE:Factory checked 
in at 2026-07-03 16:04:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/girara (Old)
 and      /work/SRC/openSUSE:Factory/.girara.new.1982 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "girara"

Fri Jul  3 16:04:30 2026 rev:21 rq:1363542 version:2026.02.04

Changes:
--------
--- /work/SRC/openSUSE:Factory/girara/girara.changes    2026-05-29 
18:12:25.283672703 +0200
+++ /work/SRC/openSUSE:Factory/.girara.new.1982/girara.changes  2026-07-03 
16:07:00.125608489 +0200
@@ -1,0 +2,11 @@
+Thu Jul  2 16:26:20 UTC 2026 - Martin Pluskal <[email protected]>
+
+- Add girara-tests-unset-xdg-vars.patch: run the utils-with-home
+  test with all XDG_* environment variables unset, so it no longer
+  fails in build environments that export XDG_CONFIG_HOME
+  (backport of upstream commit 0f653f2c4e3e)
+- Re-enable the utils-with-home test: drop the meson-version
+  dependent test-list skip hack from %check — with the patch
+  applied the test passes everywhere
+
+-------------------------------------------------------------------

New:
----
  girara-tests-unset-xdg-vars.patch

----------(New B)----------
  New:
- Add girara-tests-unset-xdg-vars.patch: run the utils-with-home
  test with all XDG_* environment variables unset, so it no longer
----------(New E)----------

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

Other differences:
------------------
++++++ girara.spec ++++++
--- /var/tmp/diff_new_pack.iW9baX/_old  2026-07-03 16:07:01.741664818 +0200
+++ /var/tmp/diff_new_pack.iW9baX/_new  2026-07-03 16:07:01.745664958 +0200
@@ -30,6 +30,8 @@
 Source0:        %{url}/download/girara-%{version}.tar.xz
 Source1:        %{url}/download/girara-%{version}.tar.xz.asc
 Source2:        girara.keyring
+# PATCH-FIX-UPSTREAM girara-tests-unset-xdg-vars.patch -- Unset XDG_* 
variables so tests work with custom HOME (upstream commit 0f653f2c4e3e)
+Patch0:         girara-tests-unset-xdg-vars.patch
 BuildRequires:  c_compiler
 BuildRequires:  meson >= 1.5
 BuildRequires:  pkgconfig
@@ -84,7 +86,7 @@
 Doxygen generated documentations for girara-devel.
 
 %prep
-%autosetup
+%autosetup -p1
 
 %build
 %{?with_gcc15:export CC=gcc-15}
@@ -98,10 +100,7 @@
 %fdupes -s %{buildroot}%{_docdir}/girara-devel-doxygen/
 
 %check
-test_list=$(meson test --list -C %{_vpath_builddir})
-%{?with_gcc15:test_list=${test_list//utils-with-home}}
-%{!?with_gcc15:test_list=${test_list//girara:utils-with-home}}
-%meson_test $test_list
+%meson_test
 
 %ldconfig_scriptlets -n %{libname}%{so_ver}
 


++++++ girara-tests-unset-xdg-vars.patch ++++++
From: Sebastian Ramacher <[email protected]>
Date: Thu, 5 Feb 2026 08:24:34 +0100
Subject: Unset XDG variables to fix tests with custom HOME

Backport of upstream commit 0f653f2c4e3e3d5944389f4f2a772e8f71582c9a,
rebased onto the 2026.02.04 release tarball (upstream applied it on top
of post-release refactoring of tests/meson.build).

The utils-with-home test runs with HOME=/home/test and expects the
XDG default paths to be derived from it. If the ambient build
environment exports XDG_CONFIG_HOME (as the SLE/Leap 16 buildroots do:
XDG_CONFIG_HOME=/home/abuild/.config), GLib prefers the non-empty
XDG_CONFIG_HOME over $HOME, so the test's expected value no longer
matches and the test aborts:
  ERROR:../tests/test_utils.c:104:xdg_path_impl: assertion failed
  (output == expected): ("/home/test/.config" == "/home/abuild/.config")
Run the test through env(1) with all XDG_* variables unset.
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -39,12 +39,21 @@
     ]
   )
 
+  envp = find_program('env', required: true)
   utils = executable('test_utils', files('test_utils.c'),
     dependencies: build_dependencies + test_dependencies,
     include_directories: include_directories,
     c_args: defines + flags
   )
-  test('utils-with-home', utils,
+  test('utils-with-home', envp,
+    args: [
+      '-uXDG_CONFIG_HOME',
+      '-uXDG_DATA_HOME',
+      '-uXDG_CONFIG_DIRS',
+      '-uXDG_DATA_DIRS',
+      '-uXDG_CACHE_HOME',
+      utils
+    ],
     timeout: 60*60,
     protocol: 'tap',
     env: [

Reply via email to