From 36910319bc3be25970d62085dbc36306f8ebd19b4c359d6513b85414f678c88a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Fri, 12 Oct 2018 07:37:45 +0000 Subject: [PATCH] Accepting request 641296 from home:adamm:branches:devel:libraries:c_c++ - Update to version 1.23.2: * unix: return 0 retrieving rss on cygwin * unix: initialize uv_interface_address_t.phys_addr * test: handle uv_os_setpriority() windows edge case * tty, win: fix read stop for raw mode * Revert "Revert "unix,fs: fix for potential partial reads/writes"" * unix,readv: always permit partial reads to return * win,tty: fix uv_tty_close() * doc: remove extraneous "on * unix,win: fix threadpool race condition * unix: rework thread barrier implementation * unix: signal done to last thread barrier waiter * unix: optimize uv_fs_readlink() memory allocation For complete changelog please see https://github.com/libuv/libuv/releases * install license as %license * fix_tests.patch: fix unit tests on OBS OBS-URL: https://build.opensuse.org/request/show/641296 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libuv?expand=0&rev=25 --- fix_tests.patch | 26 ++++++++++++++++++++++++++ libuv-1.18.0.tar.gz | 3 --- libuv-1.23.2.tar.gz | 3 +++ libuv.changes | 21 +++++++++++++++++++++ libuv.spec | 12 +++++++----- 5 files changed, 57 insertions(+), 8 deletions(-) create mode 100644 fix_tests.patch delete mode 100644 libuv-1.18.0.tar.gz create mode 100644 libuv-1.23.2.tar.gz diff --git a/fix_tests.patch b/fix_tests.patch new file mode 100644 index 0000000..3995203 --- /dev/null +++ b/fix_tests.patch @@ -0,0 +1,26 @@ +Index: libuv-1.23.2/test/test-getnameinfo.c +=================================================================== +--- libuv-1.23.2.orig/test/test-getnameinfo.c ++++ libuv-1.23.2/test/test-getnameinfo.c +@@ -39,6 +39,8 @@ static void getnameinfo_req(uv_getnamein + const char* hostname, + const char* service) { + ASSERT(handle != NULL); ++ if (status != 0) ++ fprintf(stderr, " status: %d\n", status); + ASSERT(status == 0); + ASSERT(hostname != NULL); + ASSERT(service != NULL); +Index: libuv-1.23.2/test/test-list.h +=================================================================== +--- libuv-1.23.2.orig/test/test-list.h ++++ libuv-1.23.2/test/test-list.h +@@ -746,7 +746,7 @@ TASK_LIST_START + + TEST_ENTRY (getnameinfo_basic_ip4) + TEST_ENTRY (getnameinfo_basic_ip4_sync) +- TEST_ENTRY (getnameinfo_basic_ip6) ++// TEST_ENTRY (getnameinfo_basic_ip6) // broken on OBS because no network to resolve ::1 => hostname + + TEST_ENTRY (getsockname_tcp) + TEST_ENTRY (getsockname_udp) diff --git a/libuv-1.18.0.tar.gz b/libuv-1.18.0.tar.gz deleted file mode 100644 index a7157bc..0000000 --- a/libuv-1.18.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:772f93776ba68a357b515cda1515ce898674ef6cde30826d0cac64ce9950ebb0 -size 1167950 diff --git a/libuv-1.23.2.tar.gz b/libuv-1.23.2.tar.gz new file mode 100644 index 0000000..e414322 --- /dev/null +++ b/libuv-1.23.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:30af979c4f4b8d1b895ae6d115f7400c751542ccb9e656350fc89fda08d4eabd +size 1192529 diff --git a/libuv.changes b/libuv.changes index 29f758f..df7637c 100644 --- a/libuv.changes +++ b/libuv.changes @@ -1,3 +1,24 @@ +------------------------------------------------------------------- +Thu Oct 11 14:05:40 UTC 2018 - adam.majer@suse.de + +- Update to version 1.23.2: + * unix: return 0 retrieving rss on cygwin + * unix: initialize uv_interface_address_t.phys_addr + * test: handle uv_os_setpriority() windows edge case + * tty, win: fix read stop for raw mode + * Revert "Revert "unix,fs: fix for potential partial reads/writes"" + * unix,readv: always permit partial reads to return + * win,tty: fix uv_tty_close() + * doc: remove extraneous "on + * unix,win: fix threadpool race condition + * unix: rework thread barrier implementation + * unix: signal done to last thread barrier waiter + * unix: optimize uv_fs_readlink() memory allocation + For complete changelog please see + https://github.com/libuv/libuv/releases +* install license as %license +* fix_tests.patch: fix unit tests on OBS + ------------------------------------------------------------------- Sun Dec 24 22:24:45 UTC 2017 - avindra@opensuse.org diff --git a/libuv.spec b/libuv.spec index 5ff89a1..43c9e85 100644 --- a/libuv.spec +++ b/libuv.spec @@ -1,7 +1,7 @@ # # spec file for package libuv # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %define somajor 1 Name: libuv -Version: 1.18.0 +Version: 1.23.2 Release: 0 Summary: Asychronous I/O support library License: MIT @@ -29,6 +29,7 @@ Url: http://libuv.org # Source1: http://dist.libuv.org/dist/v%{version}/libuv-v%{version}.tar.gz.sign # Source2: %{name}.keyring Source0: https://github.com/libuv/libuv/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +Patch1: fix_tests.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool @@ -63,6 +64,7 @@ Mozilla's Rust language, Luvit, Julia, pyuv, and others. %prep %setup -q +%patch1 -p1 %build ./autogen.sh @@ -75,8 +77,7 @@ make %{?_smp_mflags} V=1 find %{buildroot} -type f -name "*.la" -delete -print %check -# Tests sadly fail -#make %{?_smp_mflags} check +make %{?_smp_mflags} check %post -n libuv%{somajor} -p /sbin/ldconfig %postun -n libuv%{somajor} -p /sbin/ldconfig @@ -85,7 +86,8 @@ find %{buildroot} -type f -name "*.la" -delete -print %{_libdir}/libuv.so.%{somajor}* %files devel -%doc AUTHORS CONTRIBUTING.md ChangeLog LICENSE README.md +%doc AUTHORS CONTRIBUTING.md ChangeLog README.md +%license LICENSE %{_libdir}/libuv.so %{_includedir}/uv* %{_libdir}/pkgconfig/libuv.pc