From: Christian Marangi Date: Wed, 26 Nov 2025 01:46:32 +0000 (+0100) Subject: perl-www-curl: fix compilation error with new cURL version X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=d0f1c668c234b90807213340e36baa2b76eb85db;p=openwrt-packages.git perl-www-curl: fix compilation error with new cURL version Add patch removing internal macro CURL_HAS_DECLSPEC_ATTRIBUTE. This fix a compilation error for the package. Also improve the old 7.88 patch with wrong whitespace. Signed-off-by: Christian Marangi --- diff --git a/lang/perl/perl-www-curl/Makefile b/lang/perl/perl-www-curl/Makefile index ae6846d29..e02873b92 100644 --- a/lang/perl/perl-www-curl/Makefile +++ b/lang/perl/perl-www-curl/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=perl-www-curl PKG_VERSION:=4.17 -PKG_RELEASE:=7 +PKG_RELEASE:=8 PKG_SOURCE_URL:=https://www.cpan.org/authors/id/S/SZ/SZBALINT/ PKG_SOURCE:=WWW-Curl-$(PKG_VERSION).tar.gz diff --git a/lang/perl/perl-www-curl/patches/230-curl_7.88_compat.patch b/lang/perl/perl-www-curl/patches/230-curl_7.88_compat.patch index 58a616083..806eee5cb 100644 --- a/lang/perl/perl-www-curl/patches/230-curl_7.88_compat.patch +++ b/lang/perl/perl-www-curl/patches/230-curl_7.88_compat.patch @@ -5,7 +5,7 @@ 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)/) { ++ 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/^([^_]+_)/; diff --git a/lang/perl/perl-www-curl/patches/240-curl_8.13_compat.patch b/lang/perl/perl-www-curl/patches/240-curl_8.13_compat.patch new file mode 100644 index 000000000..d4c0a812b --- /dev/null +++ b/lang/perl/perl-www-curl/patches/240-curl_8.13_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|^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)/) { ++ 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|^CURL_HAS_DECLSPEC_ATTRIBUTE\z)/) { + next; + } + my ($group) = $e =~ m/^([^_]+_)/;