head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2026.11.19.19.46.09; author kikadf; state Exp; branches; next ; commitid arZmplK8KuiRJ64H; desc @@ 1.1 log @ chromium: update to 158.0.8127.36 * 158.0.8127.36 This update includes 204 security fixes. Please see the Chrome Security Page for more information. See: https://chromereleases.googleblog.com/2026/11/stable-channel-update-for-desktop_01699533288.html @ text @$NetBSD$ * Part of patchset to build chromium on NetBSD * Based on OpenBSD's chromium patches, and pkgsrc's qt5-qtwebengine patches --- third_party/vulkan-loader/src/loader/vk_loader_platform.c.orig 2026-11-11 21:01:38.000000000 +0000 +++ third_party/vulkan-loader/src/loader/vk_loader_platform.c @@@@ -133,7 +133,29 @@@@ char *loader_platform_executable_path(co return buffer; } -#elif defined(__Fuchsia__) || defined(__OpenBSD__) +#elif defined(__OpenBSD__) +char *loader_platform_executable_path(const struct loader_instance *inst, bool *oom) { + size_t size = 1024; + char *buffer = loader_instance_heap_calloc(inst, size, VK_SYSTEM_ALLOCATION_SCOPE_COMMAND); + if (NULL == buffer) { + *oom = true; + return NULL; + } +#if (OpenBSD >= 202610) + char execpath[PATH_MAX]; + if (getexecpath(execpath, sizeof(execpath)) != 0) { + return NULL; + } + *buffer = execpath; +#else + if ((buffer = getenv("CHROME_EXE_PATH")) != NULL) + return buffer; + else + buffer = "/usr/local/chrome/chrome"; +#endif + return buffer; +} +#elif defined(__Fuchsia__) char *loader_platform_executable_path(const struct loader_instance *inst, bool *oom) { (void)inst; (void)oom; @