Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 863815 - media-sound/pasystray: should allow pipewire in deps
Summary: media-sound/pasystray: should allow pipewire in deps
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Paul Healy
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-08-05 13:57 UTC by Martin Kletzander
Modified: 2022-08-23 05:24 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Kletzander 2022-08-05 13:57:15 UTC
On a system with pipewire (and wireplumber) installed and set up, media-sound/pipewire is installed with sound-server USE flag and since some time ago that (obviously) blocks pulseaudio-daemon.  However pasystray works fine without pulseaudio-daemon.

It compiles fine with just libpulse.

It runs fine with pipewire[sound-server] and wireplumber, although I'm not sure what the actual requirements are since you should be able to control a remote pulseaudio/pipewire setup with pasystray and it only requires it to connect to something.  I suspect in older versions (before 1.6) libpulse was part of pulseaudio package and it was split out after that.

The actual error looks like this:

# emerge -v pasystray

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] media-libs/libpulse-16.1::gentoo  USE="X asyncns dbus glib gtk systemd -doc (-selinux) -test -valgrind" ABI_X86="32 (64) (-x32)" 0 KiB
[ebuild  N     ] media-sound/pulseaudio-daemon-16.1::gentoo  USE="X alsa alsa-plugin asyncns bluetooth dbus gdbm glib orc ssl systemd udev webrtc-aec -aptx (-elogind) -equalizer -fftw -gstreamer -jack -ldac -lirc -ofono-headset (-oss) (-selinux) -sox (-system-wide) -tcpd -test -valgrind -zeroconf" 0 KiB
[ebuild   R    ] media-sound/pasystray-0.8.0-r1::gentoo  USE="libnotify -zeroconf" 0 KiB
[blocks B      ] media-video/pipewire[sound-server(+)] ("media-video/pipewire[sound-server(+)]" is soft blocking media-sound/pulseaudio-daemon-16.1)
[blocks B      ] media-sound/pulseaudio-daemon ("media-sound/pulseaudio-daemon" is soft blocking media-video/pipewire-0.3.56)

Total: 3 packages (2 new, 1 reinstall), Size of downloads: 0 KiB
Conflict: 2 blocks (2 unsatisfied)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (media-video/pipewire-0.3.56:0/0.4::gentoo, installed) pulled in by
    media-video/pipewire required by @selected 

  (media-sound/pulseaudio-daemon-16.1:0/0::gentoo, ebuild scheduled for merge) pulled in by
    media-sound/pulseaudio-daemon required by (media-libs/libpulse-16.1:0/0::gentoo, ebuild scheduled for merge) USE="X asyncns dbus glib gtk systemd -doc (-selinux) -test -valgrind" ABI_X86="32 (64) (-x32)"
    media-sound/pulseaudio-daemon[glib,zeroconf?] (media-sound/pulseaudio-daemon[glib]) required by (media-sound/pasystray-0.8.0-r1:0/0::gentoo, ebuild scheduled for merge) USE="libnotify -zeroconf" ABI_X86="(64)"


For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

https://wiki.gentoo.org/wiki/Handbook:X86/Working/Portage#Blocked_packages
Comment 1 Martin Kletzander 2022-08-05 14:04:32 UTC
Fix proposed in https://github.com/gentoo/gentoo/pull/26748
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-05 18:51:44 UTC
https://github.com/christophgysin/pasystray/issues/145 and https://github.com/christophgysin/pasystray/issues/90 makes it sound like it may not work great.
Comment 3 Martin Kletzander 2022-08-08 07:25:38 UTC
(In reply to Sam James from comment #2)
> https://github.com/christophgysin/pasystray/issues/145 and
> https://github.com/christophgysin/pasystray/issues/90 makes it sound like it
> may not work great.

Those sound like a Wayland issues.  Running with X11 this works perfectly fine.  It also seems like whether pasystray is *built* with libpulse or pulseaudio-daemon does not change the behaviour, only the runtime setup of which sound server is running (maybe).  Taking pipewire out of the question, I think you can set up client-side pulseaudio to connect to a remote server in which case libpulse should be the requirement and not pulseaudio-daemon.  At least it seems like it with libpulse-16.1, see pulse-client.conf(5) man page for details.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-08 07:26:35 UTC
Fair point. I'll change the dep later.
Comment 5 Martin Kletzander 2022-08-08 08:55:25 UTC
(In reply to Sam James from comment #4)
> Fair point. I'll change the dep later.

Thanks.  Not sure if I did that correctly, but I gave it a try in PR 26748 (in See Also).
Comment 6 Martin Kletzander 2022-08-08 14:34:28 UTC
OK, I did not, just noticed https://archives.gentoo.org/gentoo-dev/message/6664445aaa02d6672f2e3740db2cc794 , sorry.
Comment 7 Larry the Git Cow gentoo-dev 2022-08-23 05:24:14 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7e4e0f2be2e891559507c61b390acfc39422c55

commit a7e4e0f2be2e891559507c61b390acfc39422c55
Author:     Martin Kletzander <nert.pinx@gmail.com>
AuthorDate: 2022-08-05 14:01:03 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-08-23 05:23:58 +0000

    media-sound/pasystray: Fix pulseaudio requirements
    
    In pipewire setup pasystray works like a charm and does not need
    pulseaudio-daemon, libpulse is enough.
    
    Closes: https://bugs.gentoo.org/863815
    Signed-off-by: Martin Kletzander <nert.pinx@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/26748
    Signed-off-by: Sam James <sam@gentoo.org>

 media-sound/pasystray/pasystray-0.8.0-r1.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)