487 lines
19 KiB
Diff
487 lines
19 KiB
Diff
From 206057496ee5414d9aeb602f6043db7db33d52ba Mon Sep 17 00:00:00 2001
|
|
From: artoo <[email protected]>
|
|
Date: Tue, 31 Mar 2026 20:15:38 +0200
|
|
Subject: [PATCH 1/1] artix standalone install
|
|
|
|
---
|
|
factory/templates/meson.build | 2 ++
|
|
meson.build | 22 ++++++++++++++----
|
|
rules.d/meson.build | 3 +--
|
|
shell-completion/bash/meson.build | 38 +------------------------------
|
|
shell-completion/zsh/meson.build | 31 +------------------------
|
|
src/core/meson.build | 5 ----
|
|
src/hwdb/meson.build | 2 +-
|
|
src/libudev/meson.build | 9 +++++++-
|
|
src/sysusers/meson.build | 3 ++-
|
|
src/tmpfiles/meson.build | 3 ++-
|
|
src/udev/meson.build | 8 +++----
|
|
src/udev/udevd.c | 2 +-
|
|
sysusers.d/meson.build | 4 ++--
|
|
test/meson.build | 6 ++---
|
|
tmpfiles.d/legacy.conf.in | 3 ---
|
|
tmpfiles.d/meson.build | 10 +++-----
|
|
16 files changed, 49 insertions(+), 102 deletions(-)
|
|
|
|
diff --git a/factory/templates/meson.build b/factory/templates/meson.build
|
|
index 0f53217a48..071cfc9547 100644
|
|
--- a/factory/templates/meson.build
|
|
+++ b/factory/templates/meson.build
|
|
@@ -7,6 +7,7 @@ custom_target(
|
|
output : 'locale.conf',
|
|
command : [jinja2_cmdline, '@INPUT@', '@OUTPUT@'],
|
|
install : true,
|
|
+ install_tag : 'etmpfiles',
|
|
install_dir : factory_etc_dir)
|
|
|
|
custom_target(
|
|
@@ -14,6 +15,7 @@ custom_target(
|
|
output : 'vconsole.conf',
|
|
command : [jinja2_cmdline, '@INPUT@', '@OUTPUT@'],
|
|
install : true,
|
|
+ install_tag : 'etmpfiles',
|
|
install_dir : factory_etc_dir)
|
|
|
|
if conf.get('ENABLE_NSS') == 1
|
|
diff --git a/meson.build b/meson.build
|
|
index 3672005d75..6ef9ee5f11 100644
|
|
--- a/meson.build
|
|
+++ b/meson.build
|
|
@@ -121,7 +121,7 @@ includedir = prefixdir / get_option('includedir')
|
|
datadir = prefixdir / get_option('datadir')
|
|
localstatedir = '/' / get_option('localstatedir')
|
|
|
|
-libexecdir = prefixdir / 'lib/systemd'
|
|
+libexecdir = bindir
|
|
libexecdir_to_bin = '../../bin/'
|
|
pkglibdir = libdir / 'systemd'
|
|
|
|
@@ -2799,7 +2799,6 @@ subdir('shell-completion/zsh')
|
|
subdir('sysctl.d')
|
|
subdir('sysusers.d')
|
|
subdir('tmpfiles.d')
|
|
-subdir('units')
|
|
|
|
install_subdir('factory/etc',
|
|
install_dir : factorydir)
|
|
@@ -2821,6 +2820,21 @@ install_data('LICENSE.GPL2',
|
|
install_subdir('LICENSES',
|
|
install_dir : docdir)
|
|
|
|
+install_data('LICENSE.GPL2',
|
|
+ 'LICENSE.LGPL2.1',
|
|
+ install_tag : 'udev',
|
|
+ install_dir : datadir / 'doc/udev')
|
|
+
|
|
+install_data('LICENSE.GPL2',
|
|
+ 'LICENSE.LGPL2.1',
|
|
+ install_tag : 'etmpfiles',
|
|
+ install_dir : datadir / 'doc/etmpfiles')
|
|
+
|
|
+install_data('LICENSE.GPL2',
|
|
+ 'LICENSE.LGPL2.1',
|
|
+ install_tag : 'esysusers',
|
|
+ install_dir : datadir / 'doc/esysusers')
|
|
+
|
|
#####################################################################
|
|
|
|
# Ensure that changes to the docs/ directory do not break the
|
|
@@ -3000,10 +3014,10 @@ udev_targets = []
|
|
foreach bin : udev_binaries
|
|
udev_targets += executables_by_name.get(bin, [])
|
|
endforeach
|
|
-alias_target('udev', buildable_rules, udev_targets, udev_units)
|
|
+alias_target('udev', buildable_rules, udev_targets)
|
|
|
|
if conf.get('ENABLE_HWDB') == 1
|
|
- alias_target('hwdb', auto_suspend_rules, executables_by_name.get('systemd-hwdb'), hwdb_units)
|
|
+ alias_target('hwdb', auto_suspend_rules, executables_by_name.get('udev-hwdb'))
|
|
endif
|
|
|
|
alt_time_epoch = run_command('date', '-Is', '-u', '-d', f'@@time_epoch@', check : false)
|
|
diff --git a/rules.d/meson.build b/rules.d/meson.build
|
|
index aa469ef7a7..4576cb92e3 100644
|
|
--- a/rules.d/meson.build
|
|
+++ b/rules.d/meson.build
|
|
@@ -2,7 +2,7 @@
|
|
|
|
install_data(
|
|
'README',
|
|
- install_dir : udevrulesdir)
|
|
+ install_dir : udevrulesdir, install_tag : 'udev')
|
|
|
|
rules = [
|
|
[files('60-autosuspend.rules',
|
|
@@ -67,7 +67,6 @@ rules_in = [
|
|
['50-udev-default.rules'],
|
|
['60-persistent-storage.rules'],
|
|
['64-btrfs.rules'],
|
|
- ['99-systemd.rules'],
|
|
|
|
['70-uaccess.rules', conf.get('ENABLE_LOGIND') == 1 and conf.get('HAVE_ACL') == 1],
|
|
['71-seat.rules', conf.get('ENABLE_LOGIND') == 1],
|
|
diff --git a/shell-completion/bash/meson.build b/shell-completion/bash/meson.build
|
|
index 178986e171..79ee20a16d 100644
|
|
--- a/shell-completion/bash/meson.build
|
|
+++ b/shell-completion/bash/meson.build
|
|
@@ -20,48 +20,12 @@ custom_target(
|
|
install_dir : bashcompletiondir)
|
|
|
|
foreach item : [
|
|
- ['bootctl', ''],
|
|
- ['busctl', ''],
|
|
- ['coredumpctl', 'ENABLE_COREDUMP'],
|
|
- ['homectl', 'ENABLE_HOMED'],
|
|
- ['hostnamectl', 'ENABLE_HOSTNAMED'],
|
|
- ['importctl', 'ENABLE_IMPORTD'],
|
|
- ['journalctl', ''],
|
|
- ['kernel-install', 'ENABLE_KERNEL_INSTALL'],
|
|
- ['localectl', 'ENABLE_LOCALED'],
|
|
- ['loginctl', 'ENABLE_LOGIND'],
|
|
- ['machinectl', 'ENABLE_MACHINED'],
|
|
- ['networkctl', 'ENABLE_NETWORKD'],
|
|
- ['oomctl', 'ENABLE_OOMD'],
|
|
- ['portablectl', 'ENABLE_PORTABLED'],
|
|
- ['resolvectl', 'ENABLE_RESOLVE'],
|
|
- ['run0', ''],
|
|
- ['systemd-analyze', ''],
|
|
- ['systemd-cat', ''],
|
|
- ['systemd-cgls', ''],
|
|
- ['systemd-cgtop', ''],
|
|
- ['systemd-confext', 'ENABLE_SYSEXT'],
|
|
- ['systemd-creds', ''],
|
|
- ['systemd-cryptenroll', 'HAVE_LIBCRYPTSETUP'],
|
|
- ['systemd-delta', ''],
|
|
- ['systemd-detect-virt', ''],
|
|
- ['systemd-dissect', 'HAVE_BLKID'],
|
|
- ['systemd-id128', ''],
|
|
- ['systemd-nspawn', 'ENABLE_NSPAWN'],
|
|
- ['systemd-path', ''],
|
|
- ['systemd-resolve', 'ENABLE_RESOLVE'],
|
|
- ['systemd-run', ''],
|
|
- ['systemd-sysext', 'ENABLE_SYSEXT'],
|
|
- ['systemd-vmspawn', 'ENABLE_VMSPAWN'],
|
|
- ['systemd-vpick', ''],
|
|
- ['timedatectl', 'ENABLE_TIMEDATED'],
|
|
['udevadm', ''],
|
|
- ['userdbctl', 'ENABLE_USERDB'],
|
|
- ['varlinkctl', ''],
|
|
]
|
|
|
|
if item[1] == '' or conf.get(item[1]) == 1
|
|
install_data(item[0],
|
|
+ install_tag : 'udev',
|
|
install_dir : bashcompletiondir)
|
|
endif
|
|
endforeach
|
|
diff --git a/shell-completion/zsh/meson.build b/shell-completion/zsh/meson.build
|
|
index eb5bb4b6a4..0538954fb9 100644
|
|
--- a/shell-completion/zsh/meson.build
|
|
+++ b/shell-completion/zsh/meson.build
|
|
@@ -15,41 +15,12 @@ custom_target(
|
|
install_dir : zshcompletiondir)
|
|
|
|
foreach item : [
|
|
- ['_bootctl', ''],
|
|
- ['_busctl', ''],
|
|
- ['_coredumpctl', 'ENABLE_COREDUMP'],
|
|
- ['_hostnamectl', 'ENABLE_HOSTNAMED'],
|
|
- ['_journalctl', ''],
|
|
- ['_kernel-install', 'ENABLE_KERNEL_INSTALL'],
|
|
- ['_localectl', 'ENABLE_LOCALED'],
|
|
- ['_loginctl', 'ENABLE_LOGIND'],
|
|
- ['_machinectl', 'ENABLE_MACHINED'],
|
|
- ['_networkctl', 'ENABLE_NETWORKD'],
|
|
- ['_oomctl', 'ENABLE_OOMD'],
|
|
- ['_resolvectl', 'ENABLE_RESOLVE'],
|
|
- ['_run0', ''],
|
|
- ['_sd_bus_address', ''],
|
|
- ['_sd_hosts_or_user_at_host', ''],
|
|
- ['_sd_machines', 'ENABLE_MACHINED'],
|
|
- ['_sd_outputmodes', ''],
|
|
- ['_sd_unit_files', ''],
|
|
- ['_systemd', ''],
|
|
- ['_systemd-analyze', ''],
|
|
- ['_systemd-delta', ''],
|
|
- ['_systemd-id128', ''],
|
|
- ['_systemd-inhibit', 'ENABLE_LOGIND'],
|
|
- ['_systemd-nspawn', ''],
|
|
- ['_systemd-path', ''],
|
|
- ['_systemd-run', ''],
|
|
- ['_systemd-tmpfiles', 'ENABLE_TMPFILES'],
|
|
- ['_timedatectl', 'ENABLE_TIMEDATED'],
|
|
['_udevadm', ''],
|
|
- ['_userdbctl', ''],
|
|
- ['_varlinkctl', ''],
|
|
]
|
|
|
|
if item[1] == '' or conf.get(item[1]) == 1
|
|
install_data(item[0],
|
|
+ install_tag : 'udev',
|
|
install_dir : zshcompletiondir)
|
|
endif
|
|
endforeach
|
|
diff --git a/src/core/meson.build b/src/core/meson.build
|
|
index e703cc3728..d6719d2c9c 100644
|
|
--- a/src/core/meson.build
|
|
+++ b/src/core/meson.build
|
|
@@ -295,11 +295,6 @@ if install_sysconfdir
|
|
install_dir : sysconfdir / 'xdg/systemd')
|
|
endif
|
|
|
|
-assert(fs.parent(sbindir) / 'lib/systemd' == libexecdir)
|
|
-install_symlink('init',
|
|
- pointing_to : '../lib/systemd/systemd',
|
|
- install_dir : sbindir)
|
|
-
|
|
############################################################
|
|
|
|
core_test_template = test_template + {
|
|
diff --git a/src/hwdb/meson.build b/src/hwdb/meson.build
|
|
index 57ace3ad44..96c0b185d0 100644
|
|
--- a/src/hwdb/meson.build
|
|
+++ b/src/hwdb/meson.build
|
|
@@ -2,7 +2,7 @@
|
|
|
|
executables += [
|
|
executable_template + {
|
|
- 'name' : 'systemd-hwdb',
|
|
+ 'name' : 'udev-hwdb',
|
|
'public' : true,
|
|
'conditions' : ['ENABLE_HWDB'],
|
|
'sources' : files('hwdb.c'),
|
|
diff --git a/src/libudev/meson.build b/src/libudev/meson.build
|
|
index eb9dda79ae..e45d25c71b 100644
|
|
--- a/src/libudev/meson.build
|
|
+++ b/src/libudev/meson.build
|
|
@@ -25,6 +25,13 @@ libudev_sym_path = libudev_dir_path / 'libudev.sym'
|
|
install_headers('libudev.h')
|
|
libudev_h_path = libudev_dir_path / 'libudev.h'
|
|
|
|
+if have_standalone_binaries
|
|
+ install_data(
|
|
+ libudev_h_path,
|
|
+ install_dir: includedir,
|
|
+ install_tag: 'libudev-devel')
|
|
+endif
|
|
+
|
|
libudev_basic = static_library(
|
|
'udev-basic',
|
|
libudev_sources,
|
|
@@ -42,5 +49,5 @@ libudev_pc = custom_target(
|
|
output : 'libudev.pc',
|
|
command : [jinja2_cmdline, '@INPUT@', '@OUTPUT@'],
|
|
install : pkgconfiglibdir != 'no',
|
|
- install_tag : 'devel',
|
|
+ install_tag : 'libudev-devel',
|
|
install_dir : pkgconfiglibdir)
|
|
diff --git a/src/sysusers/meson.build b/src/sysusers/meson.build
|
|
index b74ac6aa1a..6be39ac23b 100644
|
|
--- a/src/sysusers/meson.build
|
|
+++ b/src/sysusers/meson.build
|
|
@@ -12,7 +12,7 @@ executables += [
|
|
'dependencies' : libaudit_cflags,
|
|
},
|
|
executable_template + {
|
|
- 'name' : 'systemd-sysusers.standalone',
|
|
+ 'name' : 'esysusers',
|
|
'public' : true,
|
|
'objects' : ['systemd-sysusers'],
|
|
'link_with' : [
|
|
@@ -21,6 +21,7 @@ executables += [
|
|
libshared_static,
|
|
libsystemd_static,
|
|
],
|
|
+ 'install_tag' : 'esysusers',
|
|
'dependencies' : libaudit_cflags,
|
|
},
|
|
]
|
|
diff --git a/src/tmpfiles/meson.build b/src/tmpfiles/meson.build
|
|
index 2a7728c295..54ab1e2e71 100644
|
|
--- a/src/tmpfiles/meson.build
|
|
+++ b/src/tmpfiles/meson.build
|
|
@@ -15,7 +15,7 @@ executables += [
|
|
'dependencies' : libacl_cflags,
|
|
},
|
|
executable_template + {
|
|
- 'name' : 'systemd-tmpfiles.standalone',
|
|
+ 'name' : 'etmpfiles',
|
|
'public' : true,
|
|
'objects' : ['systemd-tmpfiles'],
|
|
'link_with' : [
|
|
@@ -24,6 +24,7 @@ executables += [
|
|
libshared_static,
|
|
libsystemd_static,
|
|
],
|
|
+ 'install_tag' : 'etmpfiles',
|
|
'dependencies' : libacl_cflags,
|
|
},
|
|
test_template + {
|
|
diff --git a/src/udev/meson.build b/src/udev/meson.build
|
|
index 700a8cc8d5..d2981583ff 100644
|
|
--- a/src/udev/meson.build
|
|
+++ b/src/udev/meson.build
|
|
@@ -258,9 +258,9 @@ executables += [
|
|
},
|
|
]
|
|
|
|
-install_symlink('systemd-udevd',
|
|
- pointing_to : libexecdir_to_bin + 'udevadm',
|
|
- install_dir : libexecdir,
|
|
+install_symlink('udevd',
|
|
+ pointing_to : bindir / 'udevadm',
|
|
+ install_dir : bindir,
|
|
install_tag : 'udev')
|
|
|
|
if install_sysconfdir_samples
|
|
@@ -277,7 +277,7 @@ udev_pc = custom_target(
|
|
output : 'udev.pc',
|
|
command : [jinja2_cmdline, '@INPUT@', '@OUTPUT@'],
|
|
install : pkgconfigdatadir != 'no',
|
|
- install_tag : 'devel',
|
|
+ install_tag : 'udev-devel',
|
|
install_dir : pkgconfigdatadir)
|
|
|
|
if install_sysconfdir
|
|
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
|
|
index 840febbd42..b772115d3c 100644
|
|
--- a/src/udev/udevd.c
|
|
+++ b/src/udev/udevd.c
|
|
@@ -67,7 +67,7 @@ int run_udevd(int argc, char *argv[]) {
|
|
if (arg_daemonize) {
|
|
pid_t pid;
|
|
|
|
- log_info("Starting systemd-udevd version " GIT_VERSION);
|
|
+ log_info("Starting udevd version " GIT_VERSION);
|
|
|
|
/* connect /dev/null to stdin, stdout, stderr */
|
|
if (log_get_max_level() < LOG_DEBUG) {
|
|
diff --git a/sysusers.d/meson.build b/sysusers.d/meson.build
|
|
index 84fadfe3f7..22dfd09c05 100644
|
|
--- a/sysusers.d/meson.build
|
|
+++ b/sysusers.d/meson.build
|
|
@@ -7,12 +7,11 @@ files = [['README', true],
|
|
|
|
foreach tuple : files
|
|
if enable_sysusers and tuple[1]
|
|
- install_data(tuple[0], install_dir : sysusersdir)
|
|
+ install_data(tuple[0], install_dir : sysusersdir, install_tag : 'esysusers')
|
|
endif
|
|
endforeach
|
|
|
|
in_files = [['basic.conf', true],
|
|
- ['systemd-journal.conf', true],
|
|
['systemd-network.conf', conf.get('ENABLE_NETWORKD') == 1],
|
|
['systemd-resolve.conf', conf.get('ENABLE_RESOLVE') == 1],
|
|
['systemd-timesync.conf', conf.get('ENABLE_TIMESYNCD') == 1]]
|
|
@@ -24,5 +23,6 @@ foreach tuple : in_files
|
|
output: file,
|
|
command : [jinja2_cmdline, '@INPUT@', '@OUTPUT@'],
|
|
install : enable_sysusers and tuple[1],
|
|
+ install_tag : 'esysusers',
|
|
install_dir : sysusersdir)
|
|
endforeach
|
|
diff --git a/test/meson.build b/test/meson.build
|
|
index 7bf557cc19..38a3da9e5b 100644
|
|
--- a/test/meson.build
|
|
+++ b/test/meson.build
|
|
@@ -17,7 +17,7 @@ if conf.get('ENABLE_SYSUSERS') == 1
|
|
suite : 'sysusers')
|
|
|
|
if have_standalone_binaries
|
|
- exe = executables_by_name.get('systemd-sysusers.standalone')
|
|
+ exe = executables_by_name.get('esysusers')
|
|
test('test-sysusers.standalone',
|
|
test_sysusers_sh,
|
|
# https://github.com/mesonbuild/meson/issues/2681
|
|
@@ -40,7 +40,7 @@ endif
|
|
############################################################
|
|
|
|
if want_tests != 'false' and conf.get('ENABLE_HWDB') == 1
|
|
- exe = executables_by_name.get('systemd-hwdb')
|
|
+ exe = executables_by_name.get('udev-hwdb')
|
|
test('hwdb-test',
|
|
files('hwdb-test.sh'),
|
|
suite : 'dist',
|
|
@@ -86,7 +86,7 @@ if want_tests != 'false' and conf.get('ENABLE_TMPFILES') == 1
|
|
suite : 'tmpfiles')
|
|
|
|
if have_standalone_binaries
|
|
- exe = executables_by_name.get('systemd-tmpfiles.standalone')
|
|
+ exe = executables_by_name.get('etmpfiles')
|
|
test('test-systemd-tmpfiles.standalone',
|
|
test_systemd_tmpfiles_py,
|
|
args : exe.full_path(),
|
|
diff --git a/tmpfiles.d/legacy.conf.in b/tmpfiles.d/legacy.conf.in
|
|
index 7036c12b7c..80120b04b4 100644
|
|
--- a/tmpfiles.d/legacy.conf.in
|
|
+++ b/tmpfiles.d/legacy.conf.in
|
|
@@ -13,6 +13,3 @@
|
|
|
|
d /run/lock 0755 root root -
|
|
L /var/lock - - - - ../run/lock
|
|
-{% if CREATE_LOG_DIRS %}
|
|
-L$ /var/log/README - - - - ../..{{DOC_DIR}}/README.logs
|
|
-{% endif %}
|
|
diff --git a/tmpfiles.d/meson.build b/tmpfiles.d/meson.build
|
|
index c8f9015b2e..8398efbca8 100644
|
|
--- a/tmpfiles.d/meson.build
|
|
+++ b/tmpfiles.d/meson.build
|
|
@@ -6,15 +6,12 @@ endif
|
|
|
|
files = [['README' ],
|
|
['home.conf' ],
|
|
- ['journal-nocow.conf' ],
|
|
['portables.conf', 'ENABLE_PORTABLED'],
|
|
['systemd-network.conf', 'ENABLE_NETWORKD' ],
|
|
['systemd-nologin.conf', 'HAVE_PAM' ],
|
|
['systemd-nspawn.conf', 'ENABLE_MACHINED' ],
|
|
['systemd-pstore.conf', 'ENABLE_PSTORE' ],
|
|
['systemd-resolve.conf', 'ENABLE_RESOLVE' ],
|
|
- ['20-systemd-varlink.conf' ],
|
|
- ['systemd-tmp.conf' ],
|
|
['tmp.conf' ],
|
|
['x11.conf' ],
|
|
['provision.conf' ],
|
|
@@ -23,7 +20,7 @@ files = [['README' ],
|
|
|
|
foreach f : files
|
|
if f.length() == 1 or conf.get(f[1]) == 1
|
|
- install_data(f[0], install_dir : tmpfilesdir)
|
|
+ install_data(f[0], install_dir : tmpfilesdir, install_tag : 'etmpfiles')
|
|
else
|
|
message('Not installing tmpfiles.d/@0@ because @1@ is @2@'
|
|
.format(f[0], f[1], conf.get(f[1], 0)))
|
|
@@ -34,12 +31,10 @@ in_files = [
|
|
['20-systemd-shell-extra.conf', 'LINK_SHELL_EXTRA_DROPIN' ],
|
|
['20-systemd-osc-context.conf', 'LINK_OSC_CONTEXT_DROPIN' ],
|
|
['20-systemd-ssh-generator.conf', 'ENABLE_SSH_PROXY_CONFIG' ],
|
|
- ['20-systemd-stub.conf', 'ENABLE_EFI' ],
|
|
['20-systemd-userdb.conf', 'ENABLE_SSH_USERDB_CONFIG' ],
|
|
['etc.conf' ],
|
|
['legacy.conf', 'ENABLE_COMPAT_SYSV_INTERFACES'],
|
|
['static-nodes-permissions.conf' ],
|
|
- ['systemd.conf' ],
|
|
['var.conf' ],
|
|
]
|
|
|
|
@@ -50,6 +45,7 @@ foreach f : in_files
|
|
output: f[0],
|
|
command : [jinja2_cmdline, '@INPUT@', '@OUTPUT@'],
|
|
install : true,
|
|
+ install_tag : 'etmpfiles',
|
|
install_dir : tmpfilesdir)
|
|
else
|
|
message('Not installing tmpfiles.d/@0@ because @1@ is @2@'
|
|
@@ -58,7 +54,7 @@ foreach f : in_files
|
|
endforeach
|
|
|
|
if install_sysconfdir
|
|
- install_emptydir(sysconfdir / 'tmpfiles.d')
|
|
+ install_emptydir(sysconfdir / 'tmpfiles.d', install_tag : 'etmpfiles')
|
|
endif
|
|
|
|
subdir('user')
|
|
--
|
|
2.53.0
|
|
|