On Thu, 5 Nov 2026 at 18:15, Yonggang Luo <[email protected]> wrote: > > configure_file() writes qemu-version.h at setup time. That result is > not a ninja edge, so a missing header is never rebuilt and compiles > that include it do not order on it. Generate the header with > custom_target and list it in genh. scripts/qemu-version.py reads > scripts/qemu-version.h.in and substitutes -version. An empty > pkgversion drops the QEMU_PKGVERSION line. > > Link: > https://lore.kernel.org/qemu-devel/cafeaca8bgodxrfrzrimhgn1v2htcwvaprsyucemzbmuubvk...@mail.gmail.com/ > > Signed-off-by: Yonggang Luo <[email protected]>
If we're going back to having an external script, the other way to fix this would be to just revert ab78ac76f44a12 and maybe fc35f2438770, since their commit messages suggest the main aim was to not have an external script. thanks -- PMM
