]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Fix our `meson` build not reaching a stable state
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 19 May 2025 09:45:59 +0000 (11:45 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 19 May 2025 09:45:59 +0000 (11:45 +0200)
commit8694ea2995e5ff2db52742419b8585119f0ad9f4
tree181408a801bac70c342bda8f04035f26d0b36284
parent036fcac34ff8a51b7003ef9a92e08ba3449863a2
dnsdist: Fix our `meson` build not reaching a stable state

Before this commit calling `meson build` a second time right after building
triggered a re-generation of the `dnsdist-configuration-yaml-items-generated.cc`
file because `meson` wants it to be present in the build directory,
but we also want to generate it in the source directory so that it
can be included in the repository.
The current solution is a bit dirty, but our options are limited
because some files are only generated when YAML support is available,
because they require Rust, and we need them to be in the dist tarball.
Otto suggested that we could generate them only when building the dist
tarball, I'll look into it in a bit.
pdns/dnsdistdist/dnsdist-rust-lib/dnsdist-settings-generator.py
pdns/dnsdistdist/dnsdist-rust-lib/meson.build