pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/libuv libuv: fix SIGABRT on NetBSD when building...
details: https://anonhg.NetBSD.org/pkgsrc/rev/d04cc725241c
branches: trunk
changeset: 371969:d04cc725241c
user: tnn <tnn%pkgsrc.org@localhost>
date: Mon Jan 17 01:38:53 2022 +0000
description:
libuv: fix SIGABRT on NetBSD when building lang/nodejs. Bump.
Upstream change that caused breakage:
https://github.com/libuv/libuv/pull/3286
diffstat:
devel/libuv/Makefile | 3 +-
devel/libuv/distinfo | 3 +-
devel/libuv/patches/patch-src_unix_bsd-proctitle.c | 29 ++++++++++++++++++++++
3 files changed, 33 insertions(+), 2 deletions(-)
diffs (59 lines):
diff -r f621bf350650 -r d04cc725241c devel/libuv/Makefile
--- a/devel/libuv/Makefile Sun Jan 16 23:51:22 2022 +0000
+++ b/devel/libuv/Makefile Mon Jan 17 01:38:53 2022 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.69 2022/01/16 22:50:38 wiz Exp $
+# $NetBSD: Makefile,v 1.70 2022/01/17 01:38:53 tnn Exp $
DISTNAME= libuv-1.43.0
+PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=libuv/}
GITHUB_TAG= v${PKGVERSION_NOREV}
diff -r f621bf350650 -r d04cc725241c devel/libuv/distinfo
--- a/devel/libuv/distinfo Sun Jan 16 23:51:22 2022 +0000
+++ b/devel/libuv/distinfo Mon Jan 17 01:38:53 2022 +0000
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.68 2022/01/16 22:50:38 wiz Exp $
+$NetBSD: distinfo,v 1.69 2022/01/17 01:38:53 tnn Exp $
BLAKE2s (libuv-1.43.0.tar.gz) = d058d220ac448170de1c2dd554e0ef0e6c362fddf181509ba8d3d416398ae715
SHA512 (libuv-1.43.0.tar.gz) = 66ee11f8f6fc1313c432858572789cf67acd6364b29a06c73323ab20626e2d6e3d3dcea748cf5d9d4368b40ad7fe0d5fd35e9369c22e531db523703f005248d3
Size (libuv-1.43.0.tar.gz) = 1295972 bytes
SHA1 (patch-autogen.sh) = a5f48189bfb17624c545a80626ea311b7755d232
+SHA1 (patch-src_unix_bsd-proctitle.c) = 95bc1a1014bbc9c8c073076fbd59f34fdb9a90c9
SHA1 (patch-src_unix_fs.c) = d5afe699254210d9724bf2d02ea4563a92666d4f
SHA1 (patch-src_unix_netbsd.c) = 071a2a853f9a73dc72e24d63316aa21b28669469
diff -r f621bf350650 -r d04cc725241c devel/libuv/patches/patch-src_unix_bsd-proctitle.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libuv/patches/patch-src_unix_bsd-proctitle.c Mon Jan 17 01:38:53 2022 +0000
@@ -0,0 +1,29 @@
+$NetBSD: patch-src_unix_bsd-proctitle.c,v 1.1 2022/01/17 01:38:53 tnn Exp $
+
+Only destroy the process title mutex if it had been initialized.
+
+--- src/unix/bsd-proctitle.c.orig 2022-01-04 14:18:00.000000000 +0000
++++ src/unix/bsd-proctitle.c
+@@ -27,6 +27,7 @@
+
+
+ static uv_mutex_t process_title_mutex;
++static int process_title_mutex_inited = 0;
+ static uv_once_t process_title_mutex_once = UV_ONCE_INIT;
+ static char* process_title;
+
+@@ -34,11 +35,13 @@ static char* process_title;
+ static void init_process_title_mutex_once(void) {
+ if (uv_mutex_init(&process_title_mutex))
+ abort();
++ process_title_mutex_inited = 1;
+ }
+
+
+ void uv__process_title_cleanup(void) {
+- uv_mutex_destroy(&process_title_mutex);
++ if (process_title_mutex_inited)
++ uv_mutex_destroy(&process_title_mutex);
+ }
+
+
Home |
Main Index |
Thread Index |
Old Index