blob: 04db3a8324610a7c7ddabad7d40e64cf78ae91d0 [file] [log] [blame]
From 312c6967a660919a091cc2872ba2b1a173338180 Mon Sep 17 00:00:00 2001
From: Chris Morin <cmtm@google.com>
Date: Mon, 3 Dec 2018 17:10:42 -0800
Subject: [PATCH] only build/install journald
---
meson.build | 1621 +----------------------------
shell-completion/bash/meson.build | 7 +-
src/core/meson.build | 45 -
src/libudev/meson.build | 9 -
src/systemd/meson.build | 9 -
src/test/meson.build | 219 ----
6 files changed, 5 insertions(+), 1905 deletions(-)
diff --git a/meson.build b/meson.build
index 79195c9748..7afd6afaf1 100644
--- a/meson.build
+++ b/meson.build
@@ -1476,14 +1476,10 @@ add_project_arguments('-include', 'config.h', language : 'c')
generate_gperfs = find_program('tools/generate-gperfs.py')
-subdir('po')
-subdir('catalog')
subdir('src/systemd')
subdir('src/basic')
subdir('src/libsystemd')
-subdir('src/libsystemd-network')
subdir('src/journal')
-subdir('src/login')
libjournal_core = static_library(
'journal-core',
@@ -1547,127 +1543,10 @@ public_programs = []
subdir('src/libudev')
subdir('src/shared')
subdir('src/core')
-subdir('src/shutdown')
-subdir('src/udev')
-subdir('src/network')
-
-subdir('src/analyze')
-subdir('src/journal-remote')
-subdir('src/coredump')
-subdir('src/hostname')
-subdir('src/import')
-subdir('src/kernel-install')
-subdir('src/locale')
-subdir('src/machine')
-subdir('src/portable')
-subdir('src/nspawn')
-subdir('src/resolve')
-subdir('src/timedate')
-subdir('src/timesync')
-subdir('src/vconsole')
-subdir('src/boot/efi')
subdir('src/test')
-subdir('src/fuzz')
-subdir('rules')
-subdir('test')
-
############################################################
-# only static linking apart from libdl, to make sure that the
-# module is linked to all libraries that it uses.
-test_dlopen = executable(
- 'test-dlopen',
- test_dlopen_c,
- disable_mempool_c,
- include_directories : includes,
- link_with : [libbasic],
- dependencies : [libdl],
- build_by_default : want_tests != 'false')
-
-foreach tuple : [['myhostname', 'ENABLE_NSS_MYHOSTNAME'],
- ['systemd', 'ENABLE_NSS_SYSTEMD'],
- ['mymachines', 'ENABLE_NSS_MYMACHINES'],
- ['resolve', 'ENABLE_NSS_RESOLVE']]
-
- condition = tuple[1] == '' or conf.get(tuple[1]) == 1
- if condition
- module = tuple[0]
-
- sym = 'src/nss-@0@/nss-@0@.sym'.format(module)
- version_script_arg = join_paths(project_source_root, sym)
-
- nss = shared_library(
- 'nss_' + module,
- 'src/nss-@0@/nss-@0@.c'.format(module),
- disable_mempool_c,
- version : '2',
- include_directories : includes,
- # Note that we link NSS modules with '-z nodelete' so that mempools never get orphaned
- link_args : ['-Wl,-z,nodelete',
- '-shared',
- '-Wl,--version-script=' + version_script_arg],
- link_with : [libsystemd_static,
- libbasic],
- dependencies : [threads,
- librt],
- link_depends : sym,
- install : true,
- install_dir : rootlibdir)
-
- # We cannot use shared_module because it does not support version suffix.
- # Unfortunately shared_library insists on creating the symlink…
- meson.add_install_script('sh', '-c',
- 'rm $DESTDIR@0@/libnss_@1@.so'
- .format(rootlibdir, module))
-
- if want_tests != 'false'
- test('dlopen-nss_' + module,
- test_dlopen,
- # path to dlopen must include a slash
- args : nss.full_path())
- endif
- endif
-endforeach
-
-############################################################
-
-executable('systemd',
- systemd_sources,
- include_directories : includes,
- link_with : [libcore,
- libshared],
- dependencies : [versiondep,
- threads,
- librt,
- libseccomp,
- libselinux,
- libmount,
- libblkid],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-
-meson.add_install_script(meson_make_symlink,
- join_paths(rootlibexecdir, 'systemd'),
- join_paths(rootsbindir, 'init'))
-
-exe = executable('systemd-analyze',
- systemd_analyze_sources,
- include_directories : includes,
- link_with : [libcore,
- libshared],
- dependencies : [versiondep,
- threads,
- librt,
- libseccomp,
- libselinux,
- libmount,
- libblkid],
- install_rpath : rootlibexecdir,
- install : true)
-public_programs += exe
-
executable('systemd-journald',
systemd_journald_sources,
include_directories : includes,
@@ -1705,1103 +1584,6 @@ exe = executable('journalctl',
install_dir : rootbindir)
public_programs += exe
-executable('systemd-getty-generator',
- 'src/getty-generator/getty-generator.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : systemgeneratordir)
-
-executable('systemd-debug-generator',
- 'src/debug-generator/debug-generator.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : systemgeneratordir)
-
-executable('systemd-run-generator',
- 'src/run-generator/run-generator.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : systemgeneratordir)
-
-executable('systemd-fstab-generator',
- 'src/fstab-generator/fstab-generator.c',
- include_directories : includes,
- link_with : [libcore_shared,
- libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : systemgeneratordir)
-
-if conf.get('ENABLE_ENVIRONMENT_D') == 1
- executable('30-systemd-environment-d-generator',
- 'src/environment-d-generator/environment-d-generator.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : userenvgeneratordir)
-
- meson.add_install_script(meson_make_symlink,
- join_paths(sysconfdir, 'environment'),
- join_paths(environmentdir, '99-environment.conf'))
-endif
-
-if conf.get('ENABLE_HIBERNATE') == 1
- executable('systemd-hibernate-resume-generator',
- 'src/hibernate-resume/hibernate-resume-generator.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : systemgeneratordir)
-
- executable('systemd-hibernate-resume',
- 'src/hibernate-resume/hibernate-resume.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-endif
-
-if conf.get('HAVE_BLKID') == 1
- executable('systemd-gpt-auto-generator',
- 'src/gpt-auto-generator/gpt-auto-generator.c',
- 'src/shared/blkid-util.h',
- include_directories : includes,
- link_with : [libshared],
- dependencies : libblkid,
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : systemgeneratordir)
-
- exe = executable('systemd-dissect',
- 'src/dissect/dissect.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
- public_programs += exe
-endif
-
-if conf.get('ENABLE_RESOLVE') == 1
- executable('systemd-resolved',
- systemd_resolved_sources,
- include_directories : includes,
- link_with : [libshared,
- libbasic_gcrypt,
- libsystemd_resolve_core],
- dependencies : systemd_resolved_dependencies,
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-
- exe = executable('resolvectl',
- resolvectl_sources,
- include_directories : includes,
- link_with : [libshared,
- libbasic_gcrypt,
- libsystemd_resolve_core],
- dependencies : [threads,
- libgpg_error,
- libm,
- libidn],
- install_rpath : rootlibexecdir,
- install : true)
- public_programs += exe
-
- meson.add_install_script(meson_make_symlink,
- join_paths(bindir, 'resolvectl'),
- join_paths(rootsbindir, 'resolvconf'))
-
- meson.add_install_script(meson_make_symlink,
- join_paths(bindir, 'resolvectl'),
- join_paths(bindir, 'systemd-resolve'))
-endif
-
-if conf.get('ENABLE_LOGIND') == 1
- executable('systemd-logind',
- systemd_logind_sources,
- include_directories : includes,
- link_with : [liblogind_core,
- libshared],
- dependencies : [threads,
- libacl],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-
- exe = executable('loginctl',
- loginctl_sources,
- include_directories : includes,
- link_with : [libshared],
- dependencies : [threads,
- liblz4,
- libxz],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootbindir)
- public_programs += exe
-
- exe = executable('systemd-inhibit',
- 'src/login/inhibit.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootbindir)
- public_programs += exe
-
- if conf.get('HAVE_PAM') == 1
- version_script_arg = join_paths(project_source_root, pam_systemd_sym)
- pam_systemd = shared_library(
- 'pam_systemd',
- pam_systemd_c,
- name_prefix : '',
- include_directories : includes,
- link_args : ['-shared',
- '-Wl,--version-script=' + version_script_arg],
- link_with : [libsystemd_static,
- libshared_static],
- dependencies : [threads,
- libpam,
- libpam_misc],
- link_depends : pam_systemd_sym,
- install : true,
- install_dir : pamlibdir)
-
- if want_tests != 'false'
- test('dlopen-pam_systemd',
- test_dlopen,
- # path to dlopen must include a slash
- args : pam_systemd.full_path())
- endif
- endif
-
- executable('systemd-user-runtime-dir',
- user_runtime_dir_sources,
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-endif
-
-if conf.get('HAVE_PAM') == 1
- executable('systemd-user-sessions',
- 'src/user-sessions/user-sessions.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-endif
-
-if conf.get('ENABLE_EFI') == 1 and conf.get('HAVE_BLKID') == 1
- exe = executable('bootctl',
- 'src/boot/bootctl.c',
- include_directories : includes,
- link_with : [libshared],
- dependencies : [libblkid],
- install_rpath : rootlibexecdir,
- install : true)
- public_programs += exe
-
- executable('systemd-bless-boot',
- 'src/boot/bless-boot.c',
- include_directories : includes,
- link_with : [libshared],
- dependencies : [libblkid],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-
- executable('systemd-bless-boot-generator',
- 'src/boot/bless-boot-generator.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : systemgeneratordir)
-endif
-
-executable('systemd-boot-check-no-failures',
- 'src/boot/boot-check-no-failures.c',
- include_directories : includes,
- link_with : [libshared],
- dependencies : [libblkid],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-
-exe = executable('systemd-socket-activate', 'src/activate/activate.c',
- include_directories : includes,
- link_with : [libshared],
- dependencies : [threads],
- install_rpath : rootlibexecdir,
- install : true)
-public_programs += exe
-
-
-if get_option('link-systemctl-shared')
- systemctl_link_with = [libshared]
-else
- systemctl_link_with = [libsystemd_static,
- libshared_static,
- libjournal_client,
- libbasic_gcrypt]
-endif
-
-exe = executable('systemctl',
- 'src/systemctl/systemctl.c',
- 'src/systemctl/sysv-compat.h',
- 'src/systemctl/sysv-compat.c',
- include_directories : includes,
- link_with : systemctl_link_with,
- dependencies : [threads,
- libcap,
- libselinux,
- libxz,
- liblz4],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootbindir)
-public_programs += exe
-
-if conf.get('ENABLE_PORTABLED') == 1
- executable('systemd-portabled',
- systemd_portabled_sources,
- include_directories : includes,
- link_with : [libshared],
- dependencies : [threads],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-
- exe = executable('portablectl', 'src/portable/portablectl.c',
- include_directories : includes,
- link_with : [libshared],
- dependencies : [threads],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootbindir)
- public_programs += exe
-endif
-
-foreach alias : ['halt', 'poweroff', 'reboot', 'runlevel', 'shutdown', 'telinit']
- meson.add_install_script(meson_make_symlink,
- join_paths(rootbindir, 'systemctl'),
- join_paths(rootsbindir, alias))
-endforeach
-
-if conf.get('ENABLE_BACKLIGHT') == 1
- executable('systemd-backlight',
- 'src/backlight/backlight.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-endif
-
-if conf.get('ENABLE_RFKILL') == 1
- executable('systemd-rfkill',
- 'src/rfkill/rfkill.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-endif
-
-executable('systemd-system-update-generator',
- 'src/system-update-generator/system-update-generator.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : systemgeneratordir)
-
-if conf.get('HAVE_LIBCRYPTSETUP') == 1
- executable('systemd-cryptsetup',
- 'src/cryptsetup/cryptsetup.c',
- include_directories : includes,
- link_with : [libshared],
- dependencies : [libcryptsetup],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-
- executable('systemd-cryptsetup-generator',
- 'src/cryptsetup/cryptsetup-generator.c',
- include_directories : includes,
- link_with : [libshared],
- dependencies : [libcryptsetup],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : systemgeneratordir)
-
- executable('systemd-veritysetup',
- 'src/veritysetup/veritysetup.c',
- include_directories : includes,
- link_with : [libshared],
- dependencies : [libcryptsetup],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-
- executable('systemd-veritysetup-generator',
- 'src/veritysetup/veritysetup-generator.c',
- include_directories : includes,
- link_with : [libshared],
- dependencies : [libcryptsetup],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : systemgeneratordir)
-endif
-
-if conf.get('HAVE_SYSV_COMPAT') == 1
- executable('systemd-sysv-generator',
- 'src/sysv-generator/sysv-generator.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : systemgeneratordir)
-
- executable('systemd-rc-local-generator',
- 'src/rc-local-generator/rc-local-generator.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : systemgeneratordir)
-endif
-
-if conf.get('ENABLE_HOSTNAMED') == 1
- executable('systemd-hostnamed',
- 'src/hostname/hostnamed.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-
- exe = executable('hostnamectl',
- 'src/hostname/hostnamectl.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true)
- public_programs += exe
-endif
-
-if conf.get('ENABLE_LOCALED') == 1
- if conf.get('HAVE_XKBCOMMON') == 1
- # logind will load libxkbcommon.so dynamically on its own
- deps = [libdl]
- else
- deps = []
- endif
-
- executable('systemd-localed',
- systemd_localed_sources,
- include_directories : includes,
- link_with : [libshared],
- dependencies : deps,
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-
- exe = executable('localectl',
- localectl_sources,
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true)
- public_programs += exe
-endif
-
-if conf.get('ENABLE_TIMEDATED') == 1
- executable('systemd-timedated',
- 'src/timedate/timedated.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-endif
-
-if conf.get('ENABLE_TIMEDATECTL') == 1
- exe = executable('timedatectl',
- 'src/timedate/timedatectl.c',
- include_directories : includes,
- install_rpath : rootlibexecdir,
- link_with : [libshared],
- dependencies : [libm],
- install : true)
- public_programs += exe
-endif
-
-if conf.get('ENABLE_TIMESYNCD') == 1
- executable('systemd-timesyncd',
- systemd_timesyncd_sources,
- include_directories : includes,
- link_with : [libshared],
- dependencies : [threads,
- libm],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-
- executable('systemd-time-wait-sync',
- 'src/time-wait-sync/time-wait-sync.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-endif
-
-if conf.get('ENABLE_MACHINED') == 1
- executable('systemd-machined',
- systemd_machined_sources,
- include_directories : includes,
- link_with : [libmachine_core,
- libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-
- exe = executable('machinectl',
- 'src/machine/machinectl.c',
- include_directories : includes,
- link_with : [libshared],
- dependencies : [threads,
- libxz,
- liblz4],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootbindir)
- public_programs += exe
-endif
-
-if conf.get('ENABLE_IMPORTD') == 1
- executable('systemd-importd',
- systemd_importd_sources,
- include_directories : includes,
- link_with : [libshared],
- dependencies : [threads],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-
- systemd_pull = executable('systemd-pull',
- systemd_pull_sources,
- include_directories : includes,
- link_with : [libshared],
- dependencies : [versiondep,
- libcurl,
- libz,
- libbzip2,
- libxz,
- libgcrypt],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-
- systemd_import = executable('systemd-import',
- systemd_import_sources,
- include_directories : includes,
- link_with : [libshared],
- dependencies : [libcurl,
- libz,
- libbzip2,
- libxz],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-
- systemd_import_fs = executable('systemd-import-fs',
- systemd_import_fs_sources,
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-
- systemd_export = executable('systemd-export',
- systemd_export_sources,
- include_directories : includes,
- link_with : [libshared],
- dependencies : [libcurl,
- libz,
- libbzip2,
- libxz],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-
- public_programs += [systemd_pull, systemd_import, systemd_import_fs, systemd_export]
-endif
-
-if conf.get('ENABLE_REMOTE') == 1 and conf.get('HAVE_LIBCURL') == 1
- exe = executable('systemd-journal-upload',
- systemd_journal_upload_sources,
- include_directories : includes,
- link_with : [libshared],
- dependencies : [versiondep,
- threads,
- libcurl,
- libgnutls,
- libxz,
- liblz4],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
- public_programs += exe
-endif
-
-if conf.get('ENABLE_REMOTE') == 1 and conf.get('HAVE_MICROHTTPD') == 1
- s_j_remote = executable('systemd-journal-remote',
- systemd_journal_remote_sources,
- include_directories : includes,
- link_with : [libshared,
- libsystemd_journal_remote],
- dependencies : [threads,
- libmicrohttpd,
- libgnutls,
- libxz,
- liblz4],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-
- s_j_gatewayd = executable('systemd-journal-gatewayd',
- systemd_journal_gatewayd_sources,
- include_directories : includes,
- link_with : [libshared],
- dependencies : [threads,
- libmicrohttpd,
- libgnutls,
- libxz,
- liblz4],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
- public_programs += [s_j_remote, s_j_gatewayd]
-endif
-
-if conf.get('ENABLE_COREDUMP') == 1
- executable('systemd-coredump',
- systemd_coredump_sources,
- include_directories : includes,
- link_with : [libshared],
- dependencies : [threads,
- libacl,
- libdw,
- libxz,
- liblz4],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-
- exe = executable('coredumpctl',
- coredumpctl_sources,
- include_directories : includes,
- link_with : [libshared],
- dependencies : [threads,
- libxz,
- liblz4],
- install_rpath : rootlibexecdir,
- install : true)
- public_programs += exe
-endif
-
-if conf.get('ENABLE_BINFMT') == 1
- exe = executable('systemd-binfmt',
- 'src/binfmt/binfmt.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
- public_programs += exe
-
- meson.add_install_script('sh', '-c',
- mkdir_p.format(binfmtdir))
- meson.add_install_script('sh', '-c',
- mkdir_p.format(join_paths(sysconfdir, 'binfmt.d')))
-endif
-
-if conf.get('ENABLE_VCONSOLE') == 1
- executable('systemd-vconsole-setup',
- 'src/vconsole/vconsole-setup.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-endif
-
-if conf.get('ENABLE_RANDOMSEED') == 1
- executable('systemd-random-seed',
- 'src/random-seed/random-seed.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-endif
-
-if conf.get('ENABLE_FIRSTBOOT') == 1
- executable('systemd-firstboot',
- 'src/firstboot/firstboot.c',
- include_directories : includes,
- link_with : [libshared],
- dependencies : [libcrypt],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootbindir)
-endif
-
-executable('systemd-remount-fs',
- 'src/remount-fs/remount-fs.c',
- include_directories : includes,
- link_with : [libcore_shared,
- libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-
-executable('systemd-machine-id-setup',
- 'src/machine-id-setup/machine-id-setup-main.c',
- include_directories : includes,
- link_with : [libcore_shared,
- libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootbindir)
-
-executable('systemd-fsck',
- 'src/fsck/fsck.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-
-executable('systemd-growfs',
- 'src/partition/growfs.c',
- include_directories : includes,
- link_with : [libshared],
- dependencies : [libcryptsetup],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-
-executable('systemd-makefs',
- 'src/partition/makefs.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-
-executable('systemd-sleep',
- 'src/sleep/sleep.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-
-install_data('src/sleep/sleep.conf',
- install_dir : pkgsysconfdir)
-
-exe = executable('systemd-sysctl',
- 'src/sysctl/sysctl.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-public_programs += exe
-
-executable('systemd-ac-power',
- 'src/ac-power/ac-power.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-
-exe = executable('systemd-detect-virt',
- 'src/detect-virt/detect-virt.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true)
-public_programs += exe
-
-exe = executable('systemd-delta',
- 'src/delta/delta.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true)
-public_programs += exe
-
-exe = executable('systemd-escape',
- 'src/escape/escape.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootbindir)
-public_programs += exe
-
-exe = executable('systemd-notify',
- 'src/notify/notify.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootbindir)
-public_programs += exe
-
-executable('systemd-volatile-root',
- 'src/volatile-root/volatile-root.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-
-executable('systemd-cgroups-agent',
- 'src/cgroups-agent/cgroups-agent.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-
-exe = executable('systemd-id128',
- 'src/id128/id128.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true)
-public_programs += exe
-
-exe = executable('systemd-path',
- 'src/path/path.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true)
-public_programs += exe
-
-exe = executable('systemd-ask-password',
- 'src/ask-password/ask-password.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootbindir)
-public_programs += exe
-
-executable('systemd-reply-password',
- 'src/reply-password/reply-password.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-
-exe = executable('systemd-tty-ask-password-agent',
- 'src/tty-ask-password-agent/tty-ask-password-agent.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootbindir)
-public_programs += exe
-
-exe = executable('systemd-cgls',
- 'src/cgls/cgls.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true)
-public_programs += exe
-
-exe = executable('systemd-cgtop',
- 'src/cgtop/cgtop.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true)
-public_programs += exe
-
-executable('systemd-initctl',
- 'src/initctl/initctl.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-
-exe = executable('systemd-mount',
- 'src/mount/mount-tool.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true)
-public_programs += exe
-
-meson.add_install_script(meson_make_symlink,
- 'systemd-mount', join_paths(bindir, 'systemd-umount'))
-
-exe = executable('systemd-run',
- 'src/run/run.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true)
-public_programs += exe
-
-exe = executable('systemd-stdio-bridge',
- 'src/stdio-bridge/stdio-bridge.c',
- include_directories : includes,
- link_with : [libshared],
- dependencies : [versiondep],
- install_rpath : rootlibexecdir,
- install : true)
-public_programs += exe
-
-exe = executable('busctl',
- 'src/busctl/busctl.c',
- 'src/busctl/busctl-introspect.c',
- 'src/busctl/busctl-introspect.h',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true)
-public_programs += exe
-
-if conf.get('ENABLE_SYSUSERS') == 1
- exe = executable('systemd-sysusers',
- 'src/sysusers/sysusers.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootbindir)
- public_programs += exe
-endif
-
-if conf.get('ENABLE_TMPFILES') == 1
- exe = executable('systemd-tmpfiles',
- 'src/tmpfiles/tmpfiles.c',
- include_directories : includes,
- link_with : [libshared],
- dependencies : [libacl],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootbindir)
- public_programs += exe
-
- if want_tests != 'false'
- test('test-systemd-tmpfiles',
- test_systemd_tmpfiles_py,
- # https://github.com/mesonbuild/meson/issues/2681
- args : exe.full_path())
- endif
-endif
-
-if conf.get('ENABLE_HWDB') == 1
- exe = executable('systemd-hwdb',
- 'src/hwdb/hwdb.c',
- 'src/libsystemd/sd-hwdb/hwdb-internal.h',
- include_directories : includes,
- link_with : [libudev_static],
- install_rpath : udev_rpath,
- install : true,
- install_dir : rootbindir)
- public_programs += exe
-endif
-
-if conf.get('ENABLE_QUOTACHECK') == 1
- executable('systemd-quotacheck',
- 'src/quotacheck/quotacheck.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-endif
-
-exe = executable('systemd-socket-proxyd',
- 'src/socket-proxy/socket-proxyd.c',
- include_directories : includes,
- link_with : [libshared],
- dependencies : [threads],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-public_programs += exe
-
-exe = executable('systemd-udevd',
- systemd_udevd_sources,
- include_directories : includes,
- c_args : '-DLOG_REALM=LOG_REALM_UDEV',
- link_with : [libudev_core,
- libsystemd_network,
- libudev_static],
- dependencies : [versiondep,
- threads,
- libkmod,
- libidn,
- libacl,
- libblkid],
- install_rpath : udev_rpath,
- install : true,
- install_dir : rootlibexecdir)
-public_programs += exe
-
-exe = executable('udevadm',
- udevadm_sources,
- c_args : '-DLOG_REALM=LOG_REALM_UDEV',
- include_directories : includes,
- link_with : [libudev_core,
- libsystemd_network,
- libudev_static],
- dependencies : [versiondep,
- threads,
- libkmod,
- libidn,
- libacl,
- libblkid],
- install_rpath : udev_rpath,
- install : true,
- install_dir : rootbindir)
-public_programs += exe
-
-executable('systemd-shutdown',
- systemd_shutdown_sources,
- include_directories : includes,
- link_with : [libcore_shared,
- libshared],
- dependencies : [libmount],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-
-executable('systemd-update-done',
- 'src/update-done/update-done.c',
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-
-executable('systemd-update-utmp',
- 'src/update-utmp/update-utmp.c',
- include_directories : includes,
- link_with : [libshared],
- dependencies : [libaudit],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-
-if conf.get('HAVE_KMOD') == 1
- executable('systemd-modules-load',
- 'src/modules-load/modules-load.c',
- include_directories : includes,
- link_with : [libshared],
- dependencies : [libkmod],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-
- meson.add_install_script('sh', '-c',
- mkdir_p.format(modulesloaddir))
- meson.add_install_script('sh', '-c',
- mkdir_p.format(join_paths(sysconfdir, 'modules-load.d')))
-endif
-
-exe = executable('systemd-nspawn',
- systemd_nspawn_sources,
- include_directories : includes,
- link_with : [libcore_shared,
- libnspawn_core,
- libshared],
- dependencies : [libblkid,
- libseccomp],
- install_rpath : rootlibexecdir,
- install : true)
-public_programs += exe
-
-if conf.get('ENABLE_NETWORKD') == 1
- executable('systemd-networkd',
- systemd_networkd_sources,
- include_directories : includes,
- link_with : [libnetworkd_core,
- libsystemd_network,
- libudev_static,
- libshared],
- dependencies : [threads],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-
- executable('systemd-networkd-wait-online',
- systemd_networkd_wait_online_sources,
- include_directories : includes,
- link_with : [libnetworkd_core,
- libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-
- exe = executable('networkctl',
- networkctl_sources,
- include_directories : includes,
- link_with : [libsystemd_network,
- libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootbindir)
- public_programs += exe
-endif
-
-executable('systemd-sulogin-shell',
- ['src/sulogin-shell/sulogin-shell.c'],
- include_directories : includes,
- link_with : [libshared],
- install_rpath : rootlibexecdir,
- install : true,
- install_dir : rootlibexecdir)
-
-############################################################
-
-custom_target(
- 'systemd-runtest.env',
- output : 'systemd-runtest.env',
- command : ['sh', '-c', '{ ' +
- 'echo SYSTEMD_TEST_DATA=@0@; '.format(join_paths(project_source_root, 'test')) +
- 'echo SYSTEMD_CATALOG_DIR=@0@; '.format(join_paths(meson.current_build_dir(), 'catalog')) +
- '} >@OUTPUT@'],
- build_by_default : true)
-
foreach tuple : tests
sources = tuple[0]
link_with = tuple[1].length() > 0 ? tuple[1] : [libshared]
@@ -2817,8 +1599,9 @@ foreach tuple : tests
timeout = type.split('=')[1].to_int()
type = ''
endif
-
- if condition == '' or conf.get(condition) == 1
+ if want_tests == 'false'
+ message('Not compiling @0@ because tests is set to false'.format(name))
+ elif condition == '' or conf.get(condition) == 1
exe = executable(
name,
sources,
@@ -2827,7 +1610,6 @@ foreach tuple : tests
dependencies : [versiondep,
dependencies],
c_args : defs,
- build_by_default : want_tests != 'false',
install_rpath : rootlibexecdir,
install : install_tests,
install_dir : join_paths(testsdir, type))
@@ -2836,7 +1618,7 @@ foreach tuple : tests
message('@0@ is a manual test'.format(name))
elif type == 'unsafe' and want_tests != 'unsafe'
message('@0@ is an unsafe test'.format(name))
- elif want_tests != 'false'
+ else
test(name, exe,
env : test_env,
timeout : timeout)
@@ -2846,193 +1628,7 @@ foreach tuple : tests
endif
endforeach
-exe = executable(
- 'test-libsystemd-sym',
- test_libsystemd_sym_c,
- include_directories : includes,
- link_with : [libsystemd],
- build_by_default : want_tests != 'false',
- install : install_tests,
- install_dir : testsdir)
-if want_tests != 'false'
- test('test-libsystemd-sym', exe)
-endif
-
-exe = executable(
- 'test-libsystemd-static-sym',
- test_libsystemd_sym_c,
- include_directories : includes,
- link_with : [install_libsystemd_static],
- dependencies : [threads], # threads is already included in dependencies on the library,
- # but does not seem to get propagated. Add here as a work-around.
- build_by_default : want_tests != 'false' and static_libsystemd_pic,
- install : install_tests and static_libsystemd_pic,
- install_dir : testsdir)
-if want_tests != 'false' and static_libsystemd_pic
- test('test-libsystemd-static-sym', exe)
-endif
-
-exe = executable(
- 'test-libudev-sym',
- test_libudev_sym_c,
- include_directories : includes,
- c_args : '-Wno-deprecated-declarations',
- link_with : [libudev],
- build_by_default : want_tests != 'false',
- install : install_tests,
- install_dir : testsdir)
-if want_tests != 'false'
- test('test-libudev-sym', exe)
-endif
-
-exe = executable(
- 'test-libudev-static-sym',
- test_libudev_sym_c,
- include_directories : includes,
- c_args : '-Wno-deprecated-declarations',
- link_with : [install_libudev_static],
- build_by_default : want_tests != 'false' and static_libudev_pic,
- install : install_tests and static_libudev_pic,
- install_dir : testsdir)
-if want_tests != 'false' and static_libudev_pic
- test('test-libudev-static-sym', exe)
-endif
-
-############################################################
-
-fuzzer_exes = []
-
-if get_option('tests') != 'false'
-foreach tuple : fuzzers
- sources = tuple[0]
- link_with = tuple[1].length() > 0 ? tuple[1] : [libshared]
- dependencies = tuple[2]
- defs = tuple.length() >= 4 ? tuple[3] : []
- incs = tuple.length() >= 5 ? tuple[4] : includes
-
- if fuzzer_build
- dependencies += fuzzing_engine
- else
- sources += 'src/fuzz/fuzz-main.c'
- endif
-
- name = sources[0].split('/')[-1].split('.')[0]
-
- fuzzer_exes += executable(
- name,
- sources,
- include_directories : [incs, include_directories('src/fuzz')],
- link_with : link_with,
- dependencies : dependencies,
- c_args : defs,
- install : false)
-endforeach
-endif
-
-run_target('fuzzers',
- depends : fuzzer_exes,
- command : ['true'])
-
-############################################################
-
-make_directive_index_py = find_program('tools/make-directive-index.py')
-make_man_index_py = find_program('tools/make-man-index.py')
-xml_helper_py = find_program('tools/xml_helper.py')
-hwdb_update_sh = find_program('tools/meson-hwdb-update.sh')
-
-subdir('units')
-subdir('sysctl.d')
-subdir('sysusers.d')
-subdir('tmpfiles.d')
-subdir('presets')
-subdir('hwdb')
-subdir('network')
-subdir('man')
subdir('shell-completion/bash')
-subdir('shell-completion/zsh')
-subdir('docs/sysvinit')
-subdir('docs/var-log')
-
-install_subdir('factory/etc',
- install_dir : factorydir)
-
-install_data('xorg/50-systemd-user.sh',
- install_dir : xinitrcdir)
-install_data('modprobe.d/systemd.conf',
- install_dir : modprobedir)
-install_data('LICENSE.GPL2',
- 'LICENSE.LGPL2.1',
- 'NEWS',
- 'README',
- 'docs/CODING_STYLE.md',
- 'docs/DISTRO_PORTING.md',
- 'docs/ENVIRONMENT.md',
- 'docs/HACKING.md',
- 'docs/TRANSIENT-SETTINGS.md',
- 'docs/TRANSLATORS.md',
- 'docs/UIDS-GIDS.md',
- 'src/libsystemd/sd-bus/GVARIANT-SERIALIZATION',
- install_dir : docdir)
-
-meson.add_install_script('sh', '-c', mkdir_p.format(systemdstatedir))
-meson.add_install_script('sh', '-c', 'touch $DESTDIR@0@'.format(prefixdir))
-
-############################################################
-
-meson_check_help = find_program('tools/meson-check-help.sh')
-
-foreach exec : public_programs
- name = exec.full_path().split('/')[-1]
- if want_tests != 'false'
- test('check-help-' + name,
- meson_check_help,
- args : exec.full_path())
- endif
-endforeach
-
-############################################################
-
-# Enable tests for all supported sanitizers
-foreach tuple : sanitizers
- sanitizer = tuple[0]
- build = tuple[1]
-
- if cc.has_link_argument('-fsanitize=@0@'.format(sanitizer))
- prev = ''
- foreach p : fuzz_regression_tests
- b = p.split('/')[-2]
- c = p.split('/')[-1]
-
- name = '@0@:@1@'.format(b, sanitizer)
-
- if name != prev
- if want_tests == 'false'
- message('Not compiling @0@ because tests is set to false'.format(name))
- elif slow_tests
- exe = custom_target(
- name,
- output : name,
- depends : build,
- command : [env, 'ln', '-fs',
- join_paths(build.full_path(), b),
- '@OUTPUT@'],
- build_by_default : true)
- else
- message('Not compiling @0@ because slow-tests is set to false'.format(name))
- endif
- endif
- prev = name
-
- if want_tests != 'false' and slow_tests
- test('@0@:@1@:@2@'.format(b, c, sanitizer),
- env,
- args : [exe.full_path(),
- join_paths(project_source_root, p)])
- endif
- endforeach
- endif
-endforeach
-
############################################################
@@ -3078,212 +1674,3 @@ if git.found()
'--prefix', 'systemd-@0@/'.format(git_head),
'HEAD'])
endif
-
-############################################################
-
-meson_check_api_docs_sh = find_program('tools/meson-check-api-docs.sh')
-run_target(
- 'check-api-docs',
- depends : [man, libsystemd, libudev],
- command : [meson_check_api_docs_sh, libsystemd.full_path(), libudev.full_path()])
-
-############################################################
-
-status = [
- '@0@ @1@'.format(meson.project_name(), meson.project_version()),
-
- 'split /usr: @0@'.format(split_usr),
- 'split bin-sbin: @0@'.format(split_bin),
- 'prefix directory: @0@'.format(prefixdir),
- 'rootprefix directory: @0@'.format(rootprefixdir),
- 'sysconf directory: @0@'.format(sysconfdir),
- 'include directory: @0@'.format(includedir),
- 'lib directory: @0@'.format(libdir),
- 'rootlib directory: @0@'.format(rootlibdir),
- 'SysV init scripts: @0@'.format(sysvinit_path),
- 'SysV rc?.d directories: @0@'.format(sysvrcnd_path),
- 'PAM modules directory: @0@'.format(pamlibdir),
- 'PAM configuration directory: @0@'.format(pamconfdir),
- 'RPM macros directory: @0@'.format(rpmmacrosdir),
- 'modprobe.d directory: @0@'.format(modprobedir),
- 'D-Bus policy directory: @0@'.format(dbuspolicydir),
- 'D-Bus session directory: @0@'.format(dbussessionservicedir),
- 'D-Bus system directory: @0@'.format(dbussystemservicedir),
- 'bash completions directory: @0@'.format(bashcompletiondir),
- 'zsh completions directory: @0@'.format(zshcompletiondir),
- 'extra start script: @0@'.format(get_option('rc-local')),
- 'extra stop script: @0@'.format(get_option('halt-local')),
- 'debug shell: @0@ @ @1@'.format(get_option('debug-shell'),
- get_option('debug-tty')),
- 'TTY GID: @0@'.format(tty_gid),
- 'users GID: @0@'.format(substs.get('USERS_GID')),
- 'maximum system UID: @0@'.format(system_uid_max),
- 'maximum system GID: @0@'.format(system_gid_max),
- 'minimum dynamic UID: @0@'.format(dynamic_uid_min),
- 'maximum dynamic UID: @0@'.format(dynamic_uid_max),
- 'minimum container UID base: @0@'.format(container_uid_base_min),
- 'maximum container UID base: @0@'.format(container_uid_base_max),
- '/dev/kvm access mode: @0@'.format(get_option('dev-kvm-mode')),
- 'render group access mode: @0@'.format(get_option('group-render-mode')),
- 'certificate root directory: @0@'.format(get_option('certificate-root')),
- 'support URL: @0@'.format(support_url),
- 'nobody user name: @0@'.format(nobody_user),
- 'nobody group name: @0@'.format(nobody_group),
- 'fallback hostname: @0@'.format(get_option('fallback-hostname')),
- 'symbolic gateway hostnames: @0@'.format(', '.join(gateway_hostnames)),
-
- 'default DNSSEC mode: @0@'.format(default_dnssec),
- 'default DNS-over-TLS mode: @0@'.format(default_dns_over_tls),
- 'default cgroup hierarchy: @0@'.format(default_hierarchy),
- 'default net.naming-scheme setting: @0@'.format(default_net_naming_scheme),
- 'default KillUserProcesses setting: @0@'.format(kill_user_processes),
- 'default locale: @0@'.format(default_locale)]
-
-alt_dns_servers = '\n '.join(dns_servers.split(' '))
-alt_ntp_servers = '\n '.join(ntp_servers.split(' '))
-status += [
- 'default DNS servers: @0@'.format(alt_dns_servers),
- 'default NTP servers: @0@'.format(alt_ntp_servers)]
-
-alt_time_epoch = run_command('date', '-Is', '-u', '-d',
- '@@0@'.format(time_epoch)).stdout().strip()
-status += [
- 'time epoch: @0@ (@1@)'.format(time_epoch, alt_time_epoch)]
-
-status += [
- 'static libsystemd: @0@'.format(static_libsystemd),
- 'static libudev: @0@'.format(static_libudev)]
-
-# TODO:
-# CFLAGS: ${OUR_CFLAGS} ${CFLAGS}
-# CPPFLAGS: ${OUR_CPPFLAGS} ${CPPFLAGS}
-# LDFLAGS: ${OUR_LDFLAGS} ${LDFLAGS}
-
-if conf.get('ENABLE_EFI') == 1
- status += 'efi arch: @0@'.format(efi_arch)
-
- if have_gnu_efi
- status += [
- 'EFI machine type: @0@'.format(EFI_MACHINE_TYPE_NAME),
- 'EFI CC @0@'.format(' '.join(efi_cc)),
- 'EFI lib directory: @0@'.format(efi_libdir),
- 'EFI lds directory: @0@'.format(efi_ldsdir),
- 'EFI include directory: @0@'.format(efi_incdir)]
- endif
-endif
-
-found = []
-missing = []
-
-foreach tuple : [
- ['libcryptsetup'],
- ['PAM'],
- ['AUDIT'],
- ['IMA'],
- ['AppArmor'],
- ['SELinux'],
- ['SECCOMP'],
- ['SMACK'],
- ['zlib'],
- ['xz'],
- ['lz4'],
- ['bzip2'],
- ['ACL'],
- ['gcrypt'],
- ['qrencode'],
- ['microhttpd'],
- ['gnutls'],
- ['openssl'],
- ['libcurl'],
- ['idn'],
- ['libidn2'],
- ['libidn'],
- ['libiptc'],
- ['elfutils'],
- ['binfmt'],
- ['vconsole'],
- ['quotacheck'],
- ['tmpfiles'],
- ['environment.d'],
- ['sysusers'],
- ['firstboot'],
- ['randomseed'],
- ['backlight'],
- ['rfkill'],
- ['logind'],
- ['machined'],
- ['portabled'],
- ['importd'],
- ['hostnamed'],
- ['timedated'],
- ['timesyncd'],
- ['localed'],
- ['networkd'],
- ['resolve'],
- ['DNS-over-TLS(gnutls)', conf.get('DNS_OVER_TLS_USE_GNUTLS') == 1],
- ['DNS-over-TLS(openssl)', conf.get('DNS_OVER_TLS_USE_OPENSSL') == 1],
- ['coredump'],
- ['polkit'],
- ['legacy pkla', install_polkit_pkla],
- ['efi'],
- ['gnu-efi', have_gnu_efi],
- ['kmod'],
- ['xkbcommon'],
- ['pcre2'],
- ['blkid'],
- ['dbus'],
- ['glib'],
- ['nss-myhostname'],
- ['nss-mymachines'],
- ['nss-resolve'],
- ['nss-systemd'],
- ['hwdb'],
- ['tpm'],
- ['man pages', want_man],
- ['html pages', want_html],
- ['man page indices', want_man and have_lxml],
- ['SysV compat'],
- ['utmp'],
- ['ldconfig'],
- ['hibernate'],
- ['adm group', get_option('adm-group')],
- ['wheel group', get_option('wheel-group')],
- ['gshadow'],
- ['debug hashmap'],
- ['debug mmap cache'],
- ['debug siphash'],
- ['debug udev'],
- ['valgrind', conf.get('VALGRIND') == 1],
- ['trace logging', conf.get('LOG_TRACE') == 1],
- ['link-udev-shared', get_option('link-udev-shared')],
- ['link-systemctl-shared', get_option('link-systemctl-shared')],
-]
-
- if tuple.length() >= 2
- cond = tuple[1]
- else
- ident1 = 'HAVE_' + tuple[0].underscorify().to_upper()
- ident2 = 'ENABLE_' + tuple[0].underscorify().to_upper()
- cond = conf.get(ident1, 0) == 1 or conf.get(ident2, 0) == 1
- endif
- if cond
- found += tuple[0]
- else
- missing += tuple[0]
- endif
-endforeach
-
-status += [
- '',
- 'enabled features: @0@'.format(', '.join(found)),
- '',
- 'disabled features: @0@'.format(', '.join(missing)),
- '']
-message('\n '.join(status))
-
-if rootprefixdir != rootprefix_default
- warning('\n' +
- 'Note that the installation prefix was changed to "@0@".\n'.format(rootprefixdir) +
- 'systemd used fixed names for unit file directories and other paths, so anything\n' +
- 'except the default ("@0@") is strongly discouraged.'.format(rootprefix_default))
-endif
diff --git a/shell-completion/bash/meson.build b/shell-completion/bash/meson.build
index 0d3022b1e9..31f903e1d1 100644
--- a/shell-completion/bash/meson.build
+++ b/shell-completion/bash/meson.build
@@ -43,10 +43,5 @@ if bashcompletiondir != 'no'
['timedatectl', 'ENABLE_TIMEDATED'],
]
- foreach item : items
- if item[1] == '' or conf.get(item[1]) == 1
- install_data(item[0],
- install_dir : bashcompletiondir)
- endif
- endforeach
+ install_data('journalctl', install_dir : bashcompletiondir)
endif
diff --git a/src/core/meson.build b/src/core/meson.build
index 86ab35d818..a1cb5f985d 100644
--- a/src/core/meson.build
+++ b/src/core/meson.build
@@ -175,48 +175,3 @@ libcore = static_library(
libmount])
systemd_sources = files('main.c')
-
-in_files = [['macros.systemd', rpmmacrosdir],
- ['system.conf', pkgsysconfdir],
- ['systemd.pc', pkgconfigdatadir],
- ['triggers.systemd', '']]
-
-foreach item : in_files
- file = item[0]
- dir = item[1]
-
- configure_file(
- input : file + '.in',
- output : file,
- configuration : substs,
- install_dir : dir == 'no' ? '' : dir)
-endforeach
-
-install_data('org.freedesktop.systemd1.conf',
- install_dir : dbuspolicydir)
-install_data('org.freedesktop.systemd1.service',
- install_dir : dbussystemservicedir)
-
-policy = configure_file(
- input : 'org.freedesktop.systemd1.policy.in',
- output : 'org.freedesktop.systemd1.policy',
- configuration : substs)
-install_data(policy,
- install_dir : polkitpolicydir)
-
-install_data('user.conf',
- install_dir : pkgsysconfdir)
-
-meson.add_install_script('sh', '-c', mkdir_p.format(systemshutdowndir))
-meson.add_install_script('sh', '-c', mkdir_p.format(systemsleepdir))
-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(join_paths(pkgsysconfdir, 'system/multi-user.target.wants')))
-meson.add_install_script('sh', '-c',
- mkdir_p.format(join_paths(pkgsysconfdir, 'system/getty.target.wants')))
-meson.add_install_script('sh', '-c',
- mkdir_p.format(join_paths(pkgsysconfdir, 'user')))
-meson.add_install_script('sh', '-c',
- mkdir_p.format(join_paths(sysconfdir, 'xdg/systemd')))
diff --git a/src/libudev/meson.build b/src/libudev/meson.build
index 88189748d3..b6caf0da0b 100644
--- a/src/libudev/meson.build
+++ b/src/libudev/meson.build
@@ -18,12 +18,3 @@ libudev_sources = files('''
libudev_sym = files('libudev.sym')
libudev_sym_path = meson.current_source_dir() + '/libudev.sym'
-
-install_headers('libudev.h')
-libudev_h_path = '@0@/libudev.h'.format(meson.current_source_dir())
-
-configure_file(
- input : 'libudev.pc.in',
- output : 'libudev.pc',
- configuration : substs,
- install_dir : pkgconfiglibdir == 'no' ? '' : pkgconfiglibdir)
diff --git a/src/systemd/meson.build b/src/systemd/meson.build
index 75c48b07a5..4c8269cfc7 100644
--- a/src/systemd/meson.build
+++ b/src/systemd/meson.build
@@ -1,17 +1,8 @@
# SPDX-License-Identifier: LGPL-2.1+
_systemd_headers = '''
- sd-bus.h
- sd-bus-protocol.h
- sd-bus-vtable.h
- sd-daemon.h
- sd-device.h
- sd-event.h
- sd-hwdb.h
sd-id128.h
sd-journal.h
- sd-login.h
- sd-messages.h
'''.split()
# https://github.com/mesonbuild/meson/issues/1633
diff --git a/src/test/meson.build b/src/test/meson.build
index ae970cf8a0..5858145b1a 100644
--- a/src/test/meson.build
+++ b/src/test/meson.build
@@ -13,8 +13,6 @@ test_include_dir = include_directories('.')
path = run_command('sh', ['-c', 'echo "$PATH"']).stdout()
test_env = environment()
-test_env.set('SYSTEMD_KBD_MODEL_MAP', kbd_model_map)
-test_env.set('SYSTEMD_LANGUAGE_FALLBACK_MAP', language_fallback_map)
test_env.set('PATH', path)
test_env.prepend('PATH', meson.build_root())
@@ -30,14 +28,6 @@ test_libsystemd_sym_c = custom_target(
capture : true,
build_by_default : want_tests != 'false')
-test_libudev_sym_c = custom_target(
- 'test-libudev-sym.c',
- input : [libudev_sym_path, libudev_h_path],
- output : 'test-libudev-sym.c',
- command : [generate_sym_test_py, '@INPUT0@', '@INPUT1@'],
- capture : true,
- build_by_default : want_tests != 'false')
-
test_dlopen_c = files('test-dlopen.c')
############################################################
@@ -51,17 +41,6 @@ tests += [
[],
[]],
- [['src/test/test-engine.c',
- 'src/test/test-helper.c'],
- [libcore,
- libudev,
- libshared],
- [threads,
- librt,
- libseccomp,
- libselinux,
- libmount,
- libblkid]],
[['src/test/test-emergency-action.c'],
[libcore,
@@ -125,13 +104,6 @@ tests += [
libmount,
libblkid],
'', 'unsafe'],
-
- [['src/test/test-dns-domain.c'],
- [libcore,
- libshared,
- libsystemd_network],
- []],
-
[['src/test/test-boot-timestamps.c'],
[],
[],
@@ -265,10 +237,6 @@ tests += [
[],
[]],
- [['src/test/test-fs-util.c'],
- [],
- []],
-
[['src/test/test-proc-cmdline.c'],
[],
[]],
@@ -473,24 +441,6 @@ tests += [
[],
[]],
- [['src/test/test-tables.c',
- 'src/shared/test-tables.h',
- 'src/journal/journald-server.c',
- 'src/journal/journald-server.h'],
- [libcore,
- libjournal_core,
- libudev_core,
- libudev_static,
- libsystemd_network,
- libshared],
- [threads,
- libseccomp,
- libmount,
- libxz,
- liblz4,
- libblkid],
- '', '', [], libudev_core_includes],
-
[['src/test/test-prioq.c'],
[],
[]],
@@ -574,17 +524,6 @@ tests += [
libshared],
[]],
- [['src/test/test-cgroup-mask.c',
- 'src/test/test-helper.c'],
- [libcore,
- libshared],
- [threads,
- librt,
- libseccomp,
- libselinux,
- libmount,
- libblkid]],
-
[['src/test/test-cgroup-util.c'],
[],
[]],
@@ -605,17 +544,6 @@ tests += [
[],
[]],
- [['src/test/test-path.c',
- 'src/test/test-helper.c'],
- [libcore,
- libshared],
- [threads,
- librt,
- libseccomp,
- libselinux,
- libmount,
- libblkid]],
-
[['src/test/test-execute.c',
'src/test/test-helper.c'],
[libcore,
@@ -646,17 +574,6 @@ tests += [
[],
[]],
- [['src/test/test-sched-prio.c',
- 'src/test/test-helper.c'],
- [libcore,
- libshared],
- [threads,
- librt,
- libseccomp,
- libselinux,
- libmount,
- libblkid]],
-
[['src/test/test-conf-files.c'],
[],
[]],
@@ -680,26 +597,10 @@ tests += [
[],
[]],
- [['src/test/test-journal-importer.c'],
- [],
- []],
-
[['src/test/test-libudev.c'],
[libshared],
[]],
- [['src/test/test-udev.c'],
- [libudev_core,
- libudev_static,
- libsystemd_network,
- libshared],
- [threads,
- librt,
- libblkid,
- libkmod,
- libacl],
- '', 'manual', '-DLOG_REALM=LOG_REALM_UDEV'],
-
[['src/test/test-id128.c'],
[],
[]],
@@ -718,13 +619,6 @@ tests += [
[libdl],
'ENABLE_NSS', 'manual'],
- [['src/test/test-umount.c',
- 'src/shutdown/umount.c',
- 'src/shutdown/umount.h'],
- [libcore_shared,
- libshared],
- [libmount]],
-
[['src/test/test-bus-util.c'],
[],
[]],
@@ -825,13 +719,6 @@ tests += [
libxz,
liblz4]],
- [['src/journal/test-catalog.c'],
- [libjournal_core,
- libshared],
- [threads,
- libxz,
- liblz4]],
-
[['src/journal/test-compress.c'],
[libjournal_core,
libshared],
@@ -963,12 +850,6 @@ tests += [
libsystemd],
[threads]],
- [['src/libsystemd/sd-device/test-udev-device-thread.c'],
- [libbasic,
- libshared_static,
- libudev],
- [threads]],
-
[['src/libsystemd/sd-device/test-sd-device-monitor.c'],
[],
[]],
@@ -982,103 +863,3 @@ if cxx_cmd != ''
[]]
]
endif
-
-############################################################
-
-tests += [
- [['src/libsystemd-network/test-dhcp-option.c',
- 'src/libsystemd-network/dhcp-protocol.h',
- 'src/libsystemd-network/dhcp-internal.h'],
- [libshared,
- libsystemd_network],
- []],
-
- [['src/libsystemd-network/test-sd-dhcp-lease.c',
- 'src/libsystemd-network/dhcp-lease-internal.h'],
- [libshared,
- libsystemd_network],
- []],
-
- [['src/libsystemd-network/test-dhcp-client.c',
- 'src/libsystemd-network/dhcp-protocol.h',
- 'src/libsystemd-network/dhcp-internal.h',
- 'src/systemd/sd-dhcp-client.h'],
- [libshared,
- libsystemd_network],
- []],
-
- [['src/libsystemd-network/test-dhcp-server.c'],
- [libshared,
- libsystemd_network],
- []],
-
- [['src/libsystemd-network/test-ipv4ll.c',
- 'src/libsystemd-network/arp-util.h',
- 'src/systemd/sd-ipv4ll.h'],
- [libshared,
- libsystemd_network],
- []],
-
- [['src/libsystemd-network/test-ipv4ll-manual.c',
- 'src/systemd/sd-ipv4ll.h'],
- [libshared,
- libsystemd_network],
- [],
- '', 'manual'],
-
- [['src/libsystemd-network/test-acd.c',
- 'src/systemd/sd-ipv4acd.h'],
- [libshared,
- libsystemd_network],
- [],
- '', 'manual'],
-
- [['src/libsystemd-network/test-ndisc-rs.c',
- 'src/libsystemd-network/dhcp-identifier.h',
- 'src/libsystemd-network/dhcp-identifier.c',
- 'src/libsystemd-network/icmp6-util.h',
- 'src/systemd/sd-dhcp6-client.h',
- 'src/systemd/sd-ndisc.h'],
- [libshared,
- libsystemd_network],
- []],
-
- [['src/libsystemd-network/test-ndisc-ra.c',
- 'src/libsystemd-network/icmp6-util.h',
- 'src/systemd/sd-ndisc.h'],
- [libshared,
- libsystemd_network],
- []],
-
- [['src/libsystemd-network/test-dhcp6-client.c',
- 'src/libsystemd-network/dhcp-identifier.h',
- 'src/libsystemd-network/dhcp-identifier.c',
- 'src/libsystemd-network/dhcp6-internal.h',
- 'src/systemd/sd-dhcp6-client.h'],
- [libshared,
- libsystemd_network],
- []],
-
- [['src/libsystemd-network/test-lldp.c'],
- [libshared,
- libsystemd_network],
- []],
-]
-
-############################################################
-
-tests += [
- [['src/login/test-login-shared.c'],
- [],
- []],
-
- [['src/login/test-inhibit.c'],
- [],
- [],
- '', 'manual'],
-
- [['src/login/test-login-tables.c'],
- [liblogind_core,
- libshared],
- [threads]],
-]
--
2.21.0.1020.gf2820cf01a-goog