libuv1.git
5 years agoMerge libuv1 (1.40.0-1) import into refs/heads/workingbranch
Dominique Dumont [Sat, 31 Oct 2020 17:43:46 +0000 (17:43 +0000)]
Merge libuv1 (1.40.0-1) import into refs/heads/workingbranch

5 years agoSkip multicast test
Dominique Dumont [Sat, 31 Oct 2020 17:43:46 +0000 (17:43 +0000)]
Skip multicast test

Forwarded: not-needed

Skip muliticast test to avoid this error on all build daemons:

ok 346 - udp_multicast_interface6
not ok 347 - udp_multicast_join
# timeout
# Output from process `udp_multicast_join`: (no output)
not ok 348 - udp_multicast_join6
# timeout
# Output from process `udp_multicast_join6`: (no output)
ok 349 - udp_multicast_ttl

Gbp-Pq: Name skip-multicast-test

5 years agofix undefined path_max for st_size zero
Mauricio Faria de Oliveira [Sat, 31 Oct 2020 17:43:46 +0000 (17:43 +0000)]
fix undefined path_max for st_size zero

Bug-Ubuntu: https://bugs.launchpad.net/bugs/1792647
Bug-Debian: https://bugs.debian.org/909011
Reviewed-by: dod
The downstream 'path_max' patch in Debian sets the buffer size
for readlink() to the 'st_size' value obtained with lstat().

However, it might be zero for some symlinks in /proc on Linux
(notably /proc/self) leading to readlink() failing with EINVAL.

    $ strace -e lstat stat /proc/self 2>&1 \
        | grep -e lstat -e File: -e Size:
    lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
      File: /proc/self -> 30875
      Size: 0             Blocks: 0          IO Block: 1024   symbolic link

This causes readlink (tool) to files like /dev/stdin to fail,
which may link to /proc/self/fd/0 on containers or elsewhere.

Test-case:

    ubuntu@cosmic:~/node$
    $ strace -E LD_LIBRARY_PATH=/usr/local/lib/ -f -e lstat,readlink \
      node test/parallel/test-fs-realpath-pipe.js

With path_max:

    [pid 17785] lstat("/dev", {st_mode=S_IFDIR|0755, st_size=480, ...}) = 0
    [pid 17786] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 17788] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 17788] readlink("/dev/stdin", "/proc/self/fd/0", 15) = 15

    [pid 17785] lstat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 17786] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 17788] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 17788] readlink("/proc/self", 0x7f2a6c000b40, 0) = -1 EINVAL (Invalid argument)

Without path_max:

    [pid 18114] lstat("/dev", {st_mode=S_IFDIR|0755, st_size=480, ...}) = 0
    [pid 18114] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 18114] readlink("/dev/stdin", "/proc/self/fd/0", 4096) = 15

    [pid 18114] lstat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18114] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 18114] readlink("/proc/self", "18114", 4096) = 5

    [pid 18114] lstat("/proc/18114", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18114] lstat("/proc/18114/fd", {st_mode=S_IFDIR|0500, st_size=0, ...}) = 0
    [pid 18114] lstat("/proc/18114/fd/0", {st_mode=S_IFLNK|0700, st_size=64, ...}) = 0
    [pid 18114] readlink("/proc/18114/fd/0", "socket:[199607]", 4096) = 15

With this patch on top of path_max:

    [pid 18433] lstat("/dev", {st_mode=S_IFDIR|0755, st_size=480, ...}) = 0
    [pid 18433] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 18433] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
    [pid 18433] readlink("/dev/stdin", "/proc/self/fd/0", 15) = 15

    [pid 18433] lstat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 18433] readlink("/proc/self", "18433", 256) = 5

    [pid 18433] lstat("/proc/18433", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/18433/fd", {st_mode=S_IFDIR|0500, st_size=0, ...}) = 0
    [pid 18433] lstat("/proc/18433/fd/0", {st_mode=S_IFLNK|0700, st_size=64, ...}) = 0
    [pid 18433] lstat("/proc/18433/fd/0", {st_mode=S_IFLNK|0700, st_size=64, ...}) = 0
    [pid 18433] readlink("/proc/18433/fd/0", "socket:[191351]", 64) = 15
Reviewed-by: dod
Gbp-Pq: Name path_max_zero_st_size

5 years agoexport RES_OPTIONS = attempts:0 makes this test fail
Jérémy Lal [Sat, 31 Oct 2020 17:43:46 +0000 (17:43 +0000)]
export RES_OPTIONS = attempts:0 makes this test fail

Last-Update: 2017-10-12
Forwarded: not-needed

Gbp-Pq: Name disable_ipv6_test.patch

5 years agoWorkaround for test failure on old sparc kernels
Luca BRUNO [Sat, 31 Oct 2020 17:43:46 +0000 (17:43 +0000)]
Workaround for test failure on old sparc kernels

Forwarded: not-needed

Gbp-Pq: Name sparc-skip-tcp_oob.diff

5 years agolibuv1 (1.40.0-1) unstable; urgency=medium
Dominique Dumont [Sat, 31 Oct 2020 17:43:46 +0000 (17:43 +0000)]
libuv1 (1.40.0-1) unstable; urgency=medium

  * new upstream version
  * update copyright with cme
  * refreshed patch
  * update symbol file

[dgit import unpatched libuv1 1.40.0-1]

5 years agoImport libuv1_1.40.0.orig.tar.gz
Dominique Dumont [Sat, 31 Oct 2020 17:43:46 +0000 (17:43 +0000)]
Import libuv1_1.40.0.orig.tar.gz

[dgit import orig libuv1_1.40.0.orig.tar.gz]

5 years agoImport libuv1_1.40.0-1.debian.tar.xz
Dominique Dumont [Sat, 31 Oct 2020 17:43:46 +0000 (17:43 +0000)]
Import libuv1_1.40.0-1.debian.tar.xz

[dgit import tarball libuv1 1.40.0-1 libuv1_1.40.0-1.debian.tar.xz]

9 years agotest: skip tty_pty test if pty is not available
Luca Bruno [Sun, 23 Oct 2016 13:36:45 +0000 (14:36 +0100)]
test: skip tty_pty test if pty is not available

Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
Forwarded: yes, accepted already: https://github.com/libuv/libuv/pull/919
Last-Update: Sun, 19 Jun 2016 18:20:53 +0200

Do not let `tty_pty` test fail if no terminals are available
to `openpty()`.

Gbp-Pq: Name skip_test_if_no_pty.patch

9 years agokfreebsd port
Jérémy Lal [Sun, 23 Oct 2016 13:36:45 +0000 (14:36 +0100)]
kfreebsd port

Last-Update: 2015-09-19
Forwarded: not yet

===================================================================

Gbp-Pq: Name kfreebsd.patch

9 years agoWorkaround for test failure on old sparc kernels
Luca BRUNO [Sun, 23 Oct 2016 13:36:45 +0000 (14:36 +0100)]
Workaround for test failure on old sparc kernels

Forwarded: not-needed

Gbp-Pq: Name sparc-skip-tcp_oob.diff

9 years ago[PATCH] unix: use libc-provided epoll_pwait wrapper
Luca Bruno [Tue, 12 May 2015 20:04:35 +0000 (22:04 +0200)]
[PATCH] unix: use libc-provided epoll_pwait wrapper

Bug-Debian: https://bugs.debian.org/841354

Signed-off-by: Luca Bruno <lucab@debian.org>
We now use epoll_pwait() wrapper from libc, which takes care
of passing proper sigset_t size to kernel.

This is more portable, as some arch have a larger sigmask and
kernel explicitely checks size parameter to match sizeof(sigset_t).
Spotted as a uv_loop_configure regression on MIPS.

This fixes #335.

Many thanks to Tobias Leich who amended this
patch to fix #841354

Gbp-Pq: Name mips-epoll_pwait.diff

9 years agolibuv1 (1.9.1-3) unstable; urgency=medium
Mattia Rizzolo [Sun, 23 Oct 2016 13:36:45 +0000 (14:36 +0100)]
libuv1 (1.9.1-3) unstable; urgency=medium

  * Team upload.
  * Make libuv1-dev libkvm-dev on kfreebsd-any.  (Closes: #834563)
  * Bump Standards-Version to 3.9.8, no changes needed.
  * Add patch from upstream to don't fail the build if /dev/pty is not present.

[dgit import unpatched libuv1 1.9.1-3]

9 years agoImport libuv1_1.9.1-3.debian.tar.xz
Mattia Rizzolo [Sun, 23 Oct 2016 13:36:45 +0000 (14:36 +0100)]
Import libuv1_1.9.1-3.debian.tar.xz

[dgit import tarball libuv1 1.9.1-3 libuv1_1.9.1-3.debian.tar.xz]

9 years agoImport libuv1_1.9.1.orig.tar.gz
Luca Bruno [Sun, 29 May 2016 17:29:08 +0000 (18:29 +0100)]
Import libuv1_1.9.1.orig.tar.gz

[dgit import orig libuv1_1.9.1.orig.tar.gz]