Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 863623 - net-im/zoom-5.11.3.3882: "sh: 1: pacmd: not found" at launch on pipewire-only system
Summary: net-im/zoom-5.11.3.3882: "sh: 1: pacmd: not found" at launch on pipewire-only...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ulrich Müller
URL:
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2022-08-04 14:33 UTC by Frederik Pfautsch
Modified: 2022-11-12 12:21 UTC (History)
3 users (show)

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


Attachments
emerge --info (emerge_info.txt,22.50 KB, text/plain)
2022-08-04 14:34 UTC, Frederik Pfautsch
Details
zoom log (zoom.log,3.63 KB, text/plain)
2022-08-04 14:34 UTC, Frederik Pfautsch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frederik Pfautsch 2022-08-04 14:33:39 UTC
zoom crashes at launch with "sh: 1: pacmd: not found" due to missing pulseaudio on pipewire-system.

package.use:
media-video/pipewire sound-server
media-sound/pulseaudio -daemon

Reproducible: Always




Open thread since 2022-05-31: https://community.zoom.com/t5/Meetings/Unable-to-start-zoom-on-linux-with-quot-pacmd-command-not-found/m-p/61892
Comment 1 Frederik Pfautsch 2022-08-04 14:34:22 UTC
Created attachment 797659 [details]
emerge --info
Comment 2 Frederik Pfautsch 2022-08-04 14:34:38 UTC
Created attachment 797662 [details]
zoom log
Comment 3 Ulrich Müller gentoo-dev 2022-08-05 14:32:36 UTC
pacmd is installed by media-sound/pulseaudio-daemon. So, as a workaround, we could update the dependency:

pulseaudio? ( media-sound/pulseaudio[daemon] )
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-06 04:07:28 UTC
(In reply to Ulrich Müller from comment #3)
> pacmd is installed by media-sound/pulseaudio-daemon. So, as a workaround, we
> could update the dependency:
> 
> pulseaudio? ( media-sound/pulseaudio[daemon] )

It would be:
	|| ( media-sound/pulseaudio-daemon media-sound/pulseaudio[daemon(+)] )
but yeah.

Sounds fine to me, even if unfortunate.
Comment 5 robertgzr 2022-08-24 17:20:09 UTC
this might work?

https://github.com/clotodex/zoom-pacmd-fix
Comment 6 Ulrich Müller gentoo-dev 2022-08-24 17:54:54 UTC
(In reply to robertgzr from comment #5)
> this might work?
> 
> https://github.com/clotodex/zoom-pacmd-fix

AFAICS that would install a wrapper in /usr/bin which I believe is not a good idea.
Comment 7 Larry the Git Cow gentoo-dev 2022-08-27 18:36:11 UTC
The bug has been closed via the following commit(s):

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

commit cf736172512c50ee0014e4ed70a7889cf7e00c20
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2022-08-27 18:33:43 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2022-08-27 18:35:50 +0000

    net-im/zoom: Depend on pulseaudio[daemon]
    
    Zoom relies on pacmd which is installed by pulseaudio-daemon.
    
    Closes: https://bugs.gentoo.org/863623
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>

 net-im/zoom/{zoom-5.11.9.4300.ebuild => zoom-5.11.9.4300-r1.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-27 18:36:49 UTC
(In reply to Sam James from comment #4)
> (In reply to Ulrich Müller from comment #3)
> > pacmd is installed by media-sound/pulseaudio-daemon. So, as a workaround, we
> > could update the dependency:
> > 
> > pulseaudio? ( media-sound/pulseaudio[daemon] )
> 
> It would be:
> 	|| ( media-sound/pulseaudio-daemon media-sound/pulseaudio[daemon(+)] )
> but yeah.
> 
> Sounds fine to me, even if unfortunate.

Should be this :)
Comment 9 Ulrich Müller gentoo-dev 2022-08-27 18:44:50 UTC
(In reply to Sam James from comment #8)
> (In reply to Sam James from comment #4)
> > (In reply to Ulrich Müller from comment #3)
> > > pacmd is installed by media-sound/pulseaudio-daemon. So, as a workaround, we
> > > could update the dependency:
> > > 
> > > pulseaudio? ( media-sound/pulseaudio[daemon] )
> > 
> > It would be:
> > 	|| ( media-sound/pulseaudio-daemon media-sound/pulseaudio[daemon(+)] )
> > but yeah.
> > 
> > Sounds fine to me, even if unfortunate.
> 
> Should be this :)

We need both libpulse.so (provided by media-libs/libpulse) and pacmd (provided by media-sound/pulseaudio-daemon), which is exactly what the pulseaudio[daemon] metapackage will pull in as its dependencies.

We could of course add both packages separately, but that would just duplicate pulseaudio's RDEPEND.
Comment 10 Frederik Pfautsch 2022-08-27 18:52:35 UTC
I have not installed pulseaudio-daemon (neither manually, nor through daemon use-flag) and yet, zoom is getting updated (I would have expected an error message about missing dependencies and having to solve use flags conflicts):

Eix snippets:
[I] media-sound/pulseaudio
     Available versions:  16.0 16.1 {bluetooth (+)daemon +glib jack ofono-headset ABI_MIPS="n32 n64 o32" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Installed versions:  16.1(17:08:58 07/29/22)(glib -bluetooth -daemon -jack -ofono-headset ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="32 64 -x32")

* media-sound/pulseaudio-daemon
     Available versions:  16.0-r1^t 16.1^t {+X +alsa +alsa-plugin aptx +asyncns bluetooth dbus elogind equalizer fftw +gdbm +glib gstreamer gtk ipv6 jack ldac lirc ofono-headset +orc oss selinux sox ssl system-wide systemd tcpd test +udev valgrind +webrtc-aec zeroconf}

[I] net-im/zoom
     Available versions:  (~)5.11.1.3595^msd[1] (~)5.11.3.3882^msd (~)5.11.3.3882^msd[1] (~)5.11.9.4300^msd {bundled-libjpeg-turbo +bundled-qt opencl pulseaudio wayland}
     Installed versions:  5.11.9.4300^msd(20:48:13 08/27/22)(bundled-qt opencl pulseaudio wayland -bundled-libjpeg-turbo)
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-27 18:53:48 UTC
(In reply to Ulrich Müller from comment #9)
> (In reply to Sam James from comment #8)
> > (In reply to Sam James from comment #4)
> > > (In reply to Ulrich Müller from comment #3)
> > > > pacmd is installed by media-sound/pulseaudio-daemon. So, as a workaround, we
> > > > could update the dependency:
> > > > 
> > > > pulseaudio? ( media-sound/pulseaudio[daemon] )
> > > 
> > > It would be:
> > > 	|| ( media-sound/pulseaudio-daemon media-sound/pulseaudio[daemon(+)] )
> > > but yeah.
> > > 
> > > Sounds fine to me, even if unfortunate.
> > 
> > Should be this :)
> 
> We need both libpulse.so (provided by media-libs/libpulse) and pacmd
> (provided by media-sound/pulseaudio-daemon), which is exactly what the
> pulseaudio[daemon] metapackage will pull in as its dependencies.
> 
> We could of course add both packages separately, but that would just
> duplicate pulseaudio's RDEPEND.

We don't really want packages depending on the metapackage, as it's there for user convenience now. But it's not a big deal.
Comment 12 Larry the Git Cow gentoo-dev 2022-08-27 19:04:13 UTC
The bug has been referenced in the following commit(s):

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

commit eed42b17e8de559f7f87bcd8e5ce696bd4c9a08c
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2022-08-27 19:02:02 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2022-08-27 19:03:54 +0000

    net-im/zoom: Depend on libpulse and pulseaudio-daemon directly
    
    Bug: https://bugs.gentoo.org/863623
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>

 net-im/zoom/{zoom-5.11.9.4300-r1.ebuild => zoom-5.11.9.4300-r2.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 13 Ulrich Müller gentoo-dev 2022-08-27 19:08:12 UTC
(In reply to Frederik Pfautsch from comment #10)

Is that an issue with 5.11.9.4300-r1 or -r2? Your eix output still shows 5.11.9.4300(-r0) which doesn't have the fix.
Comment 14 Ulrich Müller gentoo-dev 2022-08-27 19:10:56 UTC
(In reply to Sam James from comment #11)
> We don't really want packages depending on the metapackage, as it's there
> for user convenience now. But it's not a big deal.

For my defence, when I first added media-sound/pulseaudio as a dependency, neither of the split packages did exist. :)
Comment 15 Frederik Pfautsch 2022-08-27 19:14:08 UTC
(In reply to Ulrich Müller from comment #13)
> (In reply to Frederik Pfautsch from comment #10)
> 
> Is that an issue with 5.11.9.4300-r1 or -r2? Your eix output still shows
> 5.11.9.4300(-r0) which doesn't have the fix.

Oh, I see, sorry, I missed the revision change. I rsync'ed just beforehand, but I guess the mirror hasn't synced these changes yet.
Comment 16 Frederik Pfautsch 2022-08-27 19:35:16 UTC
Hm, I used the pacmd-script workaround, but zoom-5.11.9.4300 seems to work without it? It still logs the same "sh: 1: pacmd: not found" error, but does not crash. Starting a meeting also seems to work with all devices being listed.
Comment 17 Ulrich Müller gentoo-dev 2022-08-27 20:03:00 UTC
(In reply to Frederik Pfautsch from comment #16)
> Hm, I used the pacmd-script workaround, but zoom-5.11.9.4300 seems to work
> without it? It still logs the same "sh: 1: pacmd: not found" error, but does
> not crash. Starting a meeting also seems to work with all devices being
> listed.

Interesting. That would mean that we don't need to depend on pulseaudio-daemon. Should we drop it again?

However, I don't see anything related to this in upstream's release notes:
https://support.zoom.us/hc/en-us/articles/205759689
Comment 18 Frederik Pfautsch 2022-08-27 20:09:20 UTC
(In reply to Ulrich Müller from comment #17)
> (In reply to Frederik Pfautsch from comment #16)
> > Hm, I used the pacmd-script workaround, but zoom-5.11.9.4300 seems to work
> > without it? It still logs the same "sh: 1: pacmd: not found" error, but does
> > not crash. Starting a meeting also seems to work with all devices being
> > listed.
> 
> Interesting. That would mean that we don't need to depend on
> pulseaudio-daemon. Should we drop it again?
> 
> However, I don't see anything related to this in upstream's release notes:
> https://support.zoom.us/hc/en-us/articles/205759689

I am not sure, especially if I missed something at this hour (running pacmd in the terminal does not yield anything). But I guess, if somebody else is able to confirm it (with zoom maybe addressing this issue as "Minor bug fixes"), then yes?
Comment 19 Ulrich Müller gentoo-dev 2022-08-27 20:16:10 UTC
Let's revert the pulseaudio-daemon dependency, so we'll see whether anybody still has problems.
Comment 20 Larry the Git Cow gentoo-dev 2022-08-27 20:16:27 UTC
The bug has been referenced in the following commit(s):

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

commit 388f8d63657c1bf2f7a4f0e25c3c8c5b8dbe27f7
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2022-08-27 20:04:45 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2022-08-27 20:11:57 +0000

    net-im/zoom: Drop dependency on pulseaudio-daemon
    
    Apparently, a missing pacmd command is no longer a fatal error.
    
    If this still causes problems for you, please report them in bug 863623.
    
    Bug: https://bugs.gentoo.org/863623#c16
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>

 net-im/zoom/{zoom-5.11.9.4300-r2.ebuild => zoom-5.11.9.4300-r3.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 21 Ulrich Müller gentoo-dev 2022-11-12 12:21:25 UTC
(In reply to Ulrich Müller from comment #19)
> Let's revert the pulseaudio-daemon dependency, so we'll see whether anybody
> still has problems.

Seems not to be the case, and 10 weeks have passed. Closing again.