meson: use join_paths consistently

With -Dsplit-usr=true, we set rootprefix to /. This leads to //lib/systemd or
//lib/udev for various dir variables. Using join_paths() avoids this.
This commit is contained in:
Michael Biebl 2017-04-13 10:30:56 -04:00 committed by Zbigniew Jędrzejewski-Szmek
parent 082ef2adbd
commit e17e5ba9bf
16 changed files with 110 additions and 110 deletions

View File

@ -24,5 +24,5 @@ if conf.get('ENABLE_HWDB', 0) == 1
install_dir : udevhwdbdir)
meson.add_install_script('sh', '-c',
mkdir_p.format(sysconfdir + '/udev/hwdb.d'))
mkdir_p.format(join_paths(sysconfdir, 'udev/hwdb.d')))
endif

View File

@ -52,7 +52,7 @@ foreach tuple : manpages
htmlaliases += [alias + '.html']
endforeach
mandirn = get_option('mandir') + '/man' + section
mandirn = join_paths(get_option('mandir'), 'man' + section)
have = condition == '' or conf.get(condition, 0) == 1
@ -74,7 +74,7 @@ foreach tuple : manpages
command : [xsltproc, '-o', '@OUTPUT0@'] + xsltproc_flags + [custom_html_xsl, '@INPUT@'],
depend_files : custom_entities_ent,
install : want_html,
install_dir : docdir + '/html')
install_dir : join_paths(docdir, 'html'))
html_pages += [p2]
source_xml_files += files(tuple[0] + '.xml')
@ -107,7 +107,7 @@ foreach tuple : [['systemd.directives', '7', systemd_directives_xml],
html = stem + '.html'
man = stem + '.' + section
mandirn = get_option('mandir') + '/man' + section
mandirn = join_paths(get_option('mandir'), 'man' + section)
p1 = custom_target(
man,
@ -124,7 +124,7 @@ foreach tuple : [['systemd.directives', '7', systemd_directives_xml],
output : html,
command : [xsltproc, '-o', '@OUTPUT0@'] + xsltproc_flags + [custom_html_xsl, '@INPUT@'],
install : want_html,
install_dir : docdir + '/html')
install_dir : join_paths(docdir, 'html'))
html_pages += [p2]
endforeach

View File

@ -66,118 +66,118 @@ if rootlibdir == ''
endif
# Dirs of external packages
pkgconfigdatadir = datadir + '/pkgconfig'
pkgconfiglibdir = libdir + '/pkgconfig'
polkitpolicydir = datadir + '/polkit-1/actions'
polkitrulesdir = datadir + '/polkit-1/rules.d'
polkitpkladir = localstatedir + '/lib/polkit-1/localauthority/10-vendor.d'
varlogdir = localstatedir + '/log'
xinitrcdir = sysconfdir + '/X11/xinit/xinitrc.d'
pkgconfigdatadir = join_paths(datadir, 'pkgconfig')
pkgconfiglibdir = join_paths(libdir, 'pkgconfig')
polkitpolicydir = join_paths(datadir, 'polkit-1/actions')
polkitrulesdir = join_paths(datadir, 'polkit-1/rules.d')
polkitpkladir = join_paths(localstatedir, 'lib/polkit-1/localauthority/10-vendor.d')
varlogdir = join_paths(localstatedir, 'log')
xinitrcdir = join_paths(sysconfdir, 'X11/xinit/xinitrc.d')
rpmmacrosdir = get_option('rpmmacrosdir')
# Our own paths
pkgdatadir = datadir + '/systemd'
environmentdir = prefixdir + '/lib/environment.d'
pkgsysconfdir = sysconfdir + '/systemd'
userunitdir = prefixdir + '/lib/systemd/user'
userpresetdir = prefixdir + '/lib/systemd/user-preset'
tmpfilesdir = prefixdir + '/lib/tmpfiles.d'
sysusersdir = prefixdir + '/lib/sysusers.d'
sysctldir = prefixdir + '/lib/sysctl.d'
binfmtdir = prefixdir + '/lib/binfmt.d'
modulesloaddir = prefixdir + '/lib/modules-load.d'
networkdir = rootprefixdir + '/lib/systemd/network'
pkgincludedir = includedir + '/systemd'
systemgeneratordir = rootlibexecdir + '/system-generators'
usergeneratordir = prefixdir + '/lib/systemd/user-generators'
systemenvgeneratordir = prefixdir + '/lib/systemd/system-environment-generators'
userenvgeneratordir = prefixdir + '/lib/systemd/user-environment-generators'
systemshutdowndir = rootlibexecdir + '/system-shutdown'
systemsleepdir = rootlibexecdir + '/system-sleep'
systemunitdir = rootprefixdir + '/lib/systemd/system'
systempresetdir = rootprefixdir + '/lib/systemd/system-preset'
udevlibexecdir = rootprefixdir + '/lib/udev'
udevhomedir = udevlibexecdir + ''
udevrulesdir = udevlibexecdir + '/rules.d'
udevhwdbdir = udevlibexecdir + '/hwdb.d'
catalogdir = prefixdir + '/lib/systemd/catalog'
kernelinstalldir = prefixdir + '/lib/kernel/install.d'
factorydir = datadir + '/factory'
docdir = datadir + '/doc/systemd'
bootlibdir = prefixdir + '/lib/systemd/boot/efi'
testsdir = prefixdir + '/lib/systemd/tests'
systemdstatedir = localstatedir + '/lib/systemd'
catalogstatedir = systemdstatedir + '/catalog'
randomseeddir = localstatedir + '/lib/systemd'
pkgdatadir = join_paths(datadir, 'systemd')
environmentdir = join_paths(prefixdir, 'lib/environment.d')
pkgsysconfdir = join_paths(sysconfdir, 'systemd')
userunitdir = join_paths(prefixdir, 'lib/systemd/user')
userpresetdir = join_paths(prefixdir, 'lib/systemd/user-preset')
tmpfilesdir = join_paths(prefixdir, 'lib/tmpfiles.d')
sysusersdir = join_paths(prefixdir, 'lib/sysusers.d')
sysctldir = join_paths(prefixdir, 'lib/sysctl.d')
binfmtdir = join_paths(prefixdir, 'lib/binfmt.d')
modulesloaddir = join_paths(prefixdir, 'lib/modules-load.d')
networkdir = join_paths(rootprefixdir, 'lib/systemd/network')
pkgincludedir = join_paths(includedir, 'systemd')
systemgeneratordir = join_paths(rootlibexecdir, 'system-generators')
usergeneratordir = join_paths(prefixdir, 'lib/systemd/user-generators')
systemenvgeneratordir = join_paths(prefixdir, 'lib/systemd/system-environment-generators')
userenvgeneratordir = join_paths(prefixdir, 'lib/systemd/user-environment-generators')
systemshutdowndir = join_paths(rootlibexecdir, 'system-shutdown')
systemsleepdir = join_paths(rootlibexecdir, 'system-sleep')
systemunitdir = join_paths(rootprefixdir, 'lib/systemd/system')
systempresetdir = join_paths(rootprefixdir, 'lib/systemd/system-preset')
udevlibexecdir = join_paths(rootprefixdir, 'lib/udev')
udevhomedir = udevlibexecdir
udevrulesdir = join_paths(udevlibexecdir, 'rules.d')
udevhwdbdir = join_paths(udevlibexecdir, 'hwdb.d')
catalogdir = join_paths(prefixdir, 'lib/systemd/catalog')
kernelinstalldir = join_paths(prefixdir, 'lib/kernel/install.d')
factorydir = join_paths(datadir, 'factory')
docdir = join_paths(datadir, 'doc/systemd')
bootlibdir = join_paths(prefixdir, 'lib/systemd/boot/efi')
testsdir = join_paths(prefixdir, 'lib/systemd/tests')
systemdstatedir = join_paths(localstatedir, 'lib/systemd')
catalogstatedir = join_paths(systemdstatedir, 'catalog')
randomseeddir = join_paths(localstatedir, 'lib/systemd')
dbuspolicydir = get_option('dbuspolicydir')
if dbuspolicydir == ''
dbuspolicydir = datadir + '/dbus-1/system.d'
dbuspolicydir = join_paths(datadir, 'dbus-1/system.d')
endif
dbussessionservicedir = get_option('dbussessionservicedir')
if dbussessionservicedir == ''
dbussessionservicedir = datadir + '/dbus-1/services'
dbussessionservicedir = join_paths(datadir, 'dbus-1/services')
endif
dbussystemservicedir = get_option('dbussystemservicedir')
if dbussystemservicedir == ''
dbussystemservicedir = datadir + '/dbus-1/system-services'
dbussystemservicedir = join_paths(datadir, 'dbus-1/system-services')
endif
pamlibdir = get_option('pamlibdir')
if pamlibdir == ''
pamlibdir = rootlibdir + '/security'
pamlibdir = join_paths(rootlibdir, 'security')
endif
pamconfdir = get_option('pamconfdir')
if pamconfdir == ''
pamconfdir = sysconfdir + '/pam.d'
pamconfdir = join_paths(sysconfdir, 'pam.d')
endif
conf.set_quoted('PKGSYSCONFDIR', pkgsysconfdir)
conf.set_quoted('SYSTEM_CONFIG_UNIT_PATH', pkgsysconfdir + '/system')
conf.set_quoted('SYSTEM_CONFIG_UNIT_PATH', join_paths(pkgsysconfdir, 'system'))
conf.set_quoted('SYSTEM_DATA_UNIT_PATH', systemunitdir)
conf.set_quoted('SYSTEM_SYSVINIT_PATH', sysvinit_path)
conf.set_quoted('SYSTEM_SYSVRCND_PATH', sysvrcnd_path)
conf.set_quoted('RC_LOCAL_SCRIPT_PATH_START', get_option('rc-local'))
conf.set_quoted('RC_LOCAL_SCRIPT_PATH_STOP', get_option('halt-local'))
conf.set_quoted('USER_CONFIG_UNIT_PATH', pkgsysconfdir + '/user')
conf.set_quoted('USER_CONFIG_UNIT_PATH', join_paths(pkgsysconfdir, 'user'))
conf.set_quoted('USER_DATA_UNIT_PATH', userunitdir)
conf.set_quoted('CERTIFICATE_ROOT', get_option('certificate-root'))
conf.set_quoted('CATALOG_DATABASE', catalogstatedir + '/database')
conf.set_quoted('SYSTEMD_CGROUP_AGENT_PATH', rootlibexecdir + '/systemd-cgroups-agent')
conf.set_quoted('SYSTEMD_BINARY_PATH', rootlibexecdir + '/systemd')
conf.set_quoted('SYSTEMD_FSCK_PATH', rootlibexecdir + '/systemd-fsck')
conf.set_quoted('SYSTEMD_SHUTDOWN_BINARY_PATH', rootlibexecdir + '/systemd-shutdown')
conf.set_quoted('SYSTEMD_SLEEP_BINARY_PATH', rootlibexecdir + '/systemd-sleep')
conf.set_quoted('SYSTEMCTL_BINARY_PATH', rootbindir + '/systemctl')
conf.set_quoted('SYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH', rootbindir + '/systemd-tty-ask-password-agent')
conf.set_quoted('SYSTEMD_STDIO_BRIDGE_BINARY_PATH', bindir + '/systemd-stdio-bridge')
conf.set_quoted('CATALOG_DATABASE', join_paths(catalogstatedir, 'database'))
conf.set_quoted('SYSTEMD_CGROUP_AGENT_PATH', join_paths(rootlibexecdir, 'systemd-cgroups-agent'))
conf.set_quoted('SYSTEMD_BINARY_PATH', join_paths(rootlibexecdir, 'systemd'))
conf.set_quoted('SYSTEMD_FSCK_PATH', join_paths(rootlibexecdir, 'systemd-fsck'))
conf.set_quoted('SYSTEMD_SHUTDOWN_BINARY_PATH', join_paths(rootlibexecdir, 'systemd-shutdown'))
conf.set_quoted('SYSTEMD_SLEEP_BINARY_PATH', join_paths(rootlibexecdir, 'systemd-sleep'))
conf.set_quoted('SYSTEMCTL_BINARY_PATH', join_paths(rootbindir, 'systemctl'))
conf.set_quoted('SYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH', join_paths(rootbindir, 'systemd-tty-ask-password-agent'))
conf.set_quoted('SYSTEMD_STDIO_BRIDGE_BINARY_PATH', join_paths(bindir, 'systemd-stdio-bridge'))
conf.set_quoted('ROOTPREFIX', rootprefixdir)
conf.set_quoted('RANDOM_SEED_DIR', randomseeddir)
conf.set_quoted('RANDOM_SEED', randomseeddir + '/random-seed')
conf.set_quoted('SYSTEMD_CRYPTSETUP_PATH', rootlibexecdir + '/systemd-cryptsetup')
conf.set_quoted('RANDOM_SEED', join_paths(randomseeddir, 'random-seed'))
conf.set_quoted('SYSTEMD_CRYPTSETUP_PATH', join_paths(rootlibexecdir, 'systemd-cryptsetup'))
conf.set_quoted('SYSTEM_GENERATOR_PATH', systemgeneratordir)
conf.set_quoted('USER_GENERATOR_PATH', usergeneratordir)
conf.set_quoted('SYSTEM_ENV_GENERATOR_PATH', systemenvgeneratordir)
conf.set_quoted('USER_ENV_GENERATOR_PATH', userenvgeneratordir)
conf.set_quoted('SYSTEM_SHUTDOWN_PATH', systemshutdowndir)
conf.set_quoted('SYSTEM_SLEEP_PATH', systemsleepdir)
conf.set_quoted('SYSTEMD_KBD_MODEL_MAP', pkgdatadir + '/kbd-model-map')
conf.set_quoted('SYSTEMD_LANGUAGE_FALLBACK_MAP', pkgdatadir + '/language-fallback-map')
conf.set_quoted('SYSTEMD_KBD_MODEL_MAP', join_paths(pkgdatadir, 'kbd-model-map'))
conf.set_quoted('SYSTEMD_LANGUAGE_FALLBACK_MAP', join_paths(pkgdatadir, 'language-fallback-map'))
conf.set_quoted('UDEVLIBEXECDIR', udevlibexecdir)
conf.set_quoted('POLKIT_AGENT_BINARY_PATH', bindir + '/pkttyagent')
conf.set_quoted('POLKIT_AGENT_BINARY_PATH', join_paths(bindir, 'pkttyagent'))
conf.set_quoted('LIBDIR', libdir)
conf.set_quoted('ROOTLIBDIR', rootlibdir)
conf.set_quoted('ROOTLIBEXECDIR', rootlibexecdir)
conf.set_quoted('BOOTLIBDIR', bootlibdir)
conf.set_quoted('SYSTEMD_PULL_PATH', rootlibexecdir + '/systemd-pull')
conf.set_quoted('SYSTEMD_IMPORT_PATH', rootlibexecdir + '/systemd-import')
conf.set_quoted('SYSTEMD_EXPORT_PATH', rootlibexecdir + '/systemd-export')
conf.set_quoted('VENDOR_KEYRING_PATH', rootlibexecdir + '/import-pubring.gpg')
conf.set_quoted('USER_KEYRING_PATH', pkgsysconfdir + '/import-pubring.gpg')
conf.set_quoted('DOCUMENT_ROOT', pkgdatadir + '/gatewayd')
conf.set_quoted('SYSTEMD_PULL_PATH', join_paths(rootlibexecdir, 'systemd-pull'))
conf.set_quoted('SYSTEMD_IMPORT_PATH', join_paths(rootlibexecdir, 'systemd-import'))
conf.set_quoted('SYSTEMD_EXPORT_PATH', join_paths(rootlibexecdir, 'systemd-export'))
conf.set_quoted('VENDOR_KEYRING_PATH', join_paths(rootlibexecdir, 'import-pubring.gpg'))
conf.set_quoted('USER_KEYRING_PATH', join_paths(pkgsysconfdir, 'import-pubring.gpg'))
conf.set_quoted('DOCUMENT_ROOT', join_paths(pkgdatadir, 'gatewayd'))
conf.set_quoted('ABS_BUILD_DIR', meson.build_root())
conf.set_quoted('ABS_SRC_DIR', meson.source_root())
@ -212,8 +212,8 @@ substs.set('systemshutdowndir', systemshutdowndir)
substs.set('systemsleepdir', systemsleepdir)
substs.set('VARLOGDIR', varlogdir)
substs.set('CERTIFICATEROOT', get_option('certificate-root'))
substs.set('SYSTEMCTL', rootbindir + '/systemctl')
substs.set('RANDOM_SEED', randomseeddir + '/random-seed')
substs.set('SYSTEMCTL', join_paths(rootbindir, 'systemctl'))
substs.set('RANDOM_SEED', join_paths(randomseeddir, 'random-seed'))
substs.set('SYSTEM_SYSVINIT_PATH', sysvinit_path)
substs.set('SYSTEM_SYSVRCND_PATH', sysvrcnd_path)
substs.set('RC_LOCAL_SCRIPT_PATH_START', get_option('rc-local'))
@ -1206,8 +1206,8 @@ if conf.get('ENABLE_ENVIRONMENT_D', 0) == 1
install_dir : userenvgeneratordir)
meson.add_install_script(meson_make_symlink,
sysconfdir + '/environment',
environmentdir + '/99-environment.conf')
join_paths(sysconfdir, 'environment'),
join_paths(environmentdir, '99-environment.conf'))
endif
if conf.get('ENABLE_HIBERNATE', 0) == 1
@ -1689,7 +1689,7 @@ if conf.get('ENABLE_BINFMT', 0) == 1
meson.add_install_script('sh', '-c',
mkdir_p.format(binfmtdir))
meson.add_install_script('sh', '-c',
mkdir_p.format(sysconfdir + '/binfmt.d'))
mkdir_p.format(join_paths(sysconfdir, 'binfmt.d')))
endif
if conf.get('ENABLE_VCONSOLE', 0) == 1
@ -1893,7 +1893,7 @@ executable('systemd-mount',
install : true)
meson.add_install_script(meson_make_symlink,
'systemd-mount', bindir + '/systemd-umount')
'systemd-mount', join_paths(bindir, 'systemd-umount'))
executable('systemd-run',
'src/run/run.c',
@ -2044,7 +2044,7 @@ if conf.get('HAVE_KMOD', 0) == 1
meson.add_install_script('sh', '-c',
mkdir_p.format(modulesloaddir))
meson.add_install_script('sh', '-c',
mkdir_p.format(sysconfdir + '/modules-load.d'))
mkdir_p.format(join_paths(sysconfdir, 'modules-load.d')))
endif
executable('systemd-nspawn',

View File

@ -8,5 +8,5 @@ if conf.get('ENABLE_NETWORKD', 0) == 1
install_dir : networkdir)
meson.add_install_script('sh', '-c',
mkdir_p.format(sysconfdir + '/systemd/network'))
mkdir_p.format(join_paths(sysconfdir, 'systemd/network')))
endif

View File

@ -8,7 +8,7 @@ i18n.gettext(meson.project_name())
intltool_merge = find_program('intltool-merge')
po_dir = meson.current_source_dir()
intltool_cache = meson.current_build_dir() + '/intltool-merge-cache'
intltool_cache = join_paths(meson.current_build_dir(), 'intltool-merge-cache')
intltool_command = [intltool_merge, '-x', '-u',
'-c', intltool_cache,
po_dir, '@INPUT@', '@OUTPUT@']

View File

@ -6,7 +6,7 @@ if bashcompletiondir == ''
if bash_completion.found()
bashcompletiondir = bash_completion.get_pkgconfig_variable('completionsdir')
else
bashcompletiondir = datadir + '/bash-completion/completions'
bashcompletiondir = join_paths(datadir, 'bash-completion/completions')
endif
message('bash completions: @0@'.format(bashcompletiondir))

View File

@ -2,7 +2,7 @@
zshcompletiondir = get_option('zshcompletiondir')
if zshcompletiondir == ''
zshcompletiondir = datadir + '/zsh/site-functions'
zshcompletiondir = join_paths(datadir, 'zsh/site-functions')
message('zsh completions: @0@'.format(zshcompletiondir))
endif

View File

@ -70,7 +70,7 @@ if have_gnu_efi
efi_ldsdir = get_option('efi-ldsdir')
if efi_ldsdir == ''
efi_ldsdir = efi_libdir + '/gnuefi'
efi_ldsdir = join_paths(efi_libdir, 'gnuefi')
endif
efi_incdir = get_option('efi-includedir')
@ -92,7 +92,7 @@ if have_gnu_efi
'-Wsign-compare',
'-Wno-missing-field-initializers',
'-isystem', efi_incdir,
'-isystem', efi_incdir + '/' + efi_arch,
'-isystem', join_paths(efi_incdir, efi_arch),
'-include', efi_config_h]
if efi_arch == 'x86_64'
compile_args += ['-mno-red-zone',

View File

@ -227,10 +227,10 @@ meson.add_install_script('sh', '-c', mkdir_p.format(systemgeneratordir))
meson.add_install_script('sh', '-c', mkdir_p.format(usergeneratordir))
meson.add_install_script('sh', '-c',
mkdir_p.format(pkgsysconfdir + '/system/multi-user.target.wants'))
mkdir_p.format(join_paths(pkgsysconfdir, 'system/multi-user.target.wants')))
meson.add_install_script('sh', '-c',
mkdir_p.format(pkgsysconfdir + '/system/getty.target.wants'))
mkdir_p.format(join_paths(pkgsysconfdir, 'system/getty.target.wants')))
meson.add_install_script('sh', '-c',
mkdir_p.format(pkgsysconfdir + '/user'))
mkdir_p.format(join_paths(pkgsysconfdir, 'user')))
meson.add_install_script('sh', '-c',
mkdir_p.format(sysconfdir + '/xdg/systemd'))
mkdir_p.format(join_paths(sysconfdir, 'xdg/systemd')))

