The v4l use flasg should be added to kdemultimedia-meta and only if +v4l it should bring in kamoso as it's useless without a webcam and it depends on media-plugins/gst-plugins-meta[v4l]
Personally, I added a "webcam" USE flag to my local overlay to work around this. Whatever the flag is called, it would be nice to avoid maintaining a local version of this ebuild to avoid pulling in 40+ new packages. Guarding kamoso behind a USE flag would be very much appreciated. Thanks.
Created attachment 528076 [details, diff] Patch to add a "webcam" USE flag to kdemultimedia-meta and its metadata.xml. In order to make sure that wasn't just a "me too" post... ;-) Hope this helps.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/proj/kde.git/commit/?id=40b9bd7e371b2d5c422354116a6e71c43bc6dcfa commit 40b9bd7e371b2d5c422354116a6e71c43bc6dcfa Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2018-05-03 11:37:55 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2018-05-03 11:37:55 +0000 kde-apps/kdemultimedia-meta: Add USE=gstreamer Closes: https://bugs.gentoo.org/653584 Package-Manager: Portage-2.3.33, Repoman-2.3.9 kde-apps/kdemultimedia-meta/kdemultimedia-meta-18.04.49.9999.ebuild | 4 ++-- kde-apps/kdemultimedia-meta/kdemultimedia-meta-9999.ebuild | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
That commit solves half of the problem, namely for those using vlc as a backend for phonon, but for those using gstreamer it still insists on installing 4 unneded packages. It should depend on both gstreamer and v4l use flags. # emerge -ptv kdemultimedia-meta These are the packages that would be merged, in reverse order: Calculating dependencies... done! [ebuild R ] kde-apps/kdemultimedia-meta-18.04.0:5::gentoo USE="cdrom ffmpeg" 0 KiB [ebuild N ] kde-apps/kamoso-18.04.0:5::gentoo USE="handbook -debug {-test}" 182 KiB [ebuild R ] media-plugins/gst-plugins-meta-1.12.4:1.0::gentoo USE="X a52 aac alsa cdda dts dvd ffmpeg flac http mp3 mpeg ogg opus pulseaudio taglib theora v4l* vaapi vorbis vpx x264 -dv -dvb -jack -lame -libass -libvisual -mms -modplug -oss -vcd -wavpack" ABI_X86="32 (64) (-x32)" 0 KiB [ebuild N ] kde-frameworks/purpose-5.45.0:5/5.45::gentoo USE="kaccounts -debug {-test}" 116 KiB [nomerge ] kde-apps/kde-meta-18.04.0:5::gentoo [nomerge ] kde-apps/kde-apps-meta-18.04.0:5::gentoo USE="accessibility pim sdk" [nomerge ] kde-apps/kdenetwork-meta-18.04.0:5::gentoo [nomerge ] kde-apps/kget-18.04.0:5::gentoo USE="gpg handbook kde sqlite -bittorrent -debug -mms {-test}" [nomerge ] kde-frameworks/knotifyconfig-5.45.0:5/5.45::gentoo USE="phonon -debug -doc" [nomerge ] media-libs/phonon-4.10.1::gentoo USE="designer gstreamer pulseaudio -debug -vlc" [nomerge ] media-libs/phonon-gstreamer-4.9.0-r2::gentoo USE="alsa network -debug" [nomerge ] media-plugins/gst-plugins-meta-1.12.4:1.0::gentoo USE="X a52 aac alsa cdda dts dvd ffmpeg flac http mp3 mpeg ogg opus pulseaudio taglib theora v4l* vaapi vorbis vpx x264 -dv -dvb -jack -lame -libass -libvisual -mms -modplug -oss -vcd -wavpack" ABI_X86="32 (64) (-x32)" [ebuild N ] media-plugins/gst-plugins-v4l2-1.12.4:1.0::gentoo USE="udev" ABI_X86="32 (64) (-x32)" 0 KiB [ebuild N ] media-libs/libv4l-1.14.1::gentoo USE="jpeg" ABI_X86="32 (64) (-x32)" 1,634 KiB Total: 6 packages (4 new, 2 reinstalls), Size of downloads: 1,931 KiB The following USE changes are necessary to proceed: (see "package.use" in the portage(5) man page for more details) # required by kde-apps/kamoso-18.04.0::gentoo # required by kde-apps/kdemultimedia-meta-18.04.0::gentoo # required by kdemultimedia-meta (argument) >=media-plugins/gst-plugins-meta-1.12.4 v4l
If you don't want to have unneeded packages then don't use meta packages in the first place. For sure we won't spend two use flags for one optional package.