Created attachment 481494 [details] Libraries for wps binaries After last update to app-office/wps-office-10.1.0.5707_alpha21 I cannot run it: /opt/kingsoft/wps-office/office6/wps: error while loading shared libraries: libpulse-mainloop-glib.so.0: cannot open shared object file: No such file or directory With pulseaudio installed it works. I guess wps-office package should have pulseaudio in RDEPEND or required uses.
Created attachment 488072 [details, diff] To use WPS Office with apulse without install PulseAudio
The same happened to me when upgrading to version 10.1.0.5707_alpha21 although this also work with apulse as follows: 1. Install media-sound/apulse 2. Run the following command: sudo ln -s /usr/lib/apulse/libpulse.so.0 /usr/lib/apulse/libpulse-mainloop-glib.so.0 3. (Re)install app-office/wps-office applying the attached patch. So far I have not had problems but I imagine that could be an inconvenience to play embedded audio/video files (I can not imagine what else it need PulseAudio). Step 2 may not be necessary in future apulse versions since a few weeks ago they added the file apulse-mainloop-glib.c[1]. With regard to the ebuild, it could be done similarly to net-im/skype by adding the flags apulse and pulseaudio for the user to choose with which to install. [1]: https://github.com/i-rinat/apulse/blob/master/src/apulse-mainloop-glib.c
I will check the pulseaudio requirement... but I won't add the apulse hacks until we don't need to make that ugly symlinks... I would at first like to see apulse package providing libpulse-mainloop-glib.so.0 (if it really works)
all deps were obsolete, now updated
The symbolic link is no longer required in apulse 0.1.11 (the ebuild is the same as version 0.1.10, just rename it) and WPS continues to work without problems. I also tried to embed some audio and video files in WPS Presentation and the sound of them is played without the need to install PulseAudio. Sorry for the delay in responding, I do not usually check the bugtracking often.