From 2d6ce43e387c456bc66c8e9bb39d658bee970b58 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
Date: Mon, 13 Mar 2017 15:09:45 +0100
Subject: Work around Qt::TcpSocket::connetctToHost() IPv6 deficiency

---
 perl-Qt.spec                                       |  9 ++++-
 ...-Qt-TcpSocket-connetctToHost-IPv6-deficie.patch | 38 ++++++++++++++++++++++
 2 files changed, 46 insertions(+), 1 deletion(-)
 create mode 100644 
perlqt-4.14.3-Work-around-Qt-TcpSocket-connetctToHost-IPv6-deficie.patch

diff --git a/perl-Qt.spec b/perl-Qt.spec
index 81b9064..e5586fb 100644
--- a/perl-Qt.spec
+++ b/perl-Qt.spec
@@ -2,7 +2,7 @@
 
 Name:           perl-Qt
 Version:        4.14.3
-Release:        6%{?dist}
+Release:        7%{?dist}
 Summary:        Perl bindings for Qt
 # qtcore/lib/QtCore4.pm:    GPL+ or Artistic
 # other files:              GPLv2+
@@ -30,6 +30,9 @@ Patch3:         
perlqt-4.14.3-Maintain-order-of-methodIds-when-running-them-thro
 Patch4:         
perlqt-4.14.3-Fix-isDerivedFrom-to-return-the-inheritance-distance.patch
 # 3/3 Fix method resolution, KDE bug #360846, in upstream after 4.14.3
 Patch5:         perlqt-4.14.3-Remove-unnecessary-isDerivedFrom-overload.patch
+# Work around Qt::TcpSocket::connetctToHost() IPv6 deficiency,
+# KDE bug #377563
+Patch6:         
perlqt-4.14.3-Work-around-Qt-TcpSocket-connetctToHost-IPv6-deficie.patch
 BuildRequires:  coreutils
 BuildRequires:  cmake
 BuildRequires:  gcc-c++
@@ -98,6 +101,7 @@ Development files for perl-Qt.
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
+%patch6 -p1
 
 mkdir build
 
@@ -175,6 +179,9 @@ export PERL5LIB="$PWD/blib/lib:$PWD/blib/arch"
 %{_datadir}/perlqt
 
 %changelog
+* Mon Mar 13 2017 Petr Pisar <ppi...@redhat.com> - 4.14.3-7
+- Work around Qt::TcpSocket::connetctToHost() IPv6 deficiency (KDE bug #377563)
+
 * Sat Feb 11 2017 Fedora Release Engineering <rel...@fedoraproject.org> - 
4.14.3-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
 
diff --git 
a/perlqt-4.14.3-Work-around-Qt-TcpSocket-connetctToHost-IPv6-deficie.patch 
b/perlqt-4.14.3-Work-around-Qt-TcpSocket-connetctToHost-IPv6-deficie.patch
new file mode 100644
index 0000000..28a0ff9
--- /dev/null
+++ b/perlqt-4.14.3-Work-around-Qt-TcpSocket-connetctToHost-IPv6-deficie.patch
@@ -0,0 +1,38 @@
+From b8e249ac45b4f0e681e81a3f54a81223a62ac9f7 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
+Date: Mon, 13 Mar 2017 15:05:40 +0100
+Subject: [PATCH] Work around Qt::TcpSocket::connetctToHost() IPv6 deficiency
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+qtgui/t/networkfortune.t test hangs because server listens on
+0.0.0.0, but clients connects to ::1 instead of ::1 and then
+127.0.0.1. This is probably bug in Qt library, not in the Perl
+binding.
+
+This patch hacks the test to connect to 127.0.0.1 directly.
+
+<https://bugs.kde.org/show_bug.cgi?id=377563>
+
+Signed-off-by: Petr Písař <ppi...@redhat.com>
+---
+ qtgui/examples/network/fortuneclient/Client.pm | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/qtgui/examples/network/fortuneclient/Client.pm 
b/qtgui/examples/network/fortuneclient/Client.pm
+index ae54d50..278670b 100644
+--- a/qtgui/examples/network/fortuneclient/Client.pm
++++ b/qtgui/examples/network/fortuneclient/Client.pm
+@@ -66,7 +66,7 @@ sub NEW
+     this->{hostLabel} = Qt::Label(this->tr('&Server name:'));
+     this->{portLabel} = Qt::Label(this->tr('S&erver port:'));
+ 
+-    this->{hostLineEdit} = Qt::LineEdit('Localhost');
++    this->{hostLineEdit} = Qt::LineEdit('127.0.0.1');
+     this->{portLineEdit} = Qt::LineEdit();
+     this->portLineEdit->setValidator(Qt::IntValidator(1, 65535, this));
+ 
+-- 
+2.7.4
+
-- 
cgit v1.1


        
https://src.fedoraproject.org/cgit/perl-Qt.git/commit/?h=master&id=2d6ce43e387c456bc66c8e9bb39d658bee970b58
_______________________________________________
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org

Reply via email to