Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] How to install Plasma without pulling in VLC + GTK?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Kleptoid
n00b
n00b


Joined: 05 Sep 2019
Posts: 4

PostPosted: Thu Sep 05, 2019 11:56 pm    Post subject: [Solved] How to install Plasma without pulling in VLC + GTK? Reply with quote

Hi all, I'm new here :)

Long time GNU/Linux user, trying to switch to Gentoo from Arch. I'm no stranger to source-based, I did LFS back in 2000 then SGL after that. I am however just starting to learn Gentoo...

Whenever I try to install kde-plasma/plasma-meta it wants to pull in VLC and GTK3. Using the -gtk3 USE flag doesn't help. I don't want this, I want smplayer and nothing GTK based. How should I proceed?

Thanks in advance :)


Last edited by Kleptoid on Fri Sep 06, 2019 9:43 am; edited 3 times in total
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 14972

PostPosted: Fri Sep 06, 2019 1:03 am    Post subject: Reply with quote

Pass --tree to emerge to ask it to explain why it pulls in a package. In your case, emerge --pretend --verbose --tree kde-plasma/plasma-meta should show you what you need.

Use /etc/portage/package.mask to force Portage not to install a particular package. If you do this, Portage will fail to solve dependency chains that require the package. This can be useful if you know that any chain that requires the package is an error. For example, you could mask gtk+:3 to force an error when anything tries to use it. If the mask raises an error, then you get to decide whether to remove the mask, reconfigure the requiring package, or refrain from installing the requiring package.
Back to top
View user's profile Send private message
Fitzcarraldo
Veteran
Veteran


Joined: 30 Aug 2008
Posts: 1787
Location: United Kingdom

PostPosted: Fri Sep 06, 2019 1:27 am    Post subject: Reply with quote

The reason it's pulling in VLC is because media-libs/phonon-vlc is the default backend for the KDE multimedia library media-libs/phonon:

https://packages.gentoo.org/packages/search?q=phonon

https://gitweb.gentoo.org/repo/gentoo.git/tree/media-libs/phonon/phonon-4.11.0.ebuild

Notice the following line in the phonon ebuild:

Code:
IUSE="debug designer gstreamer pulseaudio +vlc"


The "+vlc" means that, if you don't explicitly change it, media-libs/phonon-vlc is chosen by default. If you don't want media-libs/phonon-vlc and VLC to be installed then specify "-vlc" as a local USE flag for phonon.

I'm not an Arch Linux user, but I understand you can choose either (or both) phonon backends in that distribution as well: https://wiki.archlinux.org/index.php/KDE#Which_backend_should_I_choose?
_________________
Clevo W230SS: amd64 nvidia-drivers & xf86-video-intel.
Compal NBLB2: ~amd64 xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC eudev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 7480
Location: Austria

PostPosted: Fri Sep 06, 2019 6:39 am    Post subject: Reply with quote

USE gtk3 will usually only exist where there is the option of using gtk2 instead. So unsetting that flag alone does not cut it, "-gtk" is necessary.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 23553
Location: here

PostPosted: Fri Sep 06, 2019 6:44 am    Post subject: Reply with quote

You also remove gtk (not gtk3) use flag to kde-plasma/plasma-meta and kde-plasma/systemsettings packages, but without this you have no integration with gtk/gtk3 applications
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Kleptoid
n00b
n00b


Joined: 05 Sep 2019
Posts: 4

PostPosted: Fri Sep 06, 2019 9:45 am    Post subject: Reply with quote

Thanks everyone for your prompt and helpful responses. I can see I've got a lot of learning to do, but Gentoo is thus far living up to my expectations.

Topic marked as solved, yay! :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum