From 149eb755f04f149744dcd145ce9741b7229debce Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 1 Mar 2022 02:00:35 -0500 Subject: perl/perl-WWW-Curl: Fix build when no network available. Signed-off-by: B. Watson Signed-off-by: Willy Sudiarto Raharjo --- perl/perl-WWW-Curl/perl-WWW-Curl.SlackBuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'perl') diff --git a/perl/perl-WWW-Curl/perl-WWW-Curl.SlackBuild b/perl/perl-WWW-Curl/perl-WWW-Curl.SlackBuild index 2a51a3cb5fbf..46291bd33f83 100644 --- a/perl/perl-WWW-Curl/perl-WWW-Curl.SlackBuild +++ b/perl/perl-WWW-Curl/perl-WWW-Curl.SlackBuild @@ -71,7 +71,9 @@ perl Makefile.PL \ INSTALLVENDORMAN3DIR=/usr/man/man3 make -make test +# 20220301 bkw: 'make test' requires internet access, don't run it +# if it looks like the network is down (e.g. due to 'unshare -n'). +ping -w10 -c1 google.com &>/dev/null && make test make install DESTDIR=$PKG find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ -- cgit v1.2.3