Skip to content

Commit 0826929

Browse files
committed
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. Signed-off-by: Michal Kazior <michal@plume.com>
1 parent dfe2967 commit 0826929

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

utils/lxc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ MESON_ARGS += \
3232
-Dman=false \
3333
-Dapparmor=false \
3434
-Dselinux=false \
35+
-Ddistrosysconfdir=/etc/default \
3536
-Dseccomp=$(if $(CONFIG_LXC_SECCOMP),true,false) \
3637
-Dexamples=false \
3738
-Db_pie=true \

0 commit comments

Comments
 (0)