prereq-build: add additional git detection
authorChristian 'Ansuel' Marangi <ansuelsmth@gmail.com>
Thu, 9 Jun 2022 12:13:09 +0000 (14:13 +0200)
committerChristian 'Ansuel' Marangi <ansuelsmth@gmail.com>
Thu, 9 Jun 2022 13:30:33 +0000 (15:30 +0200)
commitab1f3a87063b94f485bd582f32a066b80007bac9
tree0e8e9bcf38b1fdcf0bef6f17d74b29a7977a7297
parentd55f12cc7925b7d84af80015cbeb0422dd7e0b36
prereq-build: add additional git detection

With some OS (Guix) the git submodule command is wrapped in
a script. Current logic parse the git submodule script directly.
If it's wrapped the prereq check wrongly fails while 'git submodule
--recursive' is actually available.
Add an additional check that try to directly use the 'git submodule'
command to check if the prereq is satisfied.

Fixes: #9986
Reported-by: Attila Lendvai <attila@lendvai.name>
Suggested-by: Attila Lendvai <attila@lendvai.name>
Signed-off-by: Christian 'Ansuel' Marangi <ansuelsmth@gmail.com>
include/prereq-build.mk