version.py fails in git subtree
Hi,
when using gst-build and configuring meson with --wrap-mode forcefallback
in a git subtree, version.py
returns an error and the configuration fails:
Executing subproject x264 method meson Program version.py found: YES
Running command: /home/MAGICLEAP/aospite/gst-build-1.18/subprojects/x264/version.py --package-version
--- stdout ---
0.160.999
--- stderr ---
Warning: Could not extract versions via git rev-list or x264_config.h
subprojects/x264/meson.build:1:0: Exception: Command "/home/MAGICLEAP/aospite/gst-build-1.18/subprojects/x264/version.py --package-version" failed with status 255.
Subproject x264 is buildable: NO (disabling)
The return value is from https://gitlab.freedesktop.org/gstreamer/meson-ports/x264/-/blob/meson/version.py#L93-98
I guess this is because how is_git
is set does not cover the worktree case?
https://gitlab.freedesktop.org/gstreamer/meson-ports/x264/-/blob/meson/version.py#L52
Thanks, Antonio