pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/graphics/mesa
Module Name: pkgsrc
Committed By: wiz
Date: Tue Dec 1 11:55:54 UTC 2026
Modified Files:
pkgsrc/graphics/mesa: Makefile distinfo
Added Files:
pkgsrc/graphics/mesa/patches: patch-src_util_os__misc.c
Log Message:
mesa: remove another atexit()
fixes vulkaninfo segfault
Bump PKGREVISION.
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 pkgsrc/graphics/mesa/Makefile
cvs rdiff -u -r1.8 -r1.9 pkgsrc/graphics/mesa/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/graphics/mesa/patches/patch-src_util_os__misc.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/graphics/mesa/Makefile
diff -u pkgsrc/graphics/mesa/Makefile:1.9 pkgsrc/graphics/mesa/Makefile:1.10
--- pkgsrc/graphics/mesa/Makefile:1.9 Mon Nov 30 09:08:27 2026
+++ pkgsrc/graphics/mesa/Makefile Tue Dec 1 11:55:53 2026
@@ -1,10 +1,10 @@
-# $NetBSD: Makefile,v 1.9 2026/11/30 09:08:27 wiz Exp $
+# $NetBSD: Makefile,v 1.10 2026/12/01 11:55:53 wiz Exp $
#
# needs recursive bumps for _every_ update due to
# lib/libgallium-${PKGVERSION}.so
DISTNAME= mesa-26.3.1
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= graphics
MASTER_SITES= https://mesa.freedesktop.org/archive/
MASTER_SITES+= https://mesa3d.org/archive/
Index: pkgsrc/graphics/mesa/distinfo
diff -u pkgsrc/graphics/mesa/distinfo:1.8 pkgsrc/graphics/mesa/distinfo:1.9
--- pkgsrc/graphics/mesa/distinfo:1.8 Mon Nov 30 09:08:27 2026
+++ pkgsrc/graphics/mesa/distinfo Tue Dec 1 11:55:53 2026
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.8 2026/11/30 09:08:27 wiz Exp $
+$NetBSD: distinfo,v 1.9 2026/12/01 11:55:53 wiz Exp $
BLAKE2s (mesa-26.3.1.tar.xz) = fc011f0c8dda9d33b2d606e624c187cc6b1d6f15dcaa0df72fac6bd919cb0682
SHA512 (mesa-26.3.1.tar.xz) = 9d56fe98a0b3199f671363c1e3c195eaf5a7465cff6b4fddf6663ca2272537f950b666c466468f5e94318d660f6ef503c4e523feda42c0d1ef89b31392a26272
@@ -21,6 +21,7 @@ SHA1 (patch-src_util_build__id.c) = 7a95
SHA1 (patch-src_util_futex.c) = 4ad0d60e008fe8b5a4bb600e32e8f155d6c95b37
SHA1 (patch-src_util_futex.h) = a4a2827406102d855bb8afadecb7ce5a42fd5ecd
SHA1 (patch-src_util_os__file.c) = c80d88255a8f800d1e36fc199f3869ecdb61d203
+SHA1 (patch-src_util_os__misc.c) = e84970c88013282a077c6c0bc63f32dd6ee3696c
SHA1 (patch-src_util_u__process.c) = 14d529958d66859723172cc4cb84523d8ff6f7e7
SHA1 (patch-src_util_u__queue.c) = b4b902b53e0b72d00da2b376f143da736805f21b
SHA1 (patch-src_vulkan_wsi_wsi__common__wayland.c) = 1b8017f21855e01183a2343af64cf7fc8ca13ebe
Added files:
Index: pkgsrc/graphics/mesa/patches/patch-src_util_os__misc.c
diff -u /dev/null pkgsrc/graphics/mesa/patches/patch-src_util_os__misc.c:1.1
--- /dev/null Tue Dec 1 11:55:54 2026
+++ pkgsrc/graphics/mesa/patches/patch-src_util_os__misc.c Tue Dec 1 11:55:53 2026
@@ -0,0 +1,36 @@
+$NetBSD: patch-src_util_os__misc.c,v 1.1 2026/12/01 11:55:53 wiz Exp $
+
+avoid atexit in shared libraries.
+https://gitlab.freedesktop.org/mesa/mesa/-/work_items/17072
+
+--- src/util/os_misc.c.orig 2026-12-01 11:49:53.813052215 +0000
++++ src/util/os_misc.c
+@@ -291,13 +291,18 @@ static simple_mtx_t options_tbl_mtx = SIMPLE_MTX_INITI
+ static bool options_tbl_exited = false;
+ static simple_mtx_t options_tbl_mtx = SIMPLE_MTX_INITIALIZER;
+
++static bool options_tbl_inited = false;
++
+ /**
+ * NOTE: The strings that allocated with ralloc_strdup(options_tbl, ...)
+ * are freed by _mesa_hash_table_destroy automatically
+ */
+-static void
++static void __attribute__((__destructor__))
+ options_tbl_fini(void)
+ {
++ if (!options_tbl_inited)
++ return;
++
+ simple_mtx_lock(&options_tbl_mtx);
+ _mesa_hash_table_destroy(options_tbl, NULL);
+ options_tbl = NULL;
+@@ -321,7 +326,7 @@ os_get_option_cached(const char *name)
+ if (options_tbl == NULL) {
+ goto exit_mutex;
+ }
+- atexit(options_tbl_fini);
++ options_tbl_inited = true;
+ }
+ struct hash_entry *entry = _mesa_hash_table_search(options_tbl, name);
+ if (entry) {
Home |
Main Index |
Thread Index |
Old Index