perl-www-curl: add patch to ensure compatibility with curl 7.88
authorStan Grishin <redacted>
Sat, 25 Feb 2023 21:59:21 +0000 (21:59 +0000)
committerJosef Schlehofer <redacted>
Mon, 27 Feb 2023 02:21:37 +0000 (03:21 +0100)
Patch comes from
https://github.com/openwrt/packages/pull/20540#issuecomment-1439537287

Fixes:
/home/username/works/openwrt/staging_dir/target-x86_64_glibc_custom/usr/include/curl/curl.h:2515:3: note: declared here
 2515 |   CURLFORM_CONTENTTYPE     CURL_DEPRECATED(7.56.0, "Use curl_mime_type()"),
      |   ^~~~~~~~~~~~~~~~~~~~
make[3]: *** [Makefile:347: Curl.o] Error 1

Signed-off-by: Stan Grishin <redacted>
lang/perl-www-curl/patches/230-curl_7.88_compat.patch [new file with mode: 0644]

diff --git a/lang/perl-www-curl/patches/230-curl_7.88_compat.patch b/lang/perl-www-curl/patches/230-curl_7.88_compat.patch
new file mode 100644 (file)
index 0000000..58a6160
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -127,7 +127,7 @@ if (!defined($curl_h)) {
+     close H;
+     for my $e (sort @syms) {
+-       if($e =~ /(OBSOLETE|^CURL_EXTERN|CURLOPT\z|^CURL_STRICTER\z|_LAST\z|_LASTENTRY\z|WIN32)/) {
++      if($e =~ /(OBSOLETE|^CURL_EXTERN|^CURL_STRICTER\z|^CURL_DID_MEMORY_FUNC_TYPEDEFS\z|_LAST\z|_LASTENTRY\z|^CURLINC_|^CURL_WIN32\z|^CURL_DEPRECATED\z|^CURL_IGNORE_DEPRECATION\z|^CURLOPTDEPRECATED\z|^CURLOPT\z)/) {
+           next;
+        }
+        my ($group) = $e =~ m/^([^_]+_)/;
git clone https://git.99rst.org/PROJECT