pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/libuv



Module Name:    pkgsrc
Committed By:   kikadf
Date:           Mon Oct 19 06:53:57 UTC 2026

Modified Files:
        pkgsrc/devel/libuv: Makefile distinfo
        pkgsrc/devel/libuv/patches: patch-src_unix_process.c

Log Message:
libuv: use fork instead of posix_spawn on NetBSD

while fix not available for:
PR kern/60653: posix_spawn(3) causes incorrect stack base information

Ok from @agc


To generate a diff of this commit:
cvs rdiff -u -r1.92 -r1.93 pkgsrc/devel/libuv/Makefile
cvs rdiff -u -r1.90 -r1.91 pkgsrc/devel/libuv/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/libuv/patches/patch-src_unix_process.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/libuv/Makefile
diff -u pkgsrc/devel/libuv/Makefile:1.92 pkgsrc/devel/libuv/Makefile:1.93
--- pkgsrc/devel/libuv/Makefile:1.92    Tue Sep 29 09:03:31 2026
+++ pkgsrc/devel/libuv/Makefile Mon Oct 19 06:53:57 2026
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.92 2026/09/29 09:03:31 adam Exp $
+# $NetBSD: Makefile,v 1.93 2026/10/19 06:53:57 kikadf Exp $
 
 DISTNAME=      libuv-1.53.0
+PKGREVISION=   1
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=libuv/}
 GITHUB_TAG=    v${PKGVERSION_NOREV}

Index: pkgsrc/devel/libuv/distinfo
diff -u pkgsrc/devel/libuv/distinfo:1.90 pkgsrc/devel/libuv/distinfo:1.91
--- pkgsrc/devel/libuv/distinfo:1.90    Thu Oct  1 08:43:33 2026
+++ pkgsrc/devel/libuv/distinfo Mon Oct 19 06:53:57 2026
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.90 2026/10/01 08:43:33 jperkin Exp $
+$NetBSD: distinfo,v 1.91 2026/10/19 06:53:57 kikadf Exp $
 
 BLAKE2s (libuv-1.53.0.tar.gz) = 1a173a316ef190946401984bb698011ec5ae9793ea07a41553d7ebc7596a2490
 SHA512 (libuv-1.53.0.tar.gz) = 8f26c14b016368a8e382539026e1fa3cf187a7cc8bd8b50498a9b26003e9da3e48a89f4d2032694e5f152cd4177386e259b85e8280cf814153ab58950d205014
@@ -7,7 +7,7 @@ SHA1 (patch-autogen.sh) = 99790076b91d57
 SHA1 (patch-src_unix_core.c) = f6dbe539369c01e9cb870be8063d8b199393883d
 SHA1 (patch-src_unix_fs.c) = 510693bb63cac7bf25e04c64e2d231de80b149d1
 SHA1 (patch-src_unix_netbsd.c) = 071a2a853f9a73dc72e24d63316aa21b28669469
-SHA1 (patch-src_unix_process.c) = a0a02a5e9602a0f31b1ed323af049eba90688b26
+SHA1 (patch-src_unix_process.c) = 498f4352f9f11234c9836db365fdcb035c2ec8d9
 SHA1 (patch-src_unix_tty.c) = 157be1b1272dc38b3605a9822316e6cb2ddb6f22
 SHA1 (patch-src_unix_udp.c) = 88e4c08c9413095dfa0132febbc99be2e299ee8f
 SHA1 (patch-test_test-fs.c) = 8b369d45f3f88c793eeeb6fd8d8177bba14fd0ac

Index: pkgsrc/devel/libuv/patches/patch-src_unix_process.c
diff -u pkgsrc/devel/libuv/patches/patch-src_unix_process.c:1.1 pkgsrc/devel/libuv/patches/patch-src_unix_process.c:1.2
--- pkgsrc/devel/libuv/patches/patch-src_unix_process.c:1.1     Thu Oct  1 08:43:33 2026
+++ pkgsrc/devel/libuv/patches/patch-src_unix_process.c Mon Oct 19 06:53:57 2026
@@ -1,10 +1,23 @@
-$NetBSD: patch-src_unix_process.c,v 1.1 2026/10/01 08:43:33 jperkin Exp $
+$NetBSD: patch-src_unix_process.c,v 1.2 2026/10/19 06:53:57 kikadf Exp $
 
 Backport https://github.com/libuv/libuv/pull/5284
 
---- src/unix/process.c.orig    2026-10-01 08:16:59.915766284 +0000
+On NetBSD use fork instead of posix_spawn, while fix not available for:
+PR kern/60653: posix_spawn(3) causes incorrect stack base information
+
+--- src/unix/process.c.orig    2026-09-24 14:33:47.000000000 +0000
 +++ src/unix/process.c
-@@ -610,11 +610,14 @@ static int uv__spawn_set_posix_spawn_fil
+@@ -490,6 +490,9 @@ static void uv__spawn_init_posix_spawn(v
+    * Unices in that it returns 0 instead of EACCES or ENOENT for paths
+    * that don't exist. See https://github.com/libuv/libuv/issues/5240.
+    */
++#elif defined(__NetBSD__)
++  /* PR kern/60653: posix_spawn(3) causes incorrect stack base information
++   */
+ #else
+ #if !defined(__linux__) && !defined(_AIX) && !defined(__PASE__)
+   posix_spawn_works = 1;
+@@ -610,11 +613,14 @@ static int uv__spawn_set_posix_spawn_fil
      const uv_process_options_t* options,
      int stdio_count,
      int (*pipes)[2]) {
@@ -19,7 +32,7 @@ Backport https://github.com/libuv/libuv/
    err = posix_spawn_file_actions_init(actions);
    if (err != 0) {
      /* If initialization fails, no need to de-init, just return */
-@@ -633,14 +636,25 @@ static int uv__spawn_set_posix_spawn_fil
+@@ -633,14 +639,25 @@ static int uv__spawn_set_posix_spawn_fil
        goto error;
    }
  
@@ -47,7 +60,7 @@ Backport https://github.com/libuv/libuv/
  #if defined(__APPLE__) || defined(__linux__)
      if (use_fd < 0 || use_fd >= fd)
        continue;
-@@ -656,24 +670,24 @@ static int uv__spawn_set_posix_spawn_fil
+@@ -656,24 +673,24 @@ static int uv__spawn_set_posix_spawn_fil
        /* If we were not setting POSIX_SPAWN_CLOEXEC_DEFAULT, we would need to
         * also consider whether fcntl(fd, F_GETFD) returned without the
         * FD_CLOEXEC flag set. */
@@ -76,7 +89,7 @@ Backport https://github.com/libuv/libuv/
      if (use_fd < 0) {
        if (fd >= 3)
          continue;
-@@ -702,20 +716,21 @@ static int uv__spawn_set_posix_spawn_fil
+@@ -702,20 +719,21 @@ static int uv__spawn_set_posix_spawn_fil
      if (err != 0)
        goto error;
  
@@ -103,7 +116,7 @@ Backport https://github.com/libuv/libuv/
            break;
      }
      if (fd2 < fd)
-@@ -727,9 +742,13 @@ static int uv__spawn_set_posix_spawn_fil
+@@ -727,9 +745,13 @@ static int uv__spawn_set_posix_spawn_fil
        goto error;
    }
  
@@ -117,7 +130,7 @@ Backport https://github.com/libuv/libuv/
    (void) posix_spawn_file_actions_destroy(actions);
    return err;
  }
-@@ -862,7 +881,6 @@ static int uv__spawn_and_init_child_posi
+@@ -862,7 +884,6 @@ static int uv__spawn_and_init_child_posi
    if (err != 0)
      goto error;
  



Home | Main Index | Thread Index | Old Index