View File

@ -42,7 +42,7 @@ if conf.get('ENABLE_REMOTE', 0) == 1 and conf.get('HAVE_MICROHTTPD', 0) == 1
endif
install_data('browse.html',
install_dir : pkgdatadir + '/gatewayd')
install_dir : join_paths(pkgdatadir, 'gatewayd'))
meson.add_install_script('sh', '-c',
mkdir_p.format('/var/log/journal/remote'))

View File

@ -10,4 +10,4 @@ install_data('50-depmod.install',
install_dir : kernelinstalldir)
meson.add_install_script('sh', '-c',
mkdir_p.format(sysconfdir + '/kernel/install.d'))
mkdir_p.format(join_paths(sysconfdir, 'kernel/install.d')))

View File

@ -26,8 +26,8 @@ endif
# If you know a way that allows the same variables to be used
# in sources list and concatenated to a string for test_env,
# let me know.
kbd_model_map = meson.current_source_dir() + '/kbd-model-map'
language_fallback_map = meson.current_source_dir() + '/language-fallback-map'
kbd_model_map = join_paths(meson.current_source_dir(), 'kbd-model-map')
language_fallback_map = join_paths(meson.current_source_dir(), 'language-fallback-map')
install_data('kbd-model-map',
'language-fallback-map',

View File

@ -161,7 +161,7 @@ executable('mtd_probe',
install_dir : udevlibexecdir)
install_data('udev.conf',
install_dir : sysconfdir + '/udev')
install_dir : join_paths(sysconfdir, 'udev'))
udev_pc = configure_file(
input : 'udev.pc.in',
@ -171,4 +171,4 @@ install_data(udev_pc,
install_dir : pkgconfigdatadir)
meson.add_install_script('sh', '-c',
mkdir_p.format(sysconfdir + '/udev/rules.d'))
mkdir_p.format(join_paths(sysconfdir, 'udev/rules.d')))

