Skip to content
Snippets Groups Projects
Verified Commit 2ce133be authored by Richard Muzik's avatar Richard Muzik
Browse files

patches/packages: perl-www-curl: compatibility with new curl

After update of curl, perl-www-curl stopped to compile. The newer
versions have some incompatibilities. This patch ensures compatibility.
Taken from openwrt/packages commit: f51a784a83e4b5e4068de6e0c4c6b86b479d1144
parent 49767f38
1 merge request!661patches/packages: perl-www-curl: compatibility with new curl
Pipeline #117537 passed with stages
in 6 minutes and 30 seconds
From 61292fcc2fa7448a2eb0fd93fa2969391687c557 Mon Sep 17 00:00:00 2001
From: Richard Muzik <richard.muzik@nic.cz>
Date: Tue, 26 Sep 2023 10:38:37 +0200
Subject: [PATCH] perl-www-curl: add patch to ensure compatibility with newer
versions of curl
---
lang/perl-www-curl/patches/230-curl_7.88_compat.patch | 11 +++++++++++
1 file changed, 11 insertions(+)
create mode 100644 lang/perl-www-curl/patches/230-curl_7.88_compat.patch
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
index 000000000..58a616083
--- /dev/null
+++ b/lang/perl-www-curl/patches/230-curl_7.88_compat.patch
@@ -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/^([^_]+_)/;
--
2.42.0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment