On Fri, Nov 6, 2026 at 2:34 AM Peter Maydell <[email protected]> wrote:
>
> 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.
I personally think the external script(not have) is mainly about when
git presents.
That's the most used case for developers maybe. And we always need to
calling to git when .git and git present, that's the case we always need
dealt with.
And if we call git executable in an external script, it's far more
complicated to
handle. Either a complicated python script or a not-wanted bash script.
>
> thanks
> -- PMM
--
此致
礼
罗勇刚
Yours
sincerely,
Yonggang Luo