Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package pulseaudio for openSUSE:Factory 
checked in at 2026-12-03 13:55:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/pulseaudio (Old)
 and      /work/SRC/openSUSE:Factory/.pulseaudio.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "pulseaudio"

Thu Dec  3 13:55:57 2026 rev:208 rq:1402344 version:17.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/pulseaudio/pulseaudio.changes    2026-04-29 
19:18:29.214661915 +0200
+++ /work/SRC/openSUSE:Factory/.pulseaudio.new.1340718/pulseaudio.changes       
2026-12-03 13:56:25.307945036 +0100
@@ -1,0 +2,11 @@
+Tue Dec  1 09:43:42 UTC 2026 - Zoltan Balogh <[email protected]>
+
+- Enable the upstream unit tests: build with -Dtests=true and run
+  them with %meson_test.
+- Backport the upstream cpu-volume-test fix for invalid sample
+  alignments (issue 3803), which otherwise crashes the ORC test:
+  pulseaudio-cpu-volume-test-align.patch
+- The flist-test disabled in 2007 for ppc (libatomic-ops) is still
+  built but not run by the meson test suite.
+
+-------------------------------------------------------------------

New:
----
  pulseaudio-cpu-volume-test-align.patch

----------(New B)----------
  New:  alignments (issue 3803), which otherwise crashes the ORC test:
  pulseaudio-cpu-volume-test-align.patch
- The flist-test disabled in 2007 for ppc (libatomic-ops) is still
----------(New E)----------

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

Other differences:
------------------
++++++ pulseaudio.spec ++++++
--- /var/tmp/diff_new_pack.3quFMi/_old  2026-12-03 13:56:26.582998755 +0100
+++ /var/tmp/diff_new_pack.3quFMi/_new  2026-12-03 13:56:26.584998839 +0100
@@ -63,6 +63,8 @@
 Patch7:         pulseaudio-dump-module-Ignore-invalid-module-init-tools.patch
 Patch8:         
pulseaudio-replace-port-device-UCM-context-assertion-with-an-error.patch
 Patch9:         
pulseaudio-check-UCM-verb-before-working-with-device-status.patch
+# PATCH-FIX-UPSTREAM fix impossible alignments in cpu-volume-test (issue 3803)
+Patch10:        pulseaudio-cpu-volume-test-align.patch
 BuildRequires:  alsa-devel >= 1.0.19
 BuildRequires:  bluez-devel >= 5
 BuildRequires:  fdupes
@@ -342,6 +344,7 @@
 %patch -P7 -p1
 %patch -P8 -p1
 %patch -P9 -p1
+%patch -P10 -p1
 
 %build
 %meson \
@@ -349,6 +352,7 @@
       -Dhal-compat=false   \
       -Dgsettings=enabled  \
       -Dgstreamer=enabled  \
+      -Dtests=true         \
       -Ddoxygen=false      \
       -Dsystem_user=pulse  \
       -Dsystem_group=pulse \
@@ -409,6 +413,9 @@
 %find_lang %{name}
 %python3_fix_shebang
 
+%check
+%meson_test
+
 %pre -n system-user-pulse -f pulseaudio.pre
 
 %post

++++++ pulseaudio-cpu-volume-test-align.patch ++++++
>From 84f5b742e39ba3e375bac9144e0243b7331f4019 Mon Sep 17 00:00:00 2001
From: Arun Raghavan <[email protected]>
Date: Fri, 22 Mar 2024 09:31:48 -0400
Subject: [PATCH] tests: Don't run volume tests with impossible alignments

This worked so far somehow, but we were sending in some samples at
unrealistic alignments (given that pa_memblockq will be frame-aligned,
and we expect all operations to occur per-frame as well).

Fixes: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/3803
Part-of: 
<https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/812>
---
 src/tests/cpu-volume-test.c | 33 ++++++++++++++++-----------------
 1 file changed, 16 insertions(+), 17 deletions(-)

