Skip to content

Commit

Permalink
thirdparty/Makefile.am: apply same fix for "make test-deps" as in PR o…
Browse files Browse the repository at this point in the history
  • Loading branch information
jimklimov committed May 28, 2024
1 parent 3e55218 commit 6e51683
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion thirdparty/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,14 @@ test-deps: ../cpanfile.common ../cpanfile.test carton/bin/carton
$(AM_V_at)echo "** Installing Test Dependencies using Carton install"
$(AM_V_at)cat ../cpanfile.common ../cpanfile.test > ../cpanfile
$(AM_V_at)rm -f ../cpanfile.snapshot
$(AM_V_at)PERL_CPANM_OPT= PERL_CPANM_HOME=$(THIRDPARTY_DIR) PERL5LIB=$(THIRDPARTY_DIR)/carton/lib/perl5 PERL_CARTON_PATH=$(THIRDPARTY_DIR) $(PERL) $(THIRDPARTY_DIR)/carton/bin/carton install
+$(AM_V_at)TRIES=5 ; unset DESTDIR || true ; unset MAKEFLAGS || true ; \
while test "$${TRIES}" -gt 0 ; do \
PERL_CPANM_OPT= PERL_CPANM_HOME=$(THIRDPARTY_DIR) PERL5LIB=$(THIRDPARTY_DIR)/carton/lib/perl5 PERL_CARTON_PATH=$(THIRDPARTY_DIR) $(PERL) $(THIRDPARTY_DIR)/carton/bin/carton install \
&& exit ; \
TRIES="`expr $${TRIES} - 1`" ; \
echo "** RETRY Installing Test Dependencies using Carton install (attempts left: $${TRIES})" ; \
MAKEFLAGS="" ; export MAKEFLAGS ; \
done
$(AM_V_at)rm -f ../cpanfile ../cpanfile.snapshot
$(AM_V_at)touch "$@"

Expand Down

0 comments on commit 6e51683

Please sign in to comment.