lxc: fix meson.build on esoteric host systems
authorMichal Kazior <redacted>
Thu, 4 Sep 2025 17:18:47 +0000 (17:18 +0000)
committerHannu Nyman <redacted>
Sun, 25 Jan 2026 12:55:23 +0000 (14:55 +0200)
commitee74cd554df1e6caa065efcfbdb4b7369492b01a
tree39469be140ebbce440d66057ea6146a6675c5c43
parent1c96fa557ae59ed2c4406940892fd5f0839bbc5d
lxc: fix meson.build on esoteric host systems

When building lxc's meson.build tries to infer
something for the target system out of the host
build OS. This isn't reproducible and can actually
fail on some OS' like NixOS.

The failure looked like this, early in the
building stage of lxc:

> ../../../../build_dir/target-aarch64_cortex-a53_musl/lxc-6.0.5/meson.build:166:8: ERROR: Problem encountered: "distrosysconfdir" is not set

The /etc/default seems to be something that is
derived on most host systems, so use that as the
explicit config.

This fixes building lxc on NixOS and similar.

This also makes the build more pure and
reproducible. Before this commit building the same
set of checkouts, same config would yield
different lxc artifacts on RedHat and Ubuntu.
It was probably harmless though.

This also removes inactive maintainer from the
Makefile.

Signed-off-by: Michal Kazior <redacted>
utils/lxc/Makefile
git clone https://git.99rst.org/PROJECT