[Buildroot] [RFC] iputils (meson build system) has git version from buildroot instead of iputils
Petr Vorel
petr.vorel at gmail.com
Tue May 10 20:15:58 UTC 2022
Hi all,
meson.build [1] uses git-version.h.meson [2] to produce BUILD_DIRECTORY/git-version.h.
Building from sources (not in Buildroot) it works:
$ head -1 builddir/git-version.h
#define PACKAGE_VERSION "20211215-15-g309f285"
But building in Buildroot it gets git version from Buildroot:
$ head -1 output/build/iputils-20211215/build/git-version.h
#define PACKAGE_VERSION "2022.02-876-g3ef096786a"
Is it a bug in iputils or in Buildroot meson?
Any idea how to fix it?
Kind regards,
Petr
[1] https://github.com/iputils/iputils/blob/master/meson.build#L14
[2] https://github.com/iputils/iputils/blob/master/git-version.h.meson
More information about the buildroot
mailing list