]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Run build script without stdout to stderr redirection
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 21 Sep 2024 17:30:28 +0000 (19:30 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 22 Sep 2024 10:20:24 +0000 (12:20 +0200)
To allow running language servers such as clangd in the build script.
See https://github.com/systemd/systemd/pull/34517.

mkosi/__init__.py

index b5cab509756f6dd277ea6193bba05ac3f54b2fae..4739ce64908162f79d39ddd6608ee8f257d075ae 100644 (file)
@@ -806,6 +806,7 @@ def run_build_scripts(context: Context) -> None:
                     ["/work/build-script", *cmdline],
                     env=env,
                     stdin=sys.stdin,
+                    stdout=sys.stdout,
                     sandbox=script_maybe_chroot_sandbox(
                         context,
                         script=script,