diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2020-04-22 03:47:28 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2020-04-22 03:47:28 +0000 |
commit | df9b2807d418e1a8c25a06a9f595e1323ba380e5 (patch) | |
tree | d3a36dcd078367f28e948345789f0a54cbd49ec5 /www/p5-WWW-Curl/files | |
parent | 7b4de10579f1eb21d2eb6e1d96030c3ee68d7e23 (diff) | |
download | ports-df9b2807d418e1a8c25a06a9f595e1323ba380e5.tar.gz ports-df9b2807d418e1a8c25a06a9f595e1323ba380e5.zip |
Re-do r530415 and other patches that skip certain defines in a more
elegant way. Matching strings rather then regexps is preferred here.
The problem with r530415 in particular was that it skipped any symbol
matching CURLOPT, which cut a bunch of useful symbols.
Approved by: sunpoet
Notes
Notes:
svn path=/head/; revision=532443
Diffstat (limited to 'www/p5-WWW-Curl/files')
-rw-r--r-- | www/p5-WWW-Curl/files/patch-Makefile.PL | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/www/p5-WWW-Curl/files/patch-Makefile.PL b/www/p5-WWW-Curl/files/patch-Makefile.PL index 7bbe0ff7eb16..2f7352fd0389 100644 --- a/www/p5-WWW-Curl/files/patch-Makefile.PL +++ b/www/p5-WWW-Curl/files/patch-Makefile.PL @@ -1,18 +1,24 @@ ---- Makefile.PL.orig 2014-02-21 16:08:09 UTC -+++ Makefile.PL -@@ -121,13 +121,14 @@ if (!defined($curl_h)) { +--- Makefile.PL.orig 2014-02-21 08:08:09.000000000 -0800 ++++ 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 eq 'CURL_DID_MEMORY_FUNC_TYPEDEFS' || $1 eq 'CURL_STRICTER' || $1 eq 'CURLINC_CURL_H' ); ++ next if $1 ~~ @skiplist; push @syms, $1; } } - close H; - - for my $e (sort @syms) { -- if($e =~ /(OBSOLETE|^CURL_EXTERN|_LAST\z|_LASTENTRY\z)/) { -+ if($e =~ /(OBSOLETE|^CURL_EXTERN|_LAST\z|_LASTENTRY\z|^CURLINC_|WIN32|CURLOPT)/) { - next; - } - my ($group) = $e =~ m/^([^_]+_)/; |