prereq-build: add additional git detection
authorChristian 'Ansuel' Marangi <ansuelsmth@gmail.com>
Thu, 9 Jun 2022 12:13:09 +0000 (14:13 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 27 Jun 2022 17:54:12 +0000 (19:54 +0200)
commit7e223a89a17e122f2dfad246e5e5ada8f1793dd7
tree8a3686ad96ab08c22b97da2ec7bfde418862f4f6
parent08e1812900b4f2ab0d7a33b0e72be2d377a5b3d9
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>
(cherry picked from commit ab1f3a87063b94f485bd582f32a066b80007bac9)
include/prereq-build.mk