]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
musl: meson: gracefully disable utmp support
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 17 Nov 2025 17:52:38 +0000 (02:52 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 17 Nov 2025 17:54:20 +0000 (02:54 +0900)
musl only provides fake utmp functions, and these are not usable.
Let's disable the feature when building with musl.

meson.build

index 055ee31ee4c556ee7e755b19e067f7a46e926480..3f50b585787d3523bccfd2e59a95a395000ef0a9 100644 (file)
@@ -1687,7 +1687,7 @@ foreach tuple : [
                 ['timesyncd'],
                 ['tmpfiles'],
                 ['tpm'],
-                ['utmp'],
+                ['utmp',            get_option('libc') != 'musl',     'musl does not support it'],
                 ['userdb'],
                 ['vconsole'],
                 ['xdg-autostart'],