]>
Commit | Line | Data |
---|---|---|
0b0a7787 JB |
1 | From 4d8ca056c900cdb08556bbae2470ebb858369576 Mon Sep 17 00:00:00 2001 |
2 | From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com> | |
3 | Date: Fri, 20 Jan 2023 14:26:50 +0100 | |
4 | Subject: [PATCH] Adapt to curl-7.87.0 | |
5 | MIME-Version: 1.0 | |
6 | Content-Type: text/plain; charset=UTF-8 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ||
9 | curl-7.87.0 added CURLOPTDEPRECATED and some other helping macros for | |
10 | hinting a compiler to produce deprecation warnings. Those are not | |
11 | constants for libcurl and clobbered generated curlopt-constants.c | |
12 | file: | |
13 | ||
14 | curlopt-constants.c:19:51: error: 'CURL_DEPRECATED' undeclared (first use in this function) | |
15 | 19 | if (strEQ(name, "DEPRECATED")) return CURL_DEPRECATED; | |
16 | | ^~~~~~~~~~~~~~~ | |
17 | ||
18 | This patch adjusts curl.h parser in Makefile.PL to skip them. | |
19 | ||
20 | Signed-off-by: Petr Písař <ppisar@redhat.com> | |
21 | --- | |
22 | Makefile.PL | 2 +- | |
23 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
24 | ||
25 | --- WWW-Curl-4.17/Makefile.PL.orig 2023-02-04 09:03:58.232549376 +0100 | |
26 | +++ WWW-Curl-4.17/Makefile.PL 2023-02-04 09:06:35.355031504 +0100 | |
27 | @@ -127,7 +127,7 @@ if (!defined($curl_h)) { | |
28 | close H; | |
29 | ||
30 | for my $e (sort @syms) { | |
31 | - if($e =~ /(OBSOLETE|^CURL_EXTERN|^CURL_STRICTER\z|^CURL_WIN32\z|^CURLOPT\z|^CURL_DID_MEMORY_FUNC_TYPEDEFS\z|_LAST\z|_LASTENTRY\z|^CURLINC_)/) { | |
32 | + if($e =~ /(OBSOLETE|^CURL_DEPRECATED\z|^CURL_EXTERN|^CURL_IGNORE_DEPRECATION\z|^CURL_STRICTER\z|^CURL_WIN32\z|^CURLOPT\z|^CURLOPTDEPRECATED\z|^CURL_DID_MEMORY_FUNC_TYPEDEFS\z|_LAST\z|_LASTENTRY\z|^CURLINC_)/) { | |
33 | next; | |
34 | } | |
35 | my ($group) = $e =~ m/^([^_]+_)/; |