build: deprecate launcher-logind

Deprecate launcher-logind and disable it by default.

launcher-libseat supports logind, so this shouldn't cause any
regression.

Signed-off-by: Simon Ser <contact@emersion.fr>
References: https://gitlab.freedesktop.org/wayland/weston/-/issues/488
This commit is contained in:
Simon Ser 2022-10-10 09:48:30 +02:00
parent ff459f0273
commit 722f211518
4 changed files with 10 additions and 7 deletions

View File

@ -283,6 +283,7 @@ aarch64-debian-container_prep:
-Dwerror=true
-Dtest-skip-is-failure=true
-Dlauncher-libseat=true
-Ddeprecated-launcher-logind=true
-Ddeprecated-color-management-static=true
-Ddeprecated-color-management-colord=true
after_script:

View File

@ -156,15 +156,15 @@ if get_option('backend-drm')
endif
systemd_dep = dependency('', required: false)
if get_option('launcher-logind')
if get_option('deprecated-launcher-logind')
systemd_dep = dependency('libsystemd', version: '>= 209', required: false)
if not systemd_dep.found()
error('logind support requires libsystemd >= 209. Or, you can use \'-Dlauncher-logind=false\'')
error('logind support requires libsystemd >= 209. Or, you can use \'-Ddeprecated-launcher-logind=false\'')
endif
dbus_dep = dependency('dbus-1', version: '>= 1.6', required: false)
if not dbus_dep.found()
error('logind support requires dbus-1 >= 1.6 which was not found. Or, you can use \'-Dlauncher-logind=false\'')
error('logind support requires dbus-1 >= 1.6 which was not found. Or, you can use \'-Ddeprecated-launcher-logind=false\'')
endif
config_h.set('HAVE_DBUS', '1')
@ -178,6 +178,8 @@ if get_option('launcher-logind')
dbus_dep,
systemd_dep,
]
warning('deprecated-launcher-logind is enabled. This will go away, see https://gitlab.freedesktop.org/wayland/weston/-/issues/488')
endif
if get_option('launcher-libseat')
libseat_dep = dependency('libseat', version: '>= 0.4')

View File

@ -27,7 +27,7 @@ else
error('Bad versions in meson.build: libweston_major is too low')
endif
if not (get_option('launcher-logind') or get_option('launcher-libseat'))
if not (get_option('deprecated-launcher-logind') or get_option('launcher-libseat'))
error('At least one launcher must be enabled')
endif

View File

@ -145,10 +145,10 @@ option(
)
option(
'launcher-logind',
'deprecated-launcher-logind',
type: 'boolean',
value: true,
description: 'Compositor: support systemd-logind D-Bus protocol'
value: false,
description: 'DEPRECATED: Compositor: support systemd-logind D-Bus protocol (superseded by launcher-libseat)'
)
option(