diff --git a/src/tests/cpu-volume-test.c b/src/tests/cpu-volume-test.c
index c7d73be0..24811ead 100644
--- a/src/tests/cpu-volume-test.c
+++ b/src/tests/cpu-volume-test.c
@@ -43,6 +43,7 @@ static void run_volume_test(
         int channels,
         bool correct,
         bool perf) {
+    fail_unless(align % channels == 0);
 
     PA_DECLARE_ALIGNED(8, int16_t, s[SAMPLES]) = { 0 };
     PA_DECLARE_ALIGNED(8, int16_t, s_ref[SAMPLES]) = { 0 };
@@ -56,8 +57,6 @@ static void run_volume_test(
     samples_ref = s_ref + (8 - align);
     samples_orig = s_orig + (8 - align);
     nsamples = SAMPLES - (8 - align);
-    if (nsamples % channels)
-        nsamples -= nsamples % channels;
     size = nsamples * sizeof(int16_t);
 
     pa_random(samples, size);
@@ -119,12 +118,12 @@ START_TEST (svolume_mmx_test) {
 
     pa_log_debug("Checking MMX svolume");
     for (i = 1; i <= 3; i++) {
-        for (j = 0; j < 7; j++)
-            run_volume_test(mmx_func, orig_func, j, i, true, false);
+        for (j = 0; j <= 7; j += i)
+            run_volume_test(mmx_func, orig_func, j, i, true, j == 0);
     }
     run_volume_test(mmx_func, orig_func, 7, 1, true, true);
-    run_volume_test(mmx_func, orig_func, 7, 2, true, true);
-    run_volume_test(mmx_func, orig_func, 7, 3, true, true);
+    run_volume_test(mmx_func, orig_func, 6, 2, true, true);
+    run_volume_test(mmx_func, orig_func, 6, 3, true, true);
 }
 END_TEST
 
@@ -146,12 +145,12 @@ START_TEST (svolume_sse_test) {
 
     pa_log_debug("Checking SSE2 svolume");
     for (i = 1; i <= 3; i++) {
-        for (j = 0; j < 7; j++)
-            run_volume_test(sse_func, orig_func, j, i, true, false);
+        for (j = 0; j < 7; j += i)
+            run_volume_test(sse_func, orig_func, j, i, true, j == 0);
     }
     run_volume_test(sse_func, orig_func, 7, 1, true, true);
-    run_volume_test(sse_func, orig_func, 7, 2, true, true);
-    run_volume_test(sse_func, orig_func, 7, 3, true, true);
+    run_volume_test(sse_func, orig_func, 6, 2, true, true);
+    run_volume_test(sse_func, orig_func, 6, 3, true, true);
 }
 END_TEST
 #endif /* defined (__i386__) || defined (__amd64__) */
@@ -175,12 +174,12 @@ START_TEST (svolume_arm_test) {
 
     pa_log_debug("Checking ARM svolume");
     for (i = 1; i <= 3; i++) {
-        for (j = 0; j < 7; j++)
-            run_volume_test(arm_func, orig_func, j, i, true, false);
+        for (j = 0; j < 7; j += i)
+            run_volume_test(arm_func, orig_func, j, i, true, j == 0);
     }
     run_volume_test(arm_func, orig_func, 7, 1, true, true);
-    run_volume_test(arm_func, orig_func, 7, 2, true, true);
-    run_volume_test(arm_func, orig_func, 7, 3, true, true);
+    run_volume_test(arm_func, orig_func, 6, 2, true, true);
+    run_volume_test(arm_func, orig_func, 6, 3, true, true);
 }
 END_TEST
 #endif /* defined (__arm__) && defined (__linux__) */
@@ -207,11 +206,11 @@ START_TEST (svolume_orc_test) {
 
     pa_log_debug("Checking Orc svolume");
     for (i = 1; i <= 2; i++) {
-        for (j = 0; j < 7; j++)
-            run_volume_test(orc_func, orig_func, j, i, true, false);
+        for (j = 0; j < 7; j += i)
+            run_volume_test(orc_func, orig_func, j, i, true, j == 0);
     }
     run_volume_test(orc_func, orig_func, 7, 1, true, true);
-    run_volume_test(orc_func, orig_func, 7, 2, true, true);
+    run_volume_test(orc_func, orig_func, 6, 2, true, true);
 }
 END_TEST
 
-- 
2.56.1

Reply via email to