commit 15f3e4b4da773b56ab952f5c805b9c2d8d0ac7ce
Author: Petr Šabata <contyk(a)redhat.com>
Date: Thu Jul 18 18:08:30 2013 +0200
Disable the SO_REUSEPORT test; koji builders don't support this feature yet
IO-Socket-IP-so_reuseport.patch | 12 ++++++++++++
perl-IO-Socket-IP.spec | 7 ++++++-
2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/IO-Socket-IP-so_reuseport.patch b/IO-Socket-IP-so_reuseport.patch
new file mode 100644
index 0000000..9cf625b
--- /dev/null
+++ b/IO-Socket-IP-so_reuseport.patch
@@ -0,0 +1,12 @@
+diff --git a/t/11sockopts.t b/t/11sockopts.t
+index 02f733c..e11051a 100644
+--- a/t/11sockopts.t
++++ b/t/11sockopts.t
+@@ -28,6 +28,7 @@ TODO: {
+ SKIP: {
+ # Some OSes don't implement SO_REUSEPORT
+ skip "No SO_REUSEPORT", 1 unless defined eval { SO_REUSEPORT };
++ skip "Koji builders don't support SO_REUSEPORT", 1;
+
+ my $sock = IO::Socket::IP->new(
+ LocalHost => "127.0.0.1",
diff --git a/perl-IO-Socket-IP.spec b/perl-IO-Socket-IP.spec
index d1ae8ac..fccb2ee 100644
--- a/perl-IO-Socket-IP.spec
+++ b/perl-IO-Socket-IP.spec
@@ -1,11 +1,12 @@
Name: perl-IO-Socket-IP
Version: 0.21
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Drop-in replacement for IO::Socket::INET supporting both IPv4 and IPv6
License: GPL+ or Artistic
Group: Development/Libraries
URL:
http://search.cpan.org/dist/IO-Socket-IP/
Source0:
http://www.cpan.org/authors/id/P/PE/PEVANS/IO-Socket-IP-%{version}.tar.gz
+Patch0: IO-Socket-IP-so_reuseport.patch
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl(base)
@@ -33,6 +34,7 @@ arguments and methods are provided in a backward-compatible way.
%prep
%setup -q -n IO-Socket-IP-%{version}
+%patch0 -p1
%build
perl Build.PL installdirs=vendor
@@ -53,6 +55,9 @@ rm -f t/21nonblocking-connect-internet.t
%{_mandir}/man3/*
%changelog
+* Thu Jul 18 2013 Petr Šabata <contyk(a)redhat.com> - 0.21-2
+- Disable the SO_REUSEPORT test; koji builders don't support this feature yet
+
* Mon Apr 29 2013 Petr Šabata <contyk(a)redhat.com> - 0.21-1
- 0.21 bump