Changeset View
Changeset View
Standalone View
Standalone View
x11/gdm/files/patch-data_meson.build
- This file was added.
--- data/meson.build.orig 2022-01-12 14:15:56 UTC | |||||
+++ data/meson.build | |||||
@@ -164,41 +164,43 @@ else | |||||
service_config.set('PLYMOUTH_QUIT_SERVICE', '') | |||||
endif | |||||
-if get_option('systemdsystemunitdir') != '' | |||||
- systemd_systemunitdir = get_option('systemdsystemunitdir') | |||||
-else | |||||
- systemd_systemunitdir = systemd_dep.get_pkgconfig_variable('systemdsystemunitdir') | |||||
-endif | |||||
+if host_machine.system() == 'linux' | |||||
+ if get_option('systemdsystemunitdir') != '' | |||||
+ systemd_systemunitdir = get_option('systemdsystemunitdir') | |||||
+ else | |||||
+ systemd_systemunitdir = systemd_dep.get_pkgconfig_variable('systemdsystemunitdir') | |||||
+ endif | |||||
-if get_option('systemduserunitdir') != '' | |||||
- systemd_userunitdir = get_option('systemduserunitdir') | |||||
-else | |||||
- systemd_userunitdir = systemd_dep.get_pkgconfig_variable('systemduserunitdir', | |||||
- define_variable: ['prefix', get_option('prefix')]) | |||||
-endif | |||||
+ if get_option('systemduserunitdir') != '' | |||||
+ systemd_userunitdir = get_option('systemduserunitdir') | |||||
+ else | |||||
+ systemd_userunitdir = systemd_dep.get_pkgconfig_variable('systemduserunitdir', | |||||
+ define_variable: ['prefix', get_option('prefix')]) | |||||
+ endif | |||||
-configure_file( | |||||
- input: 'gdm.service.in', | |||||
- output: '@BASENAME@', | |||||
- configuration: service_config, | |||||
- install_dir: systemd_systemunitdir, | |||||
- format: 'cmake' | |||||
-) | |||||
+ configure_file( | |||||
+ input: 'gdm.service.in', | |||||
+ output: '@BASENAME@', | |||||
+ configuration: service_config, | |||||
+ install_dir: systemd_systemunitdir, | |||||
+ format: 'cmake' | |||||
+ ) | |||||
-gdm_gnome_session_wanted_targets = [] | |||||
-foreach component: gdm_gnome_user_session_wanted_components | |||||
- gdm_gnome_session_wanted_targets += 'Wants=@0@.target'.format(component) | |||||
-endforeach | |||||
+ gdm_gnome_session_wanted_targets = [] | |||||
+ foreach component: gdm_gnome_user_session_wanted_components | |||||
+ gdm_gnome_session_wanted_targets += 'Wants=@0@.target'.format(component) | |||||
+ endforeach | |||||
-configure_file( | |||||
- input: 'session.conf.in', | |||||
- output: 'session.conf', | |||||
- configuration: { | |||||
- 'requires_component': gdm_gnome_shell_component, | |||||
- 'wants_required_components': '\n'.join(gdm_gnome_session_wanted_targets), | |||||
- }, | |||||
- install_dir: systemd_userunitdir / 'gnome-session@gnome-login.target.d', | |||||
-) | |||||
+ configure_file( | |||||
+ input: 'session.conf.in', | |||||
+ output: 'session.conf', | |||||
+ configuration: { | |||||
+ 'requires_component': gdm_gnome_shell_component, | |||||
+ 'wants_required_components': '\n'.join(gdm_gnome_session_wanted_targets), | |||||
+ }, | |||||
+ install_dir: systemd_userunitdir / 'gnome-session@gnome-login.target.d', | |||||
+ ) | |||||
+endif | |||||
# XSession | |||||
if get_option('gdm-xsession') |