commit a73562ad40d535e37ecd94f322b8426793fd86d9 Author: Petr Písař <ppisar@xxxxxxxxxx> Date: Thu Jun 21 16:06:25 2012 +0200 Restore compatibility with perl 5.16 perl-threads-lite.spec | 4 ++++ threads-lite-0.031-require-feature.patch | 24 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 0 deletions(-) --- diff --git a/perl-threads-lite.spec b/perl-threads-lite.spec index 8767c9f..68d1072 100644 --- a/perl-threads-lite.spec +++ b/perl-threads-lite.spec @@ -6,6 +6,8 @@ License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/threads-lite/ Source0: http://www.cpan.org/authors/id/L/LE/LEONT/threads-lite-%{version}.tar.gz +# Restore compatibility with perl 5.16, RT#77947 +Patch0: threads-lite-0.031-require-feature.patch BuildRequires: perl(ExtUtils::CBuilder) BuildRequires: perl(Module::Build) # Test time only: @@ -32,6 +34,7 @@ queues. It thus facilitates a message passing style of multi-threading. %prep %setup -q -n threads-lite-%{version} +%patch0 -p1 %build %{__perl} Build.PL installdirs=vendor optimize="$RPM_OPT_FLAGS" @@ -57,6 +60,7 @@ find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %changelog * Thu Jun 14 2012 Petr Pisar <ppisar@xxxxxxxxxx> - 0.031-7 - Perl 5.16 rebuild +- Restore compatibility with perl 5.16, RT#77947 * Sat Feb 25 2012 Karsten Hopp <karsten@xxxxxxxxxx> 0.031-6 - fix arch check diff --git a/threads-lite-0.031-require-feature.patch b/threads-lite-0.031-require-feature.patch new file mode 100644 index 0000000..5c1a14e --- /dev/null +++ b/threads-lite-0.031-require-feature.patch @@ -0,0 +1,24 @@ +From 533cb277fac9df224ee63c8088e946b790ee44d3 Mon Sep 17 00:00:00 2001 +From: Leon Timmermans <fawaka@xxxxxxxxx> +Date: Sun, 5 Feb 2012 11:27:42 +0100 +Subject: [PATCH] require feature + +--- + lib/threads/lite.pm | 1 + + 1 files changed, 1 insertions(+), 0 deletions(-) + +diff --git a/lib/threads/lite.pm b/lib/threads/lite.pm +index 3190998..5acfb7c 100644 +--- a/lib/threads/lite.pm ++++ b/lib/threads/lite.pm +@@ -23,6 +23,7 @@ require threads::lite::tid; + use threads::lite::queue; + + sub import { ++ require feature; + feature->import('switch'); + goto &Exporter::import; + } +-- +1.7.7.6 + -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel