From: Tobias Geerinckx-Rice <me@tobias.gr> Date: Sat, 14 Nov 2020 15:40:38 +0100 Subject: [PATCH] gnu: perl-www-curl: Remove undeclared symbols. Copied verbatim from the FreeBSD port[0]. [0]: https://www.freshports.org/www/p5-WWW-Curl --- a/Makefile.PL 2014-02-21 08:08:09.000000000 -0800 +++ b/Makefile.PL 2020-04-20 15:36:35.008798000 -0700 @@ -100,6 +100,13 @@ print "Found curl.h in $curl_h\n "; my @syms; my $has_cpp = 0; + my @skiplist = qw/ + CURL_DID_MEMORY_FUNC_TYPEDEFS + CURL_STRICTER + CURLINC_CURL_H + CURL_WIN32 + CURLOPT + /; open(H_IN, "-|", "cpp", $curl_h) and $has_cpp++; unless ($has_cpp) { warn "No working cpp ($!). Parsing curl.h in Perl"; @@ -121,6 +128,7 @@ open (H, "<", $curl_h) or die ("Cannot open $curl_h: ".$!); while(<H>) { if (/^#define (CURL[A-Za-z0-9_]*)/) { + next if $1 ~~ @skiplist; push @syms, $1; } }