Date: Wed, 07 Jan 2026 19:43:37 +0000 From: Gleb Popov <arrowd@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: ef0eaf43025e - main - lang/dotnet: Fix build in year 2026 Message-ID: <695eb769.41c2d.3bd4cbde@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by arrowd: URL: https://cgit.FreeBSD.org/ports/commit/?id=ef0eaf43025ef37daabc8c1ac4ace3d348096b62 commit ef0eaf43025ef37daabc8c1ac4ace3d348096b62 Author: Gleb Popov <arrowd@FreeBSD.org> AuthorDate: 2026-01-07 19:43:09 +0000 Commit: Gleb Popov <arrowd@FreeBSD.org> CommitDate: 2026-01-07 19:43:30 +0000 lang/dotnet: Fix build in year 2026 Relevant issue: https://github.com/dotnet/dotnet/issues/4037 --- lang/dotnet/Makefile | 7 ++++ ...-Fix-assembly-version-calculation-in-2026.patch | 43 ++++++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/lang/dotnet/Makefile b/lang/dotnet/Makefile index 686dcb8ddb76..9837643d7d9d 100644 --- a/lang/dotnet/Makefile +++ b/lang/dotnet/Makefile @@ -99,6 +99,13 @@ PLIST_SUB+= VXSORT= PLIST_SUB+= VXSORT="@comment " .endif +# https://github.com/dotnet/dotnet/issues/4037 +.if !target(post-patch) +post-patch: + ${CP} ${PATCHDIR}/0002-Fix-assembly-version-calculation-in-2026.patch \ + ${WRKSRC}/src/source-build-externals/patches/azure-activedirectory-identitymodel-extensions-for-dotnet/ +.endif + post-extract: .ifndef NO_RELEASE_JSON ${CP} ${DISTDIR}/${DIST_SUBDIR}/release.json-${PORTVERSION} ${WRKSRC}/release.json diff --git a/lang/dotnet/files/0002-Fix-assembly-version-calculation-in-2026.patch b/lang/dotnet/files/0002-Fix-assembly-version-calculation-in-2026.patch new file mode 100644 index 000000000000..d10d6d3072ce --- /dev/null +++ b/lang/dotnet/files/0002-Fix-assembly-version-calculation-in-2026.patch @@ -0,0 +1,43 @@ +From 22c9a70c8e0fe6a30190430d93f12fa29a304288 Mon Sep 17 00:00:00 2001 +From: Viktor Hofer <viktor.hofer@microsoft.com> +Date: Mon, 5 Jan 2026 11:43:26 +0100 +Subject: [PATCH] Fix FileVersion calculation in 2026 + +Issue: https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/issues/3388 + +--- + build/common.props | 19 ++++++++++++++++++- + 1 file changed, 18 insertions(+), 1 deletion(-) + +diff --git a/build/common.props b/build/common.props +index efd7e90e..e5f6f3ed 100644 +--- a/build/common.props ++++ b/build/common.props +@@ -42,7 +42,24 @@ + <VersionSuffix Condition="'$(WilsonVersion)' == ''">$(PreviewVersionSuffix)</VersionSuffix> + <VersionPrefix Condition="'$(WilsonVersion)' == ''">$(WilsonCurrentVersion)</VersionPrefix> + <FileVersion Condition="'$(WilsonVersion)' != '' and '$(IsCustomPreview)' != 'true' ">$(WilsonVersion).$([System.DateTime]::Now.AddYears(-2019).Year)$([System.DateTime]::Now.ToString("MMdd"))</FileVersion> +- <FileVersion Condition="'$(WilsonVersion)' == ''">$(WilsonCurrentVersion).$([System.DateTime]::Now.AddYears(-2019).Year)$([System.DateTime]::Now.ToString("MMdd"))</FileVersion> ++ <!-- TODO: Makes sure that the revision is higher than what's in already shipped packages (> 61231). ++ This will overflow in 2029 though and needs a long term fix. --> ++ <FileVersion Condition="'$(WilsonVersion)' == ''">$(WilsonCurrentVersion).$([MSBuild]::Add( ++ 61232, ++ $([MSBuild]::Add( ++ $([MSBuild]::Add( ++ $([MSBuild]::Multiply( ++ $([System.DateTime]::Now.AddYears(-2019).Year), ++ 416 ++ )), ++ $([MSBuild]::Multiply( ++ $([System.DateTime]::Now.ToString("MM")), ++ 32 ++ )) ++ )), ++ $([System.DateTime]::Now.ToString("dd")) ++ )) ++ ))</FileVersion> + </PropertyGroup> + + <PropertyGroup> +-- +2.52.0.windows.1help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?695eb769.41c2d.3bd4cbde>
