Add esound compatibility packet and backported fix for unopenable user
configs.
This commit is contained in:
parent
9b65ece59c
commit
6ac803bd39
30
pulseaudio-0.9.5-userconf.patch
Normal file
30
pulseaudio-0.9.5-userconf.patch
Normal file
@ -0,0 +1,30 @@
|
||||
Index: /trunk/src/pulsecore/core-util.c
|
||||
===================================================================
|
||||
--- /trunk/src/pulsecore/core-util.c (revision 1418)
|
||||
+++ /trunk/src/pulsecore/core-util.c (revision 1423)
|
||||
@@ -185,5 +185,5 @@
|
||||
}
|
||||
#else
|
||||
- pa_log_warn("secure directory creation not supported on Win32.");
|
||||
+ pa_log_warn("secure directory creation not supported on Win32.");
|
||||
#endif
|
||||
|
||||
@@ -954,5 +954,6 @@
|
||||
#endif
|
||||
|
||||
- if ((f = fopen(fn, mode)) || errno != ENOENT) {
|
||||
+ f = fopen(fn, mode);
|
||||
+ if (f != NULL) {
|
||||
if (result)
|
||||
*result = pa_xstrdup(fn);
|
||||
@@ -961,4 +962,9 @@
|
||||
}
|
||||
|
||||
+ if (errno != ENOENT) {
|
||||
+ pa_log_warn("WARNING: failed to open configuration file '%s': %s",
|
||||
+ lfn, pa_cstrerror(errno));
|
||||
+ }
|
||||
+
|
||||
pa_xfree(lfn);
|
||||
}
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
Name: pulseaudio
|
||||
Summary: Improved Linux sound server
|
||||
Version: 0.9.5
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
License: GPL
|
||||
Group: System Environment/Daemons
|
||||
Source0: http://0pointer.de/lennart/projects/pulseaudio/pulseaudio-%{version}.tar.gz
|
||||
@ -24,12 +24,23 @@ BuildRequires: libXt-devel, xorg-x11-proto-devel
|
||||
#BuildRequires: xorg-x11-devel
|
||||
|
||||
Patch1: pulseaudio-0.9.2-nochown.patch
|
||||
Patch2: pulseaudio-0.9.5-userconf.patch
|
||||
|
||||
%description
|
||||
PulseAudio is a sound server for Linux and other Unix like operating
|
||||
systems. It is intended to be an improved drop-in replacement for the
|
||||
Enlightened Sound Daemon (ESOUND).
|
||||
|
||||
%package esound-compat
|
||||
Summary: PulseAudio EsounD daemon compatibility script
|
||||
Group: System Environment/Daemons
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Conflicts: esound
|
||||
|
||||
%description esound-compat
|
||||
A compatibility script that allows applications to call /usr/bin/esd
|
||||
and start PulseAudio with EsounD protocol modules.
|
||||
|
||||
%package module-lirc
|
||||
Summary: LIRC support for the PulseAudio sound server
|
||||
Group: System Environment/Daemons
|
||||
@ -132,6 +143,7 @@ This package contains command line utilities for the PulseAudio sound server.
|
||||
%prep
|
||||
%setup -q
|
||||
%patch1 -p1
|
||||
%patch2 -p2
|
||||
|
||||
%build
|
||||
%configure --disable-ltdl-install --disable-static --disable-rpath --with-system-user=pulse --with-system-group=pulse --with-realtime-group=pulse-rt --with-access-group=pulse-access
|
||||
@ -146,6 +158,8 @@ rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la $RPM_BUILD_ROOT%{_libdir}/pulse-%{drvver}/
|
||||
rm -rf $RPM_BUILD_ROOT%{_libdir}/*.a
|
||||
chmod 755 $RPM_BUILD_ROOT%{_bindir}/pulseaudio
|
||||
|
||||
ln -s esdcompat $RPM_BUILD_ROOT%{_bindir}/esd
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
@ -183,7 +197,6 @@ fi
|
||||
%config(noreplace) %{_sysconfdir}/pulse/daemon.conf
|
||||
%config(noreplace) %{_sysconfdir}/pulse/default.pa
|
||||
%attr(4755,root,root) %{_bindir}/pulseaudio
|
||||
%{_bindir}/esdcompat
|
||||
%{_libdir}/libpulsecore.so.*
|
||||
%dir %{_libdir}/pulse-%{drvver}/
|
||||
%dir %{_libdir}/pulse-%{drvver}/modules/
|
||||
@ -247,6 +260,11 @@ fi
|
||||
%{_libdir}/pulse-%{drvver}/modules/module-tunnel-source.so
|
||||
%{_libdir}/pulse-%{drvver}/modules/module-volume-restore.so
|
||||
|
||||
%files esound-compat
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/esdcompat
|
||||
%{_bindir}/esd
|
||||
|
||||
%files module-lirc
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/pulse-%{drvver}/modules/module-lirc.so
|
||||
@ -317,6 +335,12 @@ fi
|
||||
%{_libdir}/libpulsedsp.so
|
||||
|
||||
%changelog
|
||||
* Mon Feb 5 2007 Pierre Ossman <drzeus@drzeus.cx> 0.9.5-3
|
||||
- Add esound-compat subpackage that allows PulseAudio to be a drop-in
|
||||
replacement for esd (based on patch by Matthias Clasen).
|
||||
- Backport patch allows startup to continue even when the users'
|
||||
config cannot be read.
|
||||
|
||||
* Wed Oct 23 2006 Pierre Ossman <drzeus@drzeus.cx> 0.9.5-2
|
||||
- Create user and groups for daemon.
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user