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 4a70d27
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion thirdparty/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,15 @@ 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 -x carton/bin/carton ; 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`" ; \
if test "$${TRIES}" -lt 1 ; then exit 1 ; fi ; \
echo "** RETRY Installing/Checking Carton tool (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 4a70d27

Please sign in to comment.