pkg-generic: host variant use git submodules if target variant does
When a package has both a target and a host variant, and uses git
submodules, and the host variant is downloaded before the target one, we
end up with the generated archive missing the submodules.
This happens in exactly one package in our tree: c-capnproto.
This issue was not caught before because after a few days, the full
sources are added to sources.buildroot.net. So when the hash check
fails, the full tarball is simply downloaded from there.
Propagate the git submodule setting from the target variant to the host
variant, unless the host variant explicitly opted-out.
Reported-by: Fabrice Fontaine <firstname.lastname@example.org>
Signed-off-by: Yann E. MORIN <email@example.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <firstname.lastname@example.org>
1 file changed