
20 Sep
2018
20 Sep
'18
4:23 p.m.
On Thu, Sep 20, 2018 at 12:37:12PM +0200, Andrea Bolognani wrote:
Normally this shouldn't be needed, because 'git clean -xdf' is executed after updating the git repository and before starting the build; however, some RPM builds (notably libvirt's) internally use git to apply patches, and if one of those fails it will leave a git repository inside of build/ behind, which 'git clean' dutifully refuses to remove and whose presence will in turn cause 'mkdir build', and thus the entire build, to fail.
Solve the issue by forcefully removing build/ ourselves before starting an autotools build.
Signed-off-by: Andrea Bolognani <abologna@redhat.com> ---
Tested, works. Reviewed-by: Erik Skultety <eskultet@redhat.com>