Created attachment 353028 [details] sphinxbase-0.8.ebuild sphinxbase can use four audio backend: pulseaudio, jack, alsa or oss The build system consider this order as the prefered audio backend is the first listed. But one may need sphinxbase with his own preferred audio backend.
Created attachment 353034 [details, diff] sphinxbase-0.8.ebuild.patch Turned ebuild into diff; added die to sed calls, rewrote rc_prepare slightly with if calls to ensure the proper die and return functionality
Probably the other dependencies need to be added to the dependencies variables.
Created attachment 353528 [details, diff] fixed sphinxbase-0.8.ebuild.patch I tested the patch (just was missing a semicolon), it builds fine and sphinx3-0.6.3 works with it.
Created attachment 353608 [details, diff] sphinxbase-0.8.ebuild.patch Added jack dependencies. I don't know what are the dependencies for either alsa or oss (maybe media-libs/alsa-lib). Think it's just about kernel parameters checking, but I'd rather won't do that in the ebuild.
This is stillan issue today more than one year after it has been reported. If I remove the hard dep on pulseaudio in the ebuild and re-manifest it (my system already runs ALSA so all dependencies are already there), sphinxbase builds just fine and no pulse component gets pulled in. Could we at least have an USE in order to specify the pulse dep?
TomWjj, you made patches, but didn't commit them? What's the next step in this?
Created attachment 417568 [details, diff] Refreshed patch I've refreshed the patch to work with current ebuild. I also merged patch from bug 560254
In reply to #comment 7 Thanks a lot Maxim, it's really nice
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cdee1cb16e07453bef3be70d46936c968aae0ef6 commit cdee1cb16e07453bef3be70d46936c968aae0ef6 Author: Aaron Bauman <bman@gentoo.org> AuthorDate: 2020-08-02 02:59:11 +0000 Commit: Aaron Bauman <bman@gentoo.org> CommitDate: 2020-08-02 02:59:11 +0000 package.mask: last-rite app-accessibility/{SphinxTrain,sphinx3,sphinxbase} Bug: https://bugs.gentoo.org/568604 Bug: https://bugs.gentoo.org/340164 Bug: https://bugs.gentoo.org/560840 Bug: https://bugs.gentoo.org/716420 Bug: https://bugs.gentoo.org/560254 Bug: https://bugs.gentoo.org/476424 Bug: https://bugs.gentoo.org/643982 Signed-off-by: Aaron Bauman <bman@gentoo.org> profiles/package.mask | 9 +++++++++ 1 file changed, 9 insertions(+)
Package removed.