summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2023-07-25 21:31:57 -0400
committerIonen Wolkens <ionen@gentoo.org>2023-07-25 21:44:20 -0400
commit0e264bc426f18f7f9076f9b4fe724aa445bc23a1 (patch)
treea22aa1028aab8e425e496a35a2c0cdd78aac69f8 /profiles/targets
parentprofiles/base/package.use.mask: drop misplaced blank line (diff)
downloadgentoo-0e264bc426f18f7f9076f9b4fe724aa445bc23a1.tar.gz
gentoo-0e264bc426f18f7f9076f9b4fe724aa445bc23a1.tar.bz2
gentoo-0e264bc426f18f7f9076f9b4fe724aa445bc23a1.zip
profiles: have media-video/mpv use luajit more thoroughly
tl;dr fixes RequiredUseDefaults, and also uses luajit on non-desktop mpv currently no plans to ever support >=lua5-3, and with lua5-1 being essentially unmaintained it's preferred to use the actively maintained luajit when possible. Because of this, wanted to straight up remove lua5-1 from COMPAT, but then luajit is not available on as many arches as lua5-1. So to pick luajit by default (against's profile defaults), there is two options: (1). package.use in profile with -lua5-1 luajit (2). mask lua5-1, force luajit And fortunately we don't need to worry about LUA_TARGETS, just SINGLE. Old situation is sub-optimal: - (1) is used in desktop profile only (should be all) - arches which don't support luajit have bad REQUIRED_USE defaults (should be inverted where needed) (2) has a big advantage, if users set their own default e.g. */* LUA_SINGLE_TARGET: -* lua5-4 Then luajit will still be forced and they do not need a package.use entry to emerge mpv. Downside is that if a user really want to use old lua5-1, then they need to mess with /etc/portage/profile. But generally I feel (2) is still better for the general user experience, and this commit does that. wrt old "lua" default, not needed in profile given IUSE=+lua default is in all mpv ebulds already (-sdl still makes sense). Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'profiles/targets')
-rw-r--r--profiles/targets/desktop/package.use9
1 files changed, 2 insertions, 7 deletions
diff --git a/profiles/targets/desktop/package.use b/profiles/targets/desktop/package.use
index 38ebc3ebc6fb..723ca5f21c49 100644
--- a/profiles/targets/desktop/package.use
+++ b/profiles/targets/desktop/package.use
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Alexey Sokolov <alexey+gentoo@asokolov.org> (2022-12-27)
@@ -57,14 +57,9 @@ kde-frameworks/kfilemetadata taglib
dev-lang/php -exif -truetype
# Ilya Tumaykin <itumaykin+gentoo@gmail.com> (2017-02-02)
-# Enable luajit for OSC and youtube-dl support by default.
# Override default +sdl from desktop profile and disable sdl outputs.
# These outputs are for systems without a proper audio/video support.
-# NOTE: Needs syncing to negate profile defaults if we decide
-# to keep this up.
-media-video/mpv lua -sdl
-media-video/mpv -lua_single_target_lua5-1
-media-video/mpv lua_single_target_luajit
+media-video/mpv -sdl
# Mike Gilbert <floppym@gentoo.org> (2017-01-04)
# Needed by x11-misc/xdg-utils.