From c0f45db87c9b437b29270386529c9cacf7da957f Mon Sep 17 00:00:00 2001 From: Emmanuel Seyman Date: Sep 18 2016 11:29:28 +0000 Subject: Apply patch to make WWW::Curl work with curl 7.50.2 (with thanks to ppisar) --- diff --git a/WWW-Curl-4.17-Skip-preprocessor-symbol-only-CURL_STRICTER.patch b/WWW-Curl-4.17-Skip-preprocessor-symbol-only-CURL_STRICTER.patch new file mode 100644 index 0000000..34221c0 --- /dev/null +++ b/WWW-Curl-4.17-Skip-preprocessor-symbol-only-CURL_STRICTER.patch @@ -0,0 +1,34 @@ +From 0be0223422e6e5f4091c6e4e058d213623eed105 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Mon, 12 Sep 2016 14:40:44 +0200 +Subject: [PATCH] Skip preprocessor symbol only CURL_STRICTER +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +CURL_STRICTER leaked into curl-constants.c when building against +curl-7.50.2. This is a preprocessor only macro without a value. + +CPAN RT#117793 + +Signed-off-by: Petr Písař +--- + Makefile.PL | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile.PL b/Makefile.PL +index f9170bb..ad2bd3d 100644 +--- 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|_LAST\z|_LASTENTRY\z)/) { ++ if($e =~ /(OBSOLETE|^CURL_EXTERN|^CURL_STRICTER\z|_LAST\z|_LASTENTRY\z)/) { + next; + } + my ($group) = $e =~ m/^([^_]+_)/; +-- +2.7.4 + diff --git a/perl-WWW-Curl.spec b/perl-WWW-Curl.spec index 98099ce..ede0261 100644 --- a/perl-WWW-Curl.spec +++ b/perl-WWW-Curl.spec @@ -1,11 +1,12 @@ Name: perl-WWW-Curl Version: 4.17 -Release: 8%{?dist} +Release: 9%{?dist} Summary: Perl extension interface for libcurl License: MIT Group: Development/Libraries URL: http://search.cpan.org/dist/WWW-Curl/ Source0: http://search.cpan.org/CPAN/authors/id/S/SZ/SZBALINT/WWW-Curl-%{version}.tar.gz +Patch0: WWW-Curl-4.17-Skip-preprocessor-symbol-only-CURL_STRICTER.patch BuildRequires: perl BuildRequires: perl-devel BuildRequires: perl-generators @@ -30,6 +31,7 @@ WWW::Curl is a Perl extension interface for libcurl. %prep %setup -q -n WWW-Curl-%{version} +%patch0 -p1 rm -rf inc && sed -i -e '/^inc\//d' MANIFEST %build @@ -64,6 +66,9 @@ make test %{_mandir}/man3/* %changelog +* Sun Sep 18 2016 Emmanuel Seyman - 4.17-9 +- Apply patch to make WWW::Curl work with curl 7.50.2 (#1375176, RT #117793) + * Sun May 15 2016 Jitka Plesnikova - 4.17-8 - Perl 5.24 rebuild