1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-26 08:55:40 +03:00

sysupdated: Disable by default in release builds

Since sysupdated is unstable, we shouldn't build it in release builds
unless the distro opts in (i.e. GNOME OS would).

But we enable it in development builds, so that it gets exercised in CI
and we can easily iterate on it.
This commit is contained in:
Adrian Vovk 2024-10-18 21:17:30 -04:00
parent f6deab4424
commit f89e4efe70
No known key found for this signature in database
GPG Key ID: 90A7B546533E15FB

View File

@ -1611,10 +1611,14 @@ conf.set10('ENABLE_SYSUPDATE', have)
if have
sysupdate_mode = get_option('sysupdate-mode')
if sysupdate_mode == 'default'
sysupdate_mode = 'sysupdated'
# TODO: Should the default be both? Packagers will need to split
# out sub-packages by default then. Maybe default should
# cause a build failure instead, so you _have_ to pick one?
if conf.get('BUILD_MODE_DEVELOPER') == 1
sysupdate_mode = 'sysupdated'
# TODO: Should the default be both? Packagers will need to split
# out sub-packages by default then. Maybe default should
# cause a build failure instead, so you _have_ to pick one?
else
sysupdate_mode = 'units'
endif
endif
conf.set10('ENABLE_SYSUPDATED', sysupdate_mode == 'sysupdated' or sysupdate_mode == 'both')