git: a88204ae7b1d - main - lang/dotnet8: Pull in upstream patch
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 06 Sep 2025 20:01:23 UTC
The branch main has been updated by arrowd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=a88204ae7b1d8d002efd8eefa0dd24578d0ac969
commit a88204ae7b1d8d002efd8eefa0dd24578d0ac969
Author: Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2025-09-06 19:40:38 +0000
Commit: Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2025-09-06 20:01:18 +0000
lang/dotnet8: Pull in upstream patch
---
lang/dotnet8/Makefile | 2 +-
..._diagnostics_src_SOS_extensions_hostcoreclr.cpp | 24 ++++++++++++++++++++++
2 files changed, 25 insertions(+), 1 deletion(-)
diff --git a/lang/dotnet8/Makefile b/lang/dotnet8/Makefile
index 210cdf8e770d..654e3099bef0 100644
--- a/lang/dotnet8/Makefile
+++ b/lang/dotnet8/Makefile
@@ -1,7 +1,7 @@
PORTNAME= dotnet
DISTVERSIONPREFIX= v
DISTVERSION= ${DOTNETVERSION}.6
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= lang devel
MASTER_SITES= https://github.com/dotnet/dotnet/releases/download/${DISTVERSIONPREFIX}${DISTVERSION}/release.json?dummy=/:dotnetmanifest \
LOCAL/arrowd/dotnet/:bootstrap
diff --git a/lang/dotnet8/files/patch-src_diagnostics_src_SOS_extensions_hostcoreclr.cpp b/lang/dotnet8/files/patch-src_diagnostics_src_SOS_extensions_hostcoreclr.cpp
new file mode 100644
index 000000000000..09a320c03831
--- /dev/null
+++ b/lang/dotnet8/files/patch-src_diagnostics_src_SOS_extensions_hostcoreclr.cpp
@@ -0,0 +1,24 @@
+https://github.com/dotnet/diagnostics/pull/5547
+
+--- src/diagnostics/src/SOS/extensions/hostcoreclr.cpp.orig 2024-05-28 16:53:38 UTC
++++ src/diagnostics/src/SOS/extensions/hostcoreclr.cpp
+@@ -460,11 +460,6 @@ static HRESULT GetHostRuntime(std::string& coreClrPath
+ // If the hosting runtime isn't already set, use the runtime we are debugging
+ if (g_hostRuntimeDirectory == nullptr)
+ {
+-#if defined(HOST_FREEBSD)
+- TraceError("Hosting on NetBSD not supported\n");
+- return E_FAIL;
+-#else
+-
+ HRESULT Status = E_FAIL;
+ std::vector<ProbingStrategy> strategyList = {
+ { ProbeEnvVarInstallationHint, RuntimeHostingConstants::DotnetRootArchSpecificEnvVar }
+@@ -527,7 +522,6 @@ static HRESULT GetHostRuntime(std::string& coreClrPath
+ coreClrPath.append(DIRECTORY_SEPARATOR_STR_A);
+ coreClrPath.append(MAKEDLLNAME_A("coreclr"));
+ return S_OK;
+-#endif
+ }
+
+ /**********************************************************************\