public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/perl-WWW-Curl] epel10: fix FTBFS with Debian patch
@ 2026-08-02 10:05 Emmanuel Seyman
0 siblings, 0 replies; only message in thread
From: Emmanuel Seyman @ 2026-08-02 10:05 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-02 10:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-02 10:05 [rpms/perl-WWW-Curl] epel10: fix FTBFS with Debian patch Emmanuel Seyman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox