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: 31257
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
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2400

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: 9262

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
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2400

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: 232
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
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3364
Location: de

PostPosted: Sat Jul 20, 2024 10:35 am    Post subject: Reply with quote

Just checked today for an update and stumbled into this thread, because I've seen VLC in the dependencies.

As already discussed in Bug 935033 minimal disables the deprecated gstreamer backend.

I masked VLC on my system due to the ffmpeg-4 dependency which blocks every other application depending on ffmpeg to use a newer version of ffmpeg.

As long as I understood I won't be able to play any multimedia content of any application depending on phonon. Currently that would be:

Code:
equery d phonon
 * These packages depend on phonon:
kde-apps/dolphin-23.08.5 (>=media-libs/phonon-4.11.0[qt5(+)])
kde-apps/gwenview-23.08.5 (>=media-libs/phonon-4.11.0[qt5(+)])
kde-apps/kio-extras-24.02.2-r1 (phonon ? >=media-libs/phonon-4.11.0[qt5(+)])
kde-apps/okular-23.08.5 (phonon ? >=media-libs/phonon-4.11.0[qt5(+)])
kde-frameworks/khtml-5.116.0 (>=media-libs/phonon-4.11.0[qt5(+)])
kde-frameworks/knotifications-5.116.0 (phonon ? >=media-libs/phonon-4.11.0[qt5(+)])
kde-frameworks/knotifyconfig-5.116.0 (phonon ? >=media-libs/phonon-4.11.0[qt5(+)])
kde-plasma/plasma-desktop-5.27.11 (>=media-libs/phonon-4.11.0[qt5(+)])
kde-plasma/plasma-workspace-5.27.11.1-r1 (>=media-libs/phonon-4.11.0[qt5(+)])
media-libs/phonon-gstreamer-4.10.0-r1 (>=media-libs/phonon-4.10.60)


Does that mean: I wouldn't be able to get any system sounds of KDE? If that's the only issue, I'm fine with phonon -minimal.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5091
Location: Bavaria

PostPosted: Sat Jul 20, 2024 10:48 am    Post subject: Reply with quote

musv wrote:
Does that mean: I wouldn't be able to get any system sounds of KDE? If that's the only issue, I'm fine with phonon -minimal.

I have a pure ALSA installation (no pulseaudio; no pipewire; only kmix) and I have even disabled "phonon" completely because I dont need it for these applications:
Code:
$ euse -i phonon
global use flags (searching: phonon)
************************************************************
no matching entries found

local use flags (searching: phonon)
************************************************************
[- c    ] phonon
    app-office/calligra: Build stage/eventplugins and videoshape plugin
    using media-libs/phonon
        [-  ] (5) 3.2.1-r9 [gentoo]

[- c    ] phonon
    kde-apps/kio-extras: Enable file audio preview plugin using media-libs/phonon
        [-  ] (5) 24.02.2-r1 [gentoo]
        [-  ] (6) 24.05.2 [gentoo]

[- c    ] phonon
    kde-apps/marble: Enable sound support via media-libs/phonon
        [-  ] (5/24.05) 24.05.1 [gentoo]
        [-  ] (5/24.05) 24.05.2 [gentoo]

[- c    ] phonon
    kde-apps/okular: Enable sound support via media-libs/phonon
        [-  ] (5) 23.08.5 [gentoo]
        [-  ] (6) 24.05.2 [gentoo]

[- c    ] phonon
    kde-frameworks/knotifications: Play notification sounds via media-libs/phonon instead of media-libs/libcanberra
        [-  ] (5/5.116) 5.116.0 [gentoo]
              (6/6.4) 6.4.0 [gentoo]

[- c    ] phonon
    kde-frameworks/knotifyconfig: Play notification sounds via media-libs/phonon instead of media-libs/libcanberra
        [-  ] (5/5.116) 5.116.0 [gentoo]
        [-  ] (6/6.4) 6.4.0 [gentoo]

[- c    ] phonon
    media-gfx/kphotoalbum: Enable media-libs/phonon video backend (known to crash on some video formats)
        [-  ] (5) 5.12.0 [gentoo]

[- c    ] phonon
    media-sound/yarock: Enable media-libs/phonon backend
        [-  ] 1.4.0-r3 [gentoo]

[- c    ] phonon
    net-irc/kvirc: Support Phonon for audio output
        [+ B] 5.2.0-r1 [gentoo]
        [+ B] 5.2.0-r2 [gentoo]
        [+ B] 5.2.2 [gentoo]
        [+ B] 5.2.4 [gentoo]
        [+ B] 9999 [gentoo]

My global USE-flags in make.conf:
Code:
USE="-accessibility -bluetooth -gstreamer -gtk -gtk3 -haptic -initramfs -ipv6 -lvm -modemmanager -networkmanager -phonon -ppp -pulseaudio -screencast -semantic-desktop -thin -thumbnail -wext -wifi -wireless "
USE="$USE jumbo-build lm-sensors matroska openexr opus theora threads vaapi vpx webp"

together with local flags in /etc/portage/package.use:
Code:
kde-plasma/plasma-meta -crypt -crash-handler
media-video/pipewire -sound-server
...
# temporary because of bug: https://bugs.gentoo.org/916267
>=dev-qt/qtgui-5.15.11-r2 accessibility

# temporary because of bug: https://bugs.gentoo.org/864721
media-video/vlc -vaapi


musv wrote:
I masked VLC on my system due to the ffmpeg-4 dependency which blocks every other application depending on ffmpeg to use a newer version of ffmpeg.

Maybe this is not necessary ... see above setting for VLC ... ;-)
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3364
Location: de

PostPosted: Tue Aug 13, 2024 11:09 am    Post subject: Reply with quote

In the last update, I had to set qt5 or qt6 (or both). Nevertheless thanks to pietinger, phonon isn't neccessary for any important application on my system. Hence, minimal is fine to keep vlc out of the system.
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