Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
New phonon pulls in vlc by default even with -vlc flag
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
metapsyborg
n00b
n00b


Joined: 28 Sep 2011
Posts: 22

PostPosted: Fri Jul 05, 2024 6:47 pm    Post subject: New phonon pulls in vlc by default even with -vlc flag Reply with quote

There is a new use flag in the phonon 4.12 ebuild:
https://gitweb.gentoo.org/repo/gentoo.git/tree/media-libs/phonon/phonon-4.12.0-r3.ebuild
Code:
minimal


By default it is false. This causes phonon-vlc to be pulled in even if we have -vlc set. It looks like the old `vlc` use flag is gone now.

How does a change like this come about? It seems like a change for no reason and makes the use flag more generic and vague, and the description of the use flag in equery is basically useless (no one can tell what that use flag does from its description).
Code:
 * Found these USE flags for media-libs/phonon-4.12.0-r3:
 U I
 - - debug      : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful
                  backtraces see https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces
 - - designer   : Install plugin for dev-qt/designer
 - - minimal    : Install a very minimal build (disables, for example, plugins, fonts, most drivers, non-critical
                  features)
 + + pulseaudio : Add sound server support via media-libs/libpulse (may be PulseAudio or PipeWire)
 + + qt5        : Add support for the Qt 5 application and UI framework
 + - qt6        : Add support for the Qt 6 application and UI framework


Previously with the `vlc` use flag it was very clear what the use flag does:
Code:
 * Found these USE flags for media-libs/phonon-4.11.1-r2:
 U I
 - - debug      : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful
                  backtraces see https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces
 - - designer   : Install plugin for dev-qt/designer
 - - gstreamer  : Add support for media-libs/gstreamer (Streaming media)
 + + pulseaudio : Add sound server support via media-libs/libpulse (may be PulseAudio or PipeWire)
 - - vlc        : Install VLC Phonon backend



Can I set the `+minimal` use flag as a drop-in replacement for the `-vlc` useflag? Also, why are the qt5/6 use flags set by default, can I do -qt5,-qt6 to get the same behavior as before?
Thanks
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31072
Location: here

PostPosted: Fri Jul 05, 2024 6:55 pm    Post subject: Re: New phonon pulls in vlc by default even with -vlc flag Reply with quote

metapsyborg wrote:
Can I set the `+minimal` use flag as a drop-in replacement for the `-vlc` useflag?

Yes minimal use flag work like -vlc,

metapsyborg wrote:
Also, why are the qt5/6 use flags set by default, can I do -qt5,-qt6 to get the same behavior as before?

No because before qt5 was implicit, so you should set +qt5 -qt6.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
logrusx
Veteran
Veteran


Joined: 22 Feb 2018
Posts: 1857

PostPosted: Fri Jul 05, 2024 6:56 pm    Post subject: Reply with quote

You can see some explanations regarding vlc => minimal use flag renaming here: https://bugs.gentoo.org/935033

In general you can get many questions answered by simple search in bugs.gentoo.org. Just type the package name and see if you can find a bug that seems related.

As to why a qt flag needs to be set I can't say anything. I don't know what the old behavior is and if it at all is related to Qt versions, but if this is a KDE lib, it makes sense that it's related.

Best Regards,
Georgi


Last edited by logrusx on Fri Jul 05, 2024 7:00 pm; edited 2 times in total
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 9000

PostPosted: Fri Jul 05, 2024 6:58 pm    Post subject: Reply with quote

@logrusx: Not an app, just a lib.

It's Qt-based. It'll need *some* Qt. As a library, some applications will have to depend on it with *their* version of Qt present.
Back to top
View user's profile Send private message
logrusx
Veteran
Veteran


Joined: 22 Feb 2018
Posts: 1857

PostPosted: Fri Jul 05, 2024 7:00 pm    Post subject: Reply with quote

asturm wrote:
@logrusx: Not an app, just a lib.

It's Qt-based. It'll need *some* Qt. As a library, some applications will have to depend on it with *their* version of Qt present.


Corrected, thanks!

Best Regards,
Georgi
Back to top
View user's profile Send private message
eeckwrk99
Apprentice
Apprentice


Joined: 14 Mar 2021
Posts: 192
Location: Gentoo forums

PostPosted: Fri Jul 05, 2024 7:01 pm    Post subject: Re: New phonon pulls in vlc by default even with -vlc flag Reply with quote

metapsyborg wrote:
It looks like the old `vlc` use flag is gone now.

Yes it is.

metapsyborg wrote:
How does a change like this come about? It seems like a change for no reason and makes the use flag more generic and vague, and the description of the use flag in equery is basically useless (no one can tell what that use flag does from its description).

Quoting the commit message:
asturm wrote:
With only a single available backend left, it does not make that much sense
to rely on a commonly disabled flag to provide major functionality, even if
enabled by default.


Which makes sense in my opinion. Before we had gstreamer and vlc, now that Gstreamer backend is gone, we only have mininal to basically avoid VLC.

metapsyborg wrote:
Can I set the `+minimal` use flag as a drop-in replacement for the `-vlc` useflag?

That's what I did on my system, no issue whatsoever.

metapsyborg wrote:
Also, why are the qt5/6 use flags set by default, can I do -qt5,-qt6 to get the same behavior as before?


Not sure you can disable both considering

Code:
REQUIRED_USE="|| ( qt5 qt6 )"


You would get this error:
Code:
# emerge -1 media-libs/phonon


!!! Problem resolving dependencies for media-libs/phonon

!!! The ebuild selected to satisfy "media-libs/phonon" has unmet requirements.
- media-libs/phonon-4.12.0-r3::gentoo USE="minimal pulseaudio -debug -designer -qt5 -qt6" ABI_X86="(64)"

  The following REQUIRED_USE flag constraints are unsatisfied:
    any-of ( qt5 qt6 )


Edit: too slow :)
Back to top
View user's profile Send private message
metapsyborg
n00b
n00b


Joined: 28 Sep 2011
Posts: 22

PostPosted: Fri Jul 05, 2024 8:45 pm    Post subject: Reply with quote

Thanks everyone for the fast and thorough answers! You guys are great.

I set the minimal use flag and emerge looks good now. Not gonna touch the qt flags because I let the profile and kde meta packages manage that stuff.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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