mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 21:24:31 +04:00
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 <ansuelsmth@gmail.com>
This commit is contained in:
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=perl-www-curl
|
PKG_NAME:=perl-www-curl
|
||||||
PKG_VERSION:=4.17
|
PKG_VERSION:=4.17
|
||||||
PKG_RELEASE:=7
|
PKG_RELEASE:=8
|
||||||
|
|
||||||
PKG_SOURCE_URL:=https://www.cpan.org/authors/id/S/SZ/SZBALINT/
|
PKG_SOURCE_URL:=https://www.cpan.org/authors/id/S/SZ/SZBALINT/
|
||||||
PKG_SOURCE:=WWW-Curl-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=WWW-Curl-$(PKG_VERSION).tar.gz
|
||||||
|
|||||||
11
lang/perl/perl-www-curl/patches/240-curl_8.13_compat.patch
Normal file
11
lang/perl/perl-www-curl/patches/240-curl_8.13_compat.patch
Normal file
@@ -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/^([^_]+_)/;
|
||||||
Reference in New Issue
Block a user