Skip to content

PulseAudio - No such file or directory "/opt/homebrew/Cellar/pulseaudio/17.0/etc/pulse/default.pa.d" #224722

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
4 tasks done
eduardomozart opened this issue May 26, 2025 · 4 comments

Comments

@eduardomozart
Copy link

eduardomozart commented May 26, 2025

brew gist-logs <formula> link OR brew config AND brew doctor output

Hello,
When creating a pulse file to include the default PulseAudio settings from Brew, PulseAudio throws a warning when starting with ``pulseaudio`` command with the output:


W: [] cli-command.c: stat('/opt/homebrew/Cellar/pulseaudio/17.0/etc/pulse/default.pa.d'): No such file or directory

Verification

  • My brew doctor output says Your system is ready to brew. and am still able to reproduce my issue.
  • I ran brew update and am still able to reproduce my issue.
  • I have resolved all warnings from brew doctor and that did not fix my problem.
  • I searched for recent similar issues at https://github.com/Homebrew/homebrew-core/issues?q=is%3Aissue and found no duplicates.

What were you trying to do (and why)?

Reproduce PulseAudio from a Ubuntu Noble container to macOS.

What happened (include all command output)?

PulseAudio fails to start with pulseaudio -k and pulseaudio --start command, only starts with pulseaudio --exit-idle-time\=-1 --verbose which I do believe as stated by Brew after PulseAudio install that it's the command to start it.

What did you expect to happen?

No warning shown on console.

Step-by-step reproduction instructions (by running brew commands)

brew install pulseaudio
mkdir -p "${HOME}/.config/pulse"
\echo -e ".include $(brew --prefix)/var/homebrew/linked/pulseaudio/etc/pulse/default.pa\nload-module module-native-protocol-tcp auth-anonymous=1" > "${HOME}/.config/pulse/default.pa"
pulseaudio -k
pulseaudio
@botantony
Copy link
Contributor

botantony commented May 26, 2025

Does it happen only on macOS or on Linux too?
P.S. the next time try to share brew doctor output in the first section and describe the issue in What were you trying to do (and why)?/What happened (include all command output)?

@eduardomozart
Copy link
Author

It does not seems to happens on Linux (Ubuntu Noble) because the default.pa.d directory exists. I do believe that the fix for this warning is simple, simply create the directory during brew install.

@botantony
Copy link
Contributor

This happens because PulseAudio tries to look for Linux shared libraries (.so) on macOS (.dylib). You have to submit the report to the upstream

@eduardomozart
Copy link
Author

eduardomozart commented May 26, 2025

It's the default behavior and it also happens on Linux (Ubuntu Noble). It has nothing related to PulseAudio shared libraries. The default.pa.d file is a directory that allows users to specify custom PulseAudio settings and have it preserved during PulseAudio upgrades. To supress this warning, it's necessary to edit /opt/homebrew/Cellar/pulseaudio/17.0/etc/pulse/default.pa and comment/remove the .include /opt/homebrew/Cellar/pulseaudio/17.0/etc/pulse/default.pa.d clause, but it would be better if the formula creates it or the make script do so since it's the default behavior of Linux distros and it also allows users to setup custom PulseAudio settings without modifying the original default.pa file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants