]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
factory: do not install nsswitch.conf when nss is disabled
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 23 Nov 2025 02:51:01 +0000 (11:51 +0900)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 25 Nov 2025 09:48:31 +0000 (10:48 +0100)
When systemd is built with musl, nss modules are not supported,
hence the file is not necessary. Let's not install the file.

factory/templates/meson.build
factory/templates/nsswitch.conf [moved from factory/etc/nsswitch.conf with 100% similarity]

index 3db9f255b986f0e4e4dc5e595a2f634f39fb0a93..0f53217a483f1ca2944f7c37b158356a4a847bad 100644 (file)
@@ -15,3 +15,9 @@ custom_target(
         command : [jinja2_cmdline, '@INPUT@', '@OUTPUT@'],
         install : true,
         install_dir : factory_etc_dir)
+
+if conf.get('ENABLE_NSS') == 1
+        install_data(
+                'nsswitch.conf',
+                install_dir : factory_etc_dir)
+endif