Hello all.

I'm running with enable-shm disabled in client.conf for a few weeks
without noticable problems. And this gets rid of .shm files in /tmp,
which are usually left when my browser that uses Pulse crashes.

This patch should touch only default configurations and leave
customized version unmodified - this is how it should be, IMHO.
What do you think? Okays for the change?

--
WBR,
  Vadim Zhukov


Index: Makefile
===================================================================
RCS file: /cvs/ports/audio/pulseaudio/Makefile,v
retrieving revision 1.59
diff -u -p -r1.59 Makefile
--- Makefile    1 Apr 2014 14:52:09 -0000       1.59
+++ Makefile    5 Jul 2014 12:48:36 -0000
@@ -19,7 +19,7 @@ COMMENT=              cross-platform networked sound
 VERSION=               5.0
 DISTNAME=              pulseaudio-${VERSION}
 EXTRACT_SUFX=          .tar.xz
-REVISION=              0
+REVISION=              1
 
 SHARED_LIBS +=  pulse                3.0      # .17.3
 SHARED_LIBS +=  pulse-simple         0.0      # .1.0
Index: patches/patch-src_daemon_daemon_conf_in
===================================================================
RCS file: patches/patch-src_daemon_daemon_conf_in
diff -N patches/patch-src_daemon_daemon_conf_in
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_daemon_daemon_conf_in     5 Jul 2014 12:48:36 -0000
@@ -0,0 +1,13 @@
+$OpenBSD$
+Disable shared memory backed by /tmp by default.
+--- src/daemon/daemon.conf.in.orig     Sat Jul  5 16:45:51 2014
++++ src/daemon/daemon.conf.in  Sat Jul  5 16:46:41 2014
+@@ -29,7 +29,7 @@ changequote(`[', `]')dnl Set up m4 quoting
+ ifelse(@HAVE_DBUS@, 1, [dnl
+ ; local-server-type = user
+ ])dnl
+-; enable-shm = yes
++enable-shm = no   # filling /tmp with 64MiB files is not such a good idea
+ ; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 
MiB
+ ; lock-memory = no
+ ; cpu-limit = no
Index: patches/patch-src_pulse_client_conf_in
===================================================================
RCS file: patches/patch-src_pulse_client_conf_in
diff -N patches/patch-src_pulse_client_conf_in
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_pulse_client_conf_in      5 Jul 2014 12:48:36 -0000
@@ -0,0 +1,13 @@
+$OpenBSD$
+Disable shared memory backed by /tmp by default.
+--- src/pulse/client.conf.in.orig      Sat Jul  5 16:44:40 2014
++++ src/pulse/client.conf.in   Sat Jul  5 16:45:32 2014
+@@ -30,7 +30,7 @@
+ 
+ ; cookie-file =
+ 
+-; enable-shm = yes
++enable-shm = no   # filling /tmp with 64MiB files is not such a good idea
+ ; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 
MiB
+ 
+ ; auto-connect-localhost = no

Reply via email to