View File

@ -20,4 +20,4 @@ foreach file : in_files
endforeach
meson.add_install_script('sh', '-c',
mkdir_p.format(sysconfdir + '/sysctl.d'))
mkdir_p.format(join_paths(sysconfdir, 'sysctl.d')))

View File

@ -40,5 +40,5 @@ endforeach
if enable_tmpfiles
meson.add_install_script('sh', '-c',
mkdir_p.format(sysconfdir + '/tmpfiles.d'))
mkdir_p.format(join_paths(sysconfdir, 'tmpfiles.d')))
endif

View File

@ -32,7 +32,7 @@ units = [
['local-fs.target', ''],
['machine.slice', 'ENABLE_MACHINED'],
['machines.target', 'ENABLE_MACHINED',
pkgsysconfdir + '/system/multi-user.target.wants/'],
join_paths(pkgsysconfdir, 'system/multi-user.target.wants/')],
['multi-user.target', '',
'runlevel2.target runlevel3.target runlevel4.target'],
['network-online.target', ''],
@ -51,7 +51,7 @@ units = [
'runlevel6.target ctrl-alt-del.target'],
['remote-fs-pre.target', ''],
['remote-fs.target', '',
pkgsysconfdir + '/system/multi-user.target.wants/'],
join_paths(pkgsysconfdir, 'system/multi-user.target.wants/')],
['rescue.target', '',
'runlevel1.target'],
['rpcbind.target', ''],
@ -91,7 +91,7 @@ units = [
['systemd-journald.socket', '',
'sockets.target.wants/'],
['systemd-networkd.socket', '',
pkgsysconfdir + '/system/sockets.target.wants/'],
join_paths(pkgsysconfdir, 'system/sockets.target.wants/')],
['systemd-rfkill.socket', 'ENABLE_RFKILL'],
['systemd-tmpfiles-clean.timer', '',
'timers.target.wants/'],
@ -164,7 +164,7 @@ in_units = [
['systemd-modules-load.service', 'HAVE_KMOD',
'sysinit.target.wants/'],
['systemd-networkd-wait-online.service', 'ENABLE_NETWORKD',
pkgsysconfdir + '/system/network-online.target.wants/'],
join_paths(pkgsysconfdir, 'system/network-online.target.wants/')],
['systemd-nspawn@.service', ''],
['systemd-poweroff.service', ''],
['systemd-quotacheck.service', 'ENABLE_QUOTACHECK'],
@ -182,7 +182,7 @@ in_units = [
['systemd-timedated.service', 'ENABLE_TIMEDATED',
'dbus-org.freedesktop.timedate1.service'],
['systemd-timesyncd.service', 'ENABLE_TIMESYNCD',
pkgsysconfdir + '/system/sysinit.target.wants/'],
join_paths(pkgsysconfdir, 'system/sysinit.target.wants/')],
['systemd-tmpfiles-clean.service', 'ENABLE_TMPFILES'],
['systemd-tmpfiles-setup-dev.service', 'ENABLE_TMPFILES',
'sysinit.target.wants/'],
@ -208,7 +208,7 @@ in_units = [
m4_units = [
['getty@.service', '',
'autovt@.service ' +
pkgsysconfdir + '/system/getty.target.wants/getty@tty1.service'],
join_paths(pkgsysconfdir, 'system/getty.target.wants/getty@tty1.service')],
['serial-getty@.service', ''],
['tmp.mount', '',
'local-fs.target.wants/'],
@ -219,10 +219,10 @@ m4_in_units = [
['container-getty@.service', ''],
['systemd-networkd.service', 'ENABLE_NETWORKD',
'dbus-org.freedesktop.network1.service ' +
pkgsysconfdir + '/system/multi-user.target.wants/ '],
join_paths(pkgsysconfdir, 'system/multi-user.target.wants/')],
['systemd-resolved.service', 'ENABLE_RESOLVED',
'dbus-org.freedesktop.resolve1.service ' +
pkgsysconfdir + '/system/multi-user.target.wants/'],
join_paths(pkgsysconfdir, 'system/multi-user.target.wants/')],
['user@.service', ''],
]
@ -313,16 +313,16 @@ endforeach
############################################################
meson.add_install_script(meson_make_symlink,
pkgsysconfdir + '/user',
sysconfdir + '/xdg/systemd/user')
join_paths(pkgsysconfdir, 'user'),
join_paths(sysconfdir, 'xdg/systemd/user'))
meson.add_install_script(meson_make_symlink,
dbussystemservicedir + '/org.freedesktop.systemd1.service',
dbussessionservicedir + '/org.freedesktop.systemd1.service')
join_paths(dbussystemservicedir, 'org.freedesktop.systemd1.service'),
join_paths(dbussessionservicedir, 'org.freedesktop.systemd1.service'))
if conf.get('HAVE_SYSV_COMPAT', 0) == 1
foreach i : [1, 2, 3, 4, 5]
meson.add_install_script('sh', '-c',
mkdir_p
.format(systemunitdir + '/runlevel@0@.target.wants'.format(i)))
.format(join_paths(systemunitdir, 'runlevel@0@.target.wants'.format(i))))
endforeach
endif