aboutsummaryrefslogtreecommitdiff
path: root/perl
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-03-01 02:00:35 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-03-01 19:35:42 +0700
commit149eb755f04f149744dcd145ce9741b7229debce (patch)
treea0732fa4618e0ec4f58b0d36cc7add21788af515 /perl
parent5f7399eb32c041939beff0ef7768d99155bfe9f8 (diff)
perl/perl-WWW-Curl: Fix build when no network available.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'perl')
-rw-r--r--perl/perl-WWW-Curl/perl-WWW-Curl.SlackBuild4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl/perl-WWW-Curl/perl-WWW-Curl.SlackBuild b/perl/perl-WWW-Curl/perl-WWW-Curl.SlackBuild
index 2a51a3cb5fbfb..46291bd33f836 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 \