public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Emmanuel Seyman <emmanuel@seyman.fr>
To: git-commits@fedoraproject.org
Subject: [rpms/perl-WWW-Curl] epel10: fix FTBFS with Debian patch
Date: Sun, 02 Aug 2026 10:05:13 GMT [thread overview]
Message-ID: <178566511355.1.10197117050838359730.rpms-perl-WWW-Curl-07606974e74c@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/perl-WWW-Curl
Branch : epel10
Commit : 07606974e74c246a5ba030571077ae0f880f9b7f
Author : Emmanuel Seyman <emmanuel@seyman.fr>
Date : 2019-10-18T08:17:32+02:00
Stats : +38/-9 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/perl-WWW-Curl/c/07606974e74c246a5ba030571077ae0f880f9b7f?branch=epel10
Log:
fix FTBFS with Debian patch
---
diff --git a/WWW-Curl-4.17-define-CURL-as-void.patch b/WWW-Curl-4.17-define-CURL-as-void.patch
new file mode 100644
index 0000000..1fa9b54
--- /dev/null
+++ b/WWW-Curl-4.17-define-CURL-as-void.patch
@@ -0,0 +1,21 @@
+diff -up ./Curl.xs.orig ./Curl.xs
+--- ./Curl.xs.orig 2019-10-18 07:45:38.380881448 +0200
++++ ./Curl.xs 2019-10-18 07:46:20.712032844 +0200
+@@ -47,7 +47,7 @@ typedef enum {
+
+ typedef struct {
+ /* The main curl handle */
+- struct CURL *curl;
++ CURL *curl;
+ I32 *y;
+ /* Lists that can be set via curl_easy_setopt() */
+ struct curl_slist *slist[SLIST_LAST];
+@@ -73,7 +73,7 @@ typedef struct {
+ #ifdef __CURL_MULTI_H
+ struct CURLM *curlm;
+ #else
+- struct void *curlm;
++ void *curlm;
+ #endif
+ } perl_curl_multi;
+
diff --git a/perl-WWW-Curl.spec b/perl-WWW-Curl.spec
index 5b27641..ec0bc67 100644
--- a/perl-WWW-Curl.spec
+++ b/perl-WWW-Curl.spec
@@ -1,11 +1,13 @@
Name: perl-WWW-Curl
Version: 4.17
-Release: 20%{?dist}
+Release: 21%{?dist}
Summary: Perl extension interface for libcurl
License: MIT
URL: https://metacpan.org/release/WWW-Curl
Source0: https://cpan.metacpan.org/authors/id/S/SZ/SZBALINT/WWW-Curl-%{version}.tar.gz
Patch0: WWW-Curl-4.17-Skip-preprocessor-symbol-only-CURL_STRICTER.patch
+# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=941915
+Patch1: WWW-Curl-4.17-define-CURL-as-void.patch
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-interpreter
@@ -14,7 +16,7 @@ BuildRequires: perl-generators
BuildRequires: perl(inc::Module::Install)
BuildRequires: perl(Carp)
BuildRequires: perl(Exporter)
-BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(File::Temp)
%{?_with_network_tests: BuildRequires: perl(lib) }
BuildRequires: perl(strict)
@@ -23,7 +25,7 @@ BuildRequires: perl(Test::More)
BuildRequires: perl(warnings)
BuildRequires: perl(XSLoader)
BuildRequires: libcurl-devel
-Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
+Requires: perl(:MODULE_COMPAT_%(eval "$(/usr/bin/perl -V:version)"; echo $version))
%{?perl_default_filter}
@@ -33,16 +35,15 @@ WWW::Curl is a Perl extension interface for libcurl.
%prep
%setup -q -n WWW-Curl-%{version}
%patch0 -p1
+%patch1 -p1
rm -rf inc && sed -i -e '/^inc\//d' MANIFEST
%build
-perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
-make %{?_smp_mflags}
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1 NO_PERLLOCAL=1
+%{make_build}
%install
-make pure_install DESTDIR=$RPM_BUILD_ROOT
-find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
-find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
+%{make_install}
%{_fixperms} $RPM_BUILD_ROOT/*
%check
@@ -61,12 +62,19 @@ find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
make test
%files
-%doc Changes LICENSE README
+%doc Changes README
+%license LICENSE
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/WWW*
%{_mandir}/man3/*
%changelog
+* Fri Oct 18 2019 Emmanuel Seyman <emmanuel@seyman.fr> - 4.17-21
+- Add Debian patch to fix build (#1754813)
+- Replace call to perl with /usr/bin/perl
+- Replace call to "make pure_install" with %%{make_install}
+- Replace call to make with %%{make_build}
+
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.17-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
reply other threads:[~2026-08-02 10:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178566511355.1.10197117050838359730.rpms-perl-WWW-Curl-07606974e74c@fedoraproject.org \
--to=emmanuel@seyman.fr \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox