]> git.pld-linux.org Git - packages/perl-WWW-Curl.git/blame - WWW-Curl-Adapt-to-curl-7.87.0.patch
- added curl-7.87.0 patches from Fedora
[packages/perl-WWW-Curl.git] / WWW-Curl-Adapt-to-curl-7.87.0.patch
CommitLineData
0b0a7787
JB
1From 4d8ca056c900cdb08556bbae2470ebb858369576 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
3Date: Fri, 20 Jan 2023 14:26:50 +0100
4Subject: [PATCH] Adapt to curl-7.87.0
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9curl-7.87.0 added CURLOPTDEPRECATED and some other helping macros for
10hinting a compiler to produce deprecation warnings. Those are not
11constants for libcurl and clobbered generated curlopt-constants.c
12file:
13
14curlopt-constants.c:19:51: error: 'CURL_DEPRECATED' undeclared (first use in this function)
15 19 | if (strEQ(name, "DEPRECATED")) return CURL_DEPRECATED;
16 | ^~~~~~~~~~~~~~~
17
18This patch adjusts curl.h parser in Makefile.PL to skip them.
19
20Signed-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/^([^_]+_)/;
This page took 0.143713 seconds and 4 git commands to generate.