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>
This commit is contained in:
B. Watson 2022-03-01 02:00:35 -05:00 committed by Willy Sudiarto Raharjo
parent 5f7399eb32
commit 149eb755f0
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
1 changed files with 3 additions and 1 deletions

View File

@ -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 \