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
This commit is contained in:
Ismail Dönmez 2018-10-12 07:37:45 +00:00 committed by Git OBS Bridge
parent a5a4cf30a1
commit 36910319bc
5 changed files with 57 additions and 8 deletions

26
fix_tests.patch Normal file
View File

@ -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)

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:772f93776ba68a357b515cda1515ce898674ef6cde30826d0cac64ce9950ebb0
size 1167950

3
libuv-1.23.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:30af979c4f4b8d1b895ae6d115f7400c751542ccb9e656350fc89fda08d4eabd
size 1192529

View File

@ -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

View File

@ -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