Skip to content

Commit 8d49868

Browse files
committed
fix(pkg): compat.opencl is a static library on macOS; compat.eui-neo pins the complete glib
The macOS shared link failed on std::__1::ios_base::Init::Init(), the same constraint compat.vulkan's APPLE_STATIC_LOADER answers; the loader is static there. compat.eui-neo pinned xim:glib@2.80.0, whose payload has no bin/ while the recipe (xim-pkgindex #754) declares fifteen programs, so every install ended with 'registered none of its declared programs'; the pin moves to 2.88.3, the payload the recipe was written for. Measured with tests/examples/eui-neo-tray on this machine.
1 parent 86a64bd commit 8d49868

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎pkgs/c/compat.opencl.lua‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,11 @@ package = {
140140
-- loader's own answer and what tests/examples/opencl asserts.
141141
-- Apple's OpenCL framework is not involved: a program that links
142142
-- this package dispatches through this loader, not the framework.
143-
targets = { ["opencl"] = { kind = "shared", soname = "libOpenCL.1.dylib" } },
143+
-- A STATIC library here, as compat.vulkan is on macOS: a shared
144+
-- link of a C library under mcpp's macOS toolchain fails on
145+
-- `std::__1::ios_base::Init::Init()`, and the one-loader-per-
146+
-- process argument that makes the Linux build shared has no ICD
147+
-- ecosystem to apply to on this platform.
144148
sources = {
145149
"*/loader/linux/icd_linux.c",
146150
"*/loader/linux/icd_linux_envvars.c",

‎pkgs/e/compat.eui-neo.lua‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ package = {
103103
-- per-version `deps` does not take effect (see the note in
104104
-- compat.glx-runtime, established the same way).
105105
deps = {
106-
"xim:glib@2.80.0",
106+
"xim:glib@2.88.3",
107107
runtime = {
108108
"xim:zlib", "xim:pcre2", "xim:libffi",
109109
"xim:libselinux", "xim:util-linux",

0 commit comments

Comments
 (0)