Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 624086 - app-office/wps-office should depend on pulseaudio
Summary: app-office/wps-office should depend on pulseaudio
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Pacho Ramos
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-07 08:21 UTC by kapsh
Modified: 2018-03-18 11:20 UTC (History)
2 users (show)

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


Attachments
Libraries for wps binaries (ldd.txt,3.89 KB, text/plain)
2017-07-07 08:21 UTC, kapsh
Details
To use WPS Office with apulse without install PulseAudio (wps-office_without_pulseaudio.patch,1.65 KB, patch)
2017-08-06 05:13 UTC, Agustin Ferrari
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description kapsh 2017-07-07 08:21:10 UTC
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.
Comment 1 Agustin Ferrari 2017-08-06 05:13:40 UTC
Created attachment 488072 [details, diff]
To use WPS Office with apulse without install PulseAudio
Comment 2 Agustin Ferrari 2017-08-06 05:19:51 UTC
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
Comment 3 Pacho Ramos gentoo-dev 2018-02-13 14:15:29 UTC
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)
Comment 4 Pacho Ramos gentoo-dev 2018-02-13 21:30:32 UTC
all deps were obsolete, now updated
Comment 5 Agustin Ferrari 2018-03-18 11:20:39 UTC
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.