pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/graphics/shader-slang/patches
Module Name: pkgsrc
Committed By: ktnb
Date: Fri Sep 25 17:16:20 UTC 2026
Added Files:
pkgsrc/graphics/shader-slang/patches:
patch-source_core_slang-platform.cpp
Log Message:
shader-slang: fixed shared lib bug on Darwin
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
pkgsrc/graphics/shader-slang/patches/patch-source_core_slang-platform.cpp
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/graphics/shader-slang/patches/patch-source_core_slang-platform.cpp
diff -u /dev/null pkgsrc/graphics/shader-slang/patches/patch-source_core_slang-platform.cpp:1.1
--- /dev/null Fri Sep 25 17:16:20 2026
+++ pkgsrc/graphics/shader-slang/patches/patch-source_core_slang-platform.cpp Fri Sep 25 17:16:20 2026
@@ -0,0 +1,20 @@
+$NetBSD: patch-source_core_slang-platform.cpp,v 1.1 2026/09/25 17:16:20 ktnb Exp $
+
+Fix missing dylibs on Darwin
+
+--- source/core/slang-platform.cpp.orig 2026-09-25 15:20:55.776172514 +0000
++++ source/core/slang-platform.cpp
+@@ -322,6 +322,13 @@ SLANG_COMPILE_TIME_ASSERT(E_OUTOFMEMORY
+ platformFileName = nullptr;
+ const auto mode = RTLD_NOW | RTLD_LOCAL | (isUnclosable ? RTLD_NODELETE : 0);
+ void* h = dlopen(platformFileName, mode);
++#if defined(__APPLE__)
++ if (!h && platformFileName && !strchr(platformFileName, '/'))
++ {
++ String rel = String("@loader_path/") + platformFileName;
++ h = dlopen(rel.getBuffer(), mode);
++ }
++#endif
+ if (!h)
+ {
+ #if 0
Home |
Main Index |
Thread Index |
Old Index