- enable %%check

- fix bz#1345826, only start threads on activ CPUs
This commit is contained in:
Than Ngo 2016-06-22 17:23:56 +02:00
parent e51117c7cb
commit 38cd780fbd
2 changed files with 22 additions and 2 deletions

View File

@ -0,0 +1,12 @@
diff -up pulseaudio-8.99.2/src/tests/once-test.c.than pulseaudio-8.99.2/src/tests/once-test.c
--- pulseaudio-8.99.2/src/tests/once-test.c.than 2016-06-22 10:20:57.127583628 -0400
+++ pulseaudio-8.99.2/src/tests/once-test.c 2016-06-22 10:59:38.905573634 -0400
@@ -70,7 +70,7 @@ static void thread_func(void *data) {
#endif
CPU_ZERO(&mask);
- CPU_SET((size_t) (pa_atomic_inc(&i_cpu) % n_cpu), &mask);
+ CPU_SET(pthread_getaffinity_np(pthread_self(), sizeof(mask), &mask), &mask);
fail_unless(pthread_setaffinity_np(pthread_self(), sizeof(mask), &mask) == 0);
#endif

View File

@ -25,7 +25,7 @@
Name: pulseaudio
Summary: Improved Linux Sound Server
Version: %{pa_major}%{?pa_minor:.%{pa_minor}}
Release: 2%{?snap:.%{snap}git%{shortcommit}}%{?dist}
Release: 3%{?snap:.%{snap}git%{shortcommit}}%{?dist}
License: LGPLv2+
URL: http://www.freedesktop.org/wiki/Software/PulseAudio
%if 0%{?gitrel}
@ -49,6 +49,9 @@ Patch1: pulseaudio-autostart.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=1265267
Patch2: pulseaudio-9.0-disable_flat_volumes.patch
# bz#1067470, only start threads on activ CPUs
Patch3: pulseaudio-8.99.2-getaffinity.patch
## upstream patches
## upstreamable patches
@ -241,6 +244,7 @@ This package contains GDM integration hooks for the PulseAudio sound server.
%if 0%{?fedora} > 23
%patch2 -p1 -b .disable_flat_volumes
%endif
%patch3 -p1 -b .affinity
sed -i.no_consolekit -e \
's/^load-module module-console-kit/#load-module module-console-kit/' \
@ -324,7 +328,7 @@ rm -fv $RPM_BUILD_ROOT%{_libdir}/pulse-%{pa_major}/modules/module-detect.so
%check
%if 0%{?tests}
make check || cat src/test-suite.log ||:
make check
%endif
@ -581,6 +585,10 @@ exit 0
%changelog
* Wed Jun 22 2016 Than Ngo <than@redhat.com> - 8.99.2-3
- enable %%check
- fix bz#1345826, only start threads on activ CPUs
* Mon Jun 13 2016 Rex Dieter <rdieter@fedoraproject.org> - 8.99.2-2
- %%check: make non-fatal, echo test-suite.log on failure (#1345826)