]> git.ipfire.org Git - thirdparty/lxc.git/commit
meson.build: set `LXC_DISTRO_SYSCONF` when `-Dspecfile=true` 4557/head
authorRoman Azarenko <roman.azarenko+gh@genexis.eu>
Sat, 31 May 2025 12:55:01 +0000 (14:55 +0200)
committerRoman Azarenko <roman.azarenko+gh@genexis.eu>
Sat, 31 May 2025 12:55:01 +0000 (14:55 +0200)
commit6d6f0e1b090112442cfdaa79e7f15a8020211016
tree2a46d738112a2b85342506523943c94e041c588d
parent9ace7b388a0b63a431b5a084e9cee55735bc0458
meson.build: set `LXC_DISTRO_SYSCONF` when `-Dspecfile=true`

Before the change, the `setup` meson step would fail when disabling the
`install-init-files` option:

$ meson setup -Dinstall-init-files=false build
<snip>
meson.build:936:44: ERROR: Entry LXC_DISTRO_SYSCONF not in configuration data.

This is because setting the `LXC_DISTRO_SYSCONF` option is conditional
and requires `install-init-files` to be enabled.

Meanwhile the `specfile` option (default enabled) also requires the
variable above, resulting in a failure when it is unset.

Amend the conditional to also set `LXC_DISTRO_SYSCONF` when `specfile`
option is `true`.

Fixes: 872db5424363 ("build: add more options for customizing install")
Signed-off-by: Roman Azarenko <roman.azarenko+gh@genexis.eu>
meson.build