Skip to content

src/meson.build: fix bug when project version is unknown

Kevin Pouget requested to merge kpouget/spice-gtk:meson-unknown into master

When build-aux/git-version-gen is not able to find the project version (no git tags and no .tarball-version), it returns 'UNKNOWN' or 'UNKNOWN-dirty' (instead of the project version like 0.38.28-d79b).

This UNKNOWN value fails meson build command:

src/meson.build:9:0: ERROR: Index 1 out of bounds of array of size 1.

With this patch, we set a default major/minor/micro value when the actual version is unknown. This is the same as the autoconf historical behavior.

See spice#41 (closed).

Signed-off-by: Kevin Pouget kpouget@redhat.com

Merge request reports

Loading