meson: add feature flag for validatefs

validatefs builds and installs binaries, docs, units, etc. Add a
feature flag to make it easier to avoid shipping it.
This commit is contained in:
Luca Boccassi authored and Yu Watanabe committed 2026-10-25 09:34:00 +09:00
1 parent 48493bc9d3
commit e2a70c2cec
6 files changed
+12 -4

No files matched your search

+1 -1
View File
@@ -1376,7 +1376,7 @@ manpages = [
['systemd-update-utmp.service', '8', ['systemd-update-utmp'], 'ENABLE_UTMP'],
['systemd-user-sessions.service', '8', ['systemd-user-sessions'], 'HAVE_PAM'],
['systemd-userdbd.service', '8', ['systemd-userdbd'], 'ENABLE_USERDB'],
['systemd-validatefs@.service', '8', [], 'HAVE_BLKID'],
['systemd-validatefs@.service', '8', [], 'ENABLE_VALIDATEFS'],
['systemd-vconsole-setup.service',
'8',
['systemd-vconsole-setup'],
+1 -1
View File
@@ -3,7 +3,7 @@
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
<refentry id="systemd-validatefs_.service" conditional='HAVE_BLKID'
<refentry id="systemd-validatefs_.service" conditional='ENABLE_VALIDATEFS'
xmlns:xi="http://www.w3.org/2001/XInclude">
<refentryinfo>
+6
View File
@@ -1804,6 +1804,11 @@ have = get_option('integritysetup').require(
error_message : 'libcryptsetup required for systemd-integritysetup').allowed()
conf.set10('ENABLE_INTEGRITYSETUP', have)
have = get_option('validatefs').require(
conf.get('HAVE_BLKID') == 1,
error_message : 'blkid required for systemd-validatefs').allowed()
conf.set10('ENABLE_VALIDATEFS', have)
foreach tuple : [
['analyze'],
['backlight'],
@@ -3499,6 +3504,7 @@ foreach tuple : [
['timesyncd'],
['tmpfiles'],
['userdb'],
['validatefs'],
['vconsole'],
['vmspawn'],
['xdg-autostart'],
+2
View File
@@ -282,6 +282,8 @@ option('ukify', type : 'feature', deprecated : { 'true' : 'enabled', 'false' : '
description : 'install ukify')
option('utmp', type : 'boolean',
description : 'support for utmp/wtmp log handling')
option('validatefs', type : 'feature',
description : 'install systemd-validatefs and associated files')
option('varlink-monitord', type : 'boolean',
description : 'install the systemd-varlink-monitord daemon')
option('vconsole', type : 'boolean',
+1 -1
View File
@@ -4,7 +4,7 @@ executables += [
libexec_template + {
'name' : 'systemd-validatefs',
'conditions' : [
'HAVE_BLKID',
'ENABLE_VALIDATEFS',
],
'sources' : files('validatefs.c'),
'dependencies' : [
+1 -1
View File
@@ -1157,7 +1157,7 @@ units = [
},
{
'file' : 'systemd-validatefs@.service.in',
'conditions' : ['HAVE_BLKID'],
'conditions' : ['ENABLE_VALIDATEFS'],
},
{
'file' : 'systemd-varlink-monitord.socket',