[packages/perl-WWW-Curl] add patch to fix build with curl >= 8.13.0 (from freebsd)
atler
atler at pld-linux.org
Mon Aug 4 12:23:43 CEST 2025
commit 9857046b8ada642d59e07cb97222e0761d8b9c67
Author: Jan Palus <atler at pld-linux.org>
Date: Mon Aug 4 12:23:00 2025 +0200
add patch to fix build with curl >= 8.13.0 (from freebsd)
perl-WWW-Curl.spec | 2 ++
skip-symbols.patch | 28 ++++++++++++++++++++++++++++
2 files changed, 30 insertions(+)
---
diff --git a/perl-WWW-Curl.spec b/perl-WWW-Curl.spec
index 27d39d7..76b152b 100644
--- a/perl-WWW-Curl.spec
+++ b/perl-WWW-Curl.spec
@@ -18,6 +18,7 @@ Patch1: curl-7.66.0.patch
Patch2: curl-7.69.0.patch
Patch3: WWW-Curl-Adapt-to-curl-7.87.0.patch
Patch4: WWW-Curl-Work-around-a-macro-bug-in-curl-7.87.0.patch
+Patch5: skip-symbols.patch
URL: https://metacpan.org/dist/WWW-Curl
BuildRequires: curl-devel
BuildRequires: perl-devel >= 1:5.8.0
@@ -49,6 +50,7 @@ nazewnictwa.
%patch -P2 -p1
%patch -P3 -p1
%patch -P4 -p1
+%patch -P5 -p0
%build
%{__perl} Makefile.PL \
diff --git a/skip-symbols.patch b/skip-symbols.patch
new file mode 100644
index 0000000..0ff3e17
--- /dev/null
+++ b/skip-symbols.patch
@@ -0,0 +1,28 @@
+--- Makefile.PL.orig 2014-02-21 16:08:09 UTC
++++ Makefile.PL
+@@ -100,6 +100,17 @@ if (!defined($curl_h)) {
+ print "Found curl.h in $curl_h\n";
+ my @syms;
+ my $has_cpp = 0;
++ my @skiplist = qw/
++ CURL_DEPRECATED
++ CURL_DID_MEMORY_FUNC_TYPEDEFS
++ CURL_IGNORE_DEPRECATION
++ CURL_HAS_DECLSPEC_ATTRIBUTE
++ CURL_STRICTER
++ CURL_WIN32
++ CURLINC_CURL_H
++ CURLOPT
++ CURLOPTDEPRECATED
++ /;
+ open(H_IN, "-|", "cpp", $curl_h) and $has_cpp++;
+ unless ($has_cpp) {
+ warn "No working cpp ($!). Parsing curl.h in Perl";
+@@ -121,6 +132,7 @@ if (!defined($curl_h)) {
+ open (H, "<", $curl_h) or die ("Cannot open $curl_h: ".$!);
+ while(<H>) {
+ if (/^#define (CURL[A-Za-z0-9_]*)/) {
++ next if $1 ~~ @skiplist;
+ push @syms, $1;
+ }
+ }
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-WWW-Curl.git/commitdiff/9857046b8ada642d59e07cb97222e0761d8b9c67
More information about the pld-cvs-commit
mailing list