From: Terry Burton Date: Thu, 21 Oct 2021 19:17:34 +0000 (+0100) Subject: git-lfs requires an external mutex (#4283) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0bd0db0c9f01624fe19f60714ace1e9768d45ba;p=thirdparty%2Ffreeradius-server.git git-lfs requires an external mutex (#4283) --- diff --git a/src/bin/fuzzer.mk b/src/bin/fuzzer.mk index c12c7ca6d01..ad30eeb6a06 100644 --- a/src/bin/fuzzer.mk +++ b/src/bin/fuzzer.mk @@ -28,10 +28,13 @@ TGT_LDLIBS := $(LIBS) # Ensure that the large data file is copied from git-lfs, # and then the files are extracted. # +# git-lfs fails to update the git index when multiple instances run +# concurrently. +# .PHONY:src/tests/fuzzer-corpus/$(PROTOCOL) src/tests/fuzzer-corpus/$(PROTOCOL): ${Q}if [ ! -e $@ ]; then \ - git -c 'lfs.fetchexclude=' -c 'lfs.fetchinclude=src/tests/fuzzer-corpus/$(PROTOCOL).tar' lfs pull; \ + flock -F /tmp/git-lfs-mutex git -c 'lfs.fetchexclude=' -c 'lfs.fetchinclude=src/tests/fuzzer-corpus/$(PROTOCOL).tar' lfs pull; \ cd src/tests/fuzzer-corpus; \ tar -xf $(PROTOCOL).tar; \ fi