lang/dotnet8: Remove port

Niche use case, not aligned with broad server application needs
This commit is contained in:
2025-04-18 14:47:54 +02:00
parent 58ff994957
commit 3165ac2661
13 changed files with 1 additions and 4207 deletions
+1
View File
@@ -1975,6 +1975,7 @@ korean/unfonts-extra
korean/uniksc
lang/basic256
lang/cbmbasic
lang/dotnet8
lang/erlang-runtime21
lang/erlang-runtime22
lang/erlang-runtime23
-1
View File
@@ -45,7 +45,6 @@
SUBDIR += dlang-tools
SUBDIR += dotnet
SUBDIR += dotnet-host
SUBDIR += dotnet8
SUBDIR += duktape
SUBDIR += duktape-lib
SUBDIR += ecl
-120
View File
@@ -1,120 +0,0 @@
PORTNAME= dotnet
DISTVERSIONPREFIX= v
DISTVERSION= ${DOTNETVERSION}.6
PORTREVISION= 3
CATEGORIES= lang devel
MASTER_SITES= https://github.com/dotnet/dotnet/releases/download/${DISTVERSIONPREFIX}${DISTVERSION}/release.json?dummy=/:dotnetmanifest \
LOCAL/arrowd/dotnet/:bootstrap
PKGNAMESUFFIX= 8
DISTFILES= release.json-${PORTVERSION}:dotnetmanifest \
${BOOTSTRAP_SOURCEBUILT_ARTIFACTS_DISTNAME}${EXTRACT_SUFX}:bootstrap \
${BOOTSTRAP_SDK_DISTNAME}${EXTRACT_SUFX}:bootstrap
DIST_SUBDIR= dotnet
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= arrowd@FreeBSD.org
COMMENT= Open-source developer platform and a cross-platform runtime for cloud, mobile, desktop, and IoT apps
WWW= https://dot.net
LICENSE= MIT
ONLY_FOR_ARCHS= aarch64 amd64
BUILD_DEPENDS= bash:shells/bash \
cmake:devel/cmake-core \
git:devel/git \
ggrep:textproc/gnugrep \
terminfo-db>0:misc/terminfo-db
LIB_DEPENDS= libicuuc.so:devel/icu \
libinotify.so:devel/libinotify \
libunwind.so:devel/libunwind
RUN_DEPENDS= terminfo-db>0:misc/terminfo-db \
dotnet:lang/dotnet-host
USES= autoreconf:build gssapi:mit llvm:noexport,max=17 nodejs pkgconfig \
python:build,3.9+ shebangfix ssl
USE_GITHUB= yes
SHEBANG_FILES= src/diagnostics/src/Tools/dotnet-trace/*.sh \
src/source-build-externals/src/azure-activedirectory-identitymodel-extensions-for-dotnet/updateAssemblyInfo.sh
BINARY_ALIAS= grep=${LOCALBASE}/bin/ggrep
DOTNET_ENV= PYTHON=${PYTHON_CMD}
BOOTSTRAP_DOTNETVERSION= 8.0
BOOTSTRAP_SDKVERSION= ${BOOTSTRAP_DOTNETVERSION}.100
BOOTSTRAP_SDKVERSIONSUFFIX= -rtm.23551.1
BOOTSTRAP_SOURCEBUILT_ARTIFACTS_DISTNAME= Private.SourceBuilt.Artifacts.${BOOTSTRAP_SDKVERSION}${BOOTSTRAP_SDKVERSIONSUFFIX}.freebsd.13-${DOTNET_ARCH}
BOOTSTRAP_SDK_DISTNAME= dotnet-sdk-${BOOTSTRAP_SDKVERSION}-freebsd-${DOTNET_ARCH}
DOTNETVERSION= 8.0
SDKVERSION= ${DOTNETVERSION}.106
SDKVERSIONSUFFIX= -servicing.24272.10
SOURCEBUILT_ARTIFACTS_DISTNAME= Private.SourceBuilt.Artifacts.${SDKVERSION}${SDKVERSIONSUFFIX}.freebsd.13-${DOTNET_ARCH}
SDK_DISTNAME= dotnet-sdk-${SDKVERSION}-freebsd-${DOTNET_ARCH}
DOTNET_ARCH= ${ARCH:S|amd64|x64|:C|aarch64|arm64|}
PLIST_SUB= DOTNET_ARCH=${DOTNET_ARCH} FULL_DOTNETVERSION=${PORTVERSION} \
DOTNETVERSION=${DOTNETVERSION} \
SDKVERSION=${SDKVERSION} SDKVERSIONSUFFIX=${SDKVERSIONSUFFIX} \
BOOTSTRAP_SDKVERSION=${BOOTSTRAP_SDKVERSION}
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 1400000
LIB_DEPENDS+= libcrypto.so.111:misc/compat13x
.endif
.if ${ARCH} == aarch64
BROKEN= "crossgen2" exited with code 139
.endif
post-extract:
${CP} ${DISTDIR}/${DIST_SUBDIR}/release.json-${PORTVERSION} ${WRKSRC}/release.json
@${MKDIR} ${WRKDIR}/packages
${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \
${DISTDIR}/${DIST_SUBDIR}/${BOOTSTRAP_SOURCEBUILT_ARTIFACTS_DISTNAME}${EXTRACT_SUFX} \
-C ${WRKDIR}/packages \
${EXTRACT_AFTER_ARGS}
@${MKDIR} ${WRKDIR}/bootstrap_sdk
${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \
${DISTDIR}/${DIST_SUBDIR}/${BOOTSTRAP_SDK_DISTNAME}${EXTRACT_SUFX} \
-C ${WRKDIR}/bootstrap_sdk \
${EXTRACT_AFTER_ARGS}
${ELFCTL} -e +noaslr ${WRKDIR}/bootstrap_sdk/dotnet
do-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${DOTNET_ENV} ./build.sh \
--release-manifest release.json \
--clean-while-building \
--with-sdk ${WRKDIR}/bootstrap_sdk \
--with-packages ${WRKDIR}/packages \
-- \
-maxcpucount:${MAKE_JOBS_NUMBER}
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${WRKSRC}/artifacts/${DOTNET_ARCH}/Release/${SDK_DISTNAME}${EXTRACT_SUFX} -C ${STAGEDIR}${DATADIR} ${EXTRACT_AFTER_ARGS}
${RM} -r ${STAGEDIR}${DATADIR}/packs/NETStandard.Library.Ref
${STRIP_CMD} ${STAGEDIR}${DATADIR}/sdk/${SDKVERSION}/AppHostTemplate/apphost
${STRIP_CMD} ${STAGEDIR}${DATADIR}/packs/Microsoft.NETCore.App.Host.freebsd-${DOTNET_ARCH}/${DISTVERSION}/runtimes/freebsd-${DOTNET_ARCH}/native/apphost
${STRIP_CMD} ${STAGEDIR}${DATADIR}/packs/Microsoft.NETCore.App.Host.freebsd-${DOTNET_ARCH}/${DISTVERSION}/runtimes/freebsd-${DOTNET_ARCH}/native/singlefilehost
${FIND} ${STAGEDIR}${DATADIR} -name "*.so" -exec ${STRIP_CMD} -s "{}" ";"
bootstrap-makesum:
cd ${WRKSRC}/artifacts/${DOTNET_ARCH}/Release && sha256 ${SOURCEBUILT_ARTIFACTS_DISTNAME}${EXTRACT_SUFX}
@${ECHO_CMD} -n "SIZE (${SOURCEBUILT_ARTIFACTS_DISTNAME}${EXTRACT_SUFX}) = "
@${STAT} -f %z ${WRKSRC}/artifacts/${DOTNET_ARCH}/Release/${SOURCEBUILT_ARTIFACTS_DISTNAME}${EXTRACT_SUFX}
@cd ${WRKSRC}/artifacts/${DOTNET_ARCH}/Release && sha256 ${SDK_DISTNAME}${EXTRACT_SUFX}
@${ECHO_CMD} -n "SIZE (${SDK_DISTNAME}${EXTRACT_SUFX}) = "
@${STAT} -f %z ${WRKSRC}/artifacts/${DOTNET_ARCH}/Release/${SDK_DISTNAME}${EXTRACT_SUFX}
@${ECHO_CMD}
.include <bsd.port.post.mk>
-13
View File
@@ -1,13 +0,0 @@
TIMESTAMP = 1718635777
SHA256 (dotnet/release.json-8.0.6) = 2391ec08e7ac922f418798c2a2ae037196e0b484f638331f4a904ec06b31039f
SIZE (dotnet/release.json-8.0.6) = 273
SHA256 (dotnet/Private.SourceBuilt.Artifacts.8.0.100-rtm.23551.1.freebsd.13-x64.tar.gz) = b91acf8ac130274fb40110f6af1d92f2348613f8cb0943b8b87f853351c8d6d2
SIZE (dotnet/Private.SourceBuilt.Artifacts.8.0.100-rtm.23551.1.freebsd.13-x64.tar.gz) = 1162274049
SHA256 (dotnet/dotnet-sdk-8.0.100-freebsd-x64.tar.gz) = d6118ff2cb9ded82eeeb976f3001bdea4ea2904e276b27ef526f458059e04149
SIZE (dotnet/dotnet-sdk-8.0.100-freebsd-x64.tar.gz) = 385932876
SHA256 (dotnet/Private.SourceBuilt.Artifacts.8.0.100-rtm.23551.1.freebsd.13-arm64.tar.gz) = 5d8337825b7a5462488a41fc731bbd0dfa4ef551c9960a17cff16bb00996adce
SIZE (dotnet/Private.SourceBuilt.Artifacts.8.0.100-rtm.23551.1.freebsd.13-arm64.tar.gz) = 1142947069
SHA256 (dotnet/dotnet-sdk-8.0.100-freebsd-arm64.tar.gz) = 08bde0c5afdfd1f29217c3bbae3ac557613cba6b622b81408fdcaecb51a5002c
SIZE (dotnet/dotnet-sdk-8.0.100-freebsd-arm64.tar.gz) = 376095555
SHA256 (dotnet/dotnet-dotnet-v8.0.6_GH0.tar.gz) = 042d4ae618d3761744606902df68170df751e80dd654156f4caa9bb25138d1f7
SIZE (dotnet/dotnet-dotnet-v8.0.6_GH0.tar.gz) = 281679549
-33
View File
@@ -1,33 +0,0 @@
--- build.proj.orig 2023-11-01 21:55:24 UTC
+++ build.proj
@@ -103,8 +103,7 @@
<!-- After building, create the sdk symbols tarball. -->
<Target Name="CreateSdkSymbolsTarball"
- AfterTargets="Build"
- DependsOnTargets="RepackageSymbols">
+ AfterTargets="Build">
<ItemGroup>
<SdkTarballItem Include="$(OutputPath)dotnet-sdk-*$(TarBallExtension)" />
</ItemGroup>
@@ -115,20 +114,6 @@
<SdkLayout>$(ArtifactsTmpDir)Sdk</SdkLayout>
<SdkTarball>%(SdkTarballItem.Identity)</SdkTarball>
</PropertyGroup>
-
- <MakeDir Directories="$(SdkLayout)" />
- <Exec Command="tar -xzf $(SdkTarball) -C $(SdkLayout)"
- WorkingDirectory="$(OutputPath)" />
-
- <CreateSdkSymbolsLayout SdkLayoutPath="$(SdkLayout)"
- AllSymbolsPath="$(UnifiedSymbolsLayout)"
- SdkSymbolsLayoutPath="$(SdkSymbolsLayout)"
- FailOnMissingPDBs="true" />
-
- <Exec Command="tar --numeric-owner -czf $(SdkSymbolsTarball) *"
- WorkingDirectory="$(SdkSymbolsLayout)" />
-
- <Message Importance="High" Text="Packaged sdk symbols in '$(SdkSymbolsTarball)'" />
<RemoveDir Directories="$(UnifiedSymbolsLayout)" />
<RemoveDir Directories="$(SdkSymbolsLayout)" />
@@ -1,18 +0,0 @@
--- src/aspnetcore/eng/Dependencies.props.orig 2024-01-30 21:04:42.698944000 +0000
+++ src/aspnetcore/eng/Dependencies.props 2024-01-30 21:09:31.698331000 +0000
@@ -113,6 +113,7 @@
<LatestPackageReference Include="Microsoft.NETCore.App.Runtime.linux-musl-arm" />
<LatestPackageReference Include="Microsoft.NETCore.App.Runtime.linux-musl-arm64" />
<LatestPackageReference Include="Microsoft.NETCore.App.Runtime.freebsd-x64" />
+ <LatestPackageReference Include="Microsoft.NETCore.App.Runtime.freebsd-arm64" />
<LatestPackageReference Include="Microsoft.NETCore.App.Runtime.$(TargetRuntimeIdentifier)" Condition=" '$(PortableBuild)' == 'false' " />
<!-- Crossgen2 compiler -->
@@ -129,6 +130,7 @@
<LatestPackageReference Include="Microsoft.NETCore.App.Crossgen2.win-arm" />
<LatestPackageReference Include="Microsoft.NETCore.App.Crossgen2.win-arm64" />
<LatestPackageReference Include="Microsoft.NETCore.App.Crossgen2.freebsd-x64" />
+ <LatestPackageReference Include="Microsoft.NETCore.App.Crossgen2.freebsd-arm64" />
<LatestPackageReference Include="Microsoft.NETCore.App.Crossgen2.$(TargetRuntimeIdentifier)" Condition=" '$(PortableBuild)' == 'false' " />
</ItemGroup>
@@ -1,37 +0,0 @@
--- src/installer/src/redist/targets/GenerateBundledVersions.targets.orig 2023-11-01 21:55:24 UTC
+++ src/installer/src/redist/targets/GenerateBundledVersions.targets
@@ -160,7 +160,7 @@
win-x86;
" />
- <NetCore31RuntimePackRids Include="@(NetCore30RuntimePackRids)"/>
+ <NetCore31RuntimePackRids Include="@(NetCore30RuntimePackRids);freebsd-x64;freebsd-arm64"/>
<Net50AppHostRids Include="
@(NetCore31RuntimePackRids);
@@ -281,7 +281,7 @@
linux-arm64;
" />
- <Net50Crossgen2SupportedRids Include="linux-musl-x64;linux-x64;win-x64" />
+ <Net50Crossgen2SupportedRids Include="linux-musl-x64;linux-x64;win-x64;freebsd-x64;freebsd-arm64" />
<Net60Crossgen2SupportedRids Include="
@(Net50Crossgen2SupportedRids);
@@ -317,6 +317,7 @@
@(Net70ILCompilerSupportedRids);
osx-x64;
osx-arm64;
+ freebsd-x64;
" />
<NativeAOTRuntimePackRids Include="
@@ -335,7 +336,7 @@
"
/>
- <AspNetCore31RuntimePackRids Include="@(AspNetCore30RuntimePackRids)" />
+ <AspNetCore31RuntimePackRids Include="@(AspNetCore30RuntimePackRids);freebsd-x64;freebsd-arm64" />
<AspNetCore50RuntimePackRids Include="@(AspNetCore31RuntimePackRids);linux-musl-arm;win-arm64" />
<AspNetCore60RuntimePackRids Include="@(AspNetCore50RuntimePackRids);osx-arm64;linux-s390x" />
<AspNetCore70RuntimePackRids Include="@(AspNetCore60RuntimePackRids);linux-ppc64le" />
@@ -1,62 +0,0 @@
--- src/runtime/src/coreclr/gc/unix/gcenv.unix.cpp.orig 2023-11-01 21:55:24 UTC
+++ src/runtime/src/coreclr/gc/unix/gcenv.unix.cpp
@@ -1171,7 +1171,34 @@ uint64_t GetAvailablePhysicalMemory()
uint64_t available = 0;
// Get the physical memory available.
-#ifndef __APPLE__
+#if defined(__APPLE__)
+ vm_size_t page_size;
+ mach_port_t mach_port;
+ mach_msg_type_number_t count;
+ vm_statistics_data_t vm_stats;
+ mach_port = mach_host_self();
+ count = sizeof(vm_stats) / sizeof(natural_t);
+ if (KERN_SUCCESS == host_page_size(mach_port, &page_size))
+ {
+ if (KERN_SUCCESS == host_statistics(mach_port, HOST_VM_INFO, (host_info_t)&vm_stats, &count))
+ {
+ available = (int64_t)vm_stats.free_count * (int64_t)page_size;
+ }
+ }
+ mach_port_deallocate(mach_task_self(), mach_port);
+#elif defined(__FreeBSD__)
+ size_t inactive_count = 0, laundry_count = 0, free_count = 0;
+ size_t sz = sizeof(inactive_count);
+ sysctlbyname("vm.stats.vm.v_inactive_count", &inactive_count, &sz, NULL, 0);
+
+ sz = sizeof(laundry_count);
+ sysctlbyname("vm.stats.vm.v_laundry_count", &laundry_count, &sz, NULL, 0);
+
+ sz = sizeof(free_count);
+ sysctlbyname("vm.stats.vm.v_free_count", &free_count, &sz, NULL, 0);
+
+ available = (inactive_count + laundry_count + free_count) * sysconf(_SC_PAGESIZE);
+#else // Linux
static volatile bool tryReadMemInfo = true;
if (tryReadMemInfo)
@@ -1187,22 +1214,7 @@ uint64_t GetAvailablePhysicalMemory()
// Fall back to getting the available pages using sysconf.
available = sysconf(SYSCONF_PAGES) * sysconf(_SC_PAGE_SIZE);
}
-#else // __APPLE__
- vm_size_t page_size;
- mach_port_t mach_port;
- mach_msg_type_number_t count;
- vm_statistics_data_t vm_stats;
- mach_port = mach_host_self();
- count = sizeof(vm_stats) / sizeof(natural_t);
- if (KERN_SUCCESS == host_page_size(mach_port, &page_size))
- {
- if (KERN_SUCCESS == host_statistics(mach_port, HOST_VM_INFO, (host_info_t)&vm_stats, &count))
- {
- available = (int64_t)vm_stats.free_count * (int64_t)page_size;
- }
- }
- mach_port_deallocate(mach_task_self(), mach_port);
-#endif // __APPLE__
+#endif
return available;
}
@@ -1,13 +0,0 @@
--- src/runtime/src/coreclr/vm/jitinterface.cpp.orig 2024-01-30 14:43:23.896193000 +0000
+++ src/runtime/src/coreclr/vm/jitinterface.cpp 2024-01-30 14:44:17.447492000 +0000
@@ -1597,6 +1597,10 @@
optimizeThreadStaticAccess = GetTlsIndexObjectAddress() != nullptr;
#endif // !TARGET_OSX && TARGET_UNIX && TARGET_AMD64
+#if defined(TARGET_ARM64) && defined(TARGET_FREEBSD)
+ optimizeThreadStaticAccess = false;
+#endif
+
if (optimizeThreadStaticAccess)
{
// For windows x64/x86/arm64, linux x64/arm64/loongarch64/riscv64:
@@ -1,10 +0,0 @@
--- src/runtime/src/libraries/System.Runtime/tests/System/GCTests.cs.orig 2023-11-01 21:55:24 UTC
+++ src/runtime/src/libraries/System.Runtime/tests/System/GCTests.cs
@@ -818,7 +818,6 @@ namespace System.Tests
private static bool IsNotArmProcessAndRemoteExecutorSupported => PlatformDetection.IsNotArmProcess && RemoteExecutor.IsSupported;
- [ActiveIssue("https://github.com/dotnet/runtime/issues/64935", TestPlatforms.FreeBSD)]
[ActiveIssue("https://github.com/dotnet/runtime/issues/73167", TestRuntimes.Mono)]
[ConditionalFact(nameof(IsNotArmProcessAndRemoteExecutorSupported))] // [ActiveIssue("https://github.com/dotnet/runtime/issues/29434")]
public static void GetGCMemoryInfo()
@@ -1,11 +0,0 @@
--- src/runtime/src/native/libs/System.Native/pal_networkstatistics.c.orig 2023-11-01 21:55:24 UTC
+++ src/runtime/src/native/libs/System.Native/pal_networkstatistics.c
@@ -58,6 +58,8 @@
#elif HAVE_IOS_NETINET_IP_VAR_H
#include "ios/netinet/ip_var.h"
#endif
+#include <sys/callout.h>
+#include <sys/osd.h>
#include <netinet/tcp_var.h>
#include <netinet/tcp.h>
#if HAVE_TCP_FSM_H
-4
View File
@@ -1,4 +0,0 @@
.NET is an open source developer platform, created by Microsoft, for building
many different types of applications. It provides a standard set of base class
libraries and APIs that are common to all .NET applications. .NET apps can be
written in such languages as C#, F#, or Visual Basic.
File diff suppressed because it is too large Load Diff