Bug 273605 - audio/pulseaudio: Daemon startup failed in system-wide mode
Summary: audio/pulseaudio: Daemon startup failed in system-wide mode
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-desktop (Team)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-06 19:14 UTC by Jesús Daniel Colmenares Oviedo
Modified: 2024-05-04 01:02 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (desktop)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesús Daniel Colmenares Oviedo 2023-09-06 19:14:38 UTC
Description:

I have written a small rc script to run pulseaudio in system-wide mode using the following parameters (see Output). After upgrading pulseaudio a few weeks ago I noticed that pulseaudio cannot be started again in system-wide mode. I didn't have time at that time to test some things to get more information so I haven't reported it until today.

Note: I know that running pulseaudio in system-wide mode is not recommended except in some cases.

Output:

```
# pulseaudio -D --system --disallow-module-loading --disallow-exit
N: [(null)] main.c: Running in system mode, forcibly disabling SHM mode.
N: [(null)] main.c: Running in system mode, forcibly disabling exit idle time.
E: [(null)] main.c: Daemon startup failed.
# tail -3 /var/log/messages
Sep  6 14:57:17 dtxdf-test pulseaudio[19404]: [(null)] main.c: Home directory of user 'pulse' is not '/var/local/run/pulse', ignoring.
Sep  6 14:57:17 dtxdf-test pulseaudio[19404]: [(null)] caps.c: Normally all extra capabilities would be dropped now, but that's impossible because PulseAudio was built without capabilities support.
Sep  6 14:57:17 dtxdf-test pulseaudio[19404]: [(null)] core-util.c: Failed to create secure directory (/var/local/lib/pulse): Permission denied
```
Comment 1 Tatsuki Makino 2023-09-08 21:20:36 UTC
localstatedir may be bad.
Excerpts from phase:configure

Message: 
    ---{ pulseaudio 16.1 }---
    
    prefix:                        /usr/local
    bindir:                        /usr/local/bin
    libdir:                        /usr/local/lib
    libexecdir:                    /usr/local/libexec
    mandir:                        /usr/local/man
    datadir:                       /usr/local/share
    sysconfdir:                    /usr/local/etc
    localstatedir:                 /var/local
    modlibexecdir:                 /usr/local/lib/pulseaudio/modules
    alsadatadir:                   /usr/local/share/pulseaudio/alsa-mixer
    System Runtime Path:           /var/local/run/pulse
    System State Path:             /var/local/lib/pulse
    System Config Path:            /var/local/lib/pulse
    Bash completions directory:    /usr/local/share/bash-completion/completions
    Zsh completions directory:     /usr/local/share/zsh/site-functions
    Compiler:                      clang 13.0.0
    
    Enable pulseaudio daemon:      true
    Enable pulseaudio client:      true