]> git.ipfire.org Git - thirdparty/systemd.git/commit
mkosi: Run meson and ninja as the user invoking mkosi
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 25 Sep 2023 09:02:13 +0000 (11:02 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 25 Sep 2023 10:06:15 +0000 (11:06 +0100)
commit7d376f1ddefdbb51aca79aa9bf572820c2e311da
treef9baba575f859a184231dcd188ddefac8c74a79a
parente2b8a61919abe9d9bb5a9eea46477605b24b1bfd
mkosi: Run meson and ninja as the user invoking mkosi

Latest mkosi sets $MKOSI_UID and $MKOSI_GID to the uid/gid of the
user running mkosi. Let's make use of this to run meson setup and
ninja as the user running mkosi, so that if we execute git as a
subprocess during meson setup, it doesn't complain about unsafe
directories. This also makes sure all the build artifacts are owned
on the host by the user running mkosi.
mkosi.presets/base/mkosi.build