[meego-commits] 5918: Changes to Trunk:Testing/perl-Socket6

Wang Quanxian quanxian.wang at intel.com
Thu Jul 22 05:07:30 UTC 2010


Hi,
I have made the following changes to perl-Socket6 in project Trunk:Testing. Please review and accept ASAP.

Thank You,
Wang Quanxian

[This message was auto-generated]

---

Request #5918:

  submit:   home:quanxianwang:branches:Trunk:Testing/perl-Socket6(r3)(cleanup) -> Trunk:Testing/perl-Socket6


Message:
    change the localhost to 127.0.0.1 in test case to fix building issue

State:   new          2010-07-21T17:01:24 quanxianwang
Comment: None



changes files:
--------------
--- perl-Socket6.changes
+++ perl-Socket6.changes
@@ -0,0 +1,3 @@
+* Thu Jul 22 2010 Wang Quanxian <quanxian.wang at intel.com> 0.23
+- Change localhost to 127.0.0.1. Otherwise it will report name reso issue
+

new:
----
  test_case_localhost.patch

spec files:
-----------
--- perl-Socket6.spec
+++ perl-Socket6.spec
@@ -7,6 +7,7 @@
 License:        BSD
 URL:            http://search.cpan.org/dist/Socket6/
 Source0:        http://www.cpan.org/authors/id/U/UM/UMEMOTO/Socket6-%{version}.tar.gz
+Patch0:		test_case_localhost.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  perl(ExtUtils::MakeMaker)
@@ -21,6 +22,7 @@
 
 %prep
 %setup -q -n Socket6-%{version}
+%patch0 -p1 
 
 
 %build

other changes:
--------------

++++++ test_case_localhost.patch (new)
--- test_case_localhost.patch
+++ test_case_localhost.patch
+--- Socket6-0.23/t/use.t_orig	2010-07-22 20:53:08.457406279 +0800
++++ Socket6-0.23/t/use.t	2010-07-22 20:53:20.225406017 +0800
+@@ -35,7 +35,7 @@ use Socket;
+ BEGIN { plan tests => 3 }
+ 
+ use Socket6; ok(1);
+-my @tmp = getaddrinfo("localhost", "", AF_INET, SOCK_STREAM, 0, 0);
++my @tmp = getaddrinfo("127.0.01", "", AF_INET, SOCK_STREAM, 0, 0);
+ if ($#tmp >= 1) {
+     ok(2);
+ }



More information about the MeeGo-commits mailing list