4Cd1yvw0CI/td/eQ2bd4BeHaR7R7xeor8ZMvB6y+PjUQMXWj0jw KAZZ01cqwfgbSlVyotnFOHECTlTexzgJE7BjYUplqS30OBkEKj3yCz+9+sDqOHbhvo1iHN 6n9/PODPsyNeGFP2OIlmM8m8l6qhI9HXvSNWbNBcV8C58a9/G1aaa9CPsz6Gm5dKpewaoP sBJUl4v6A5Pc0p0Zx8eW1ltEbfcJcVUNRqlZWbne/xEeJZwWa9J18IjJ5Zy/xg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767815016; a=rsa-sha256; cv=none; b=s645CrMEAomD+iQ8619LWIt5JGzJJYF0SpqoAvbNarVuEuFzum1N8yVwCgdyo4j/QTcZbx S1S6mVHMmuNXeEw0vwBzpMf9yNZ5Oj2+D4w8GkSl1YdBl2XLHbORhAbN+kiF9q2KNC/pjZ VnCOHYQErRGJ8g/HPkZ7HWsh+qjgu3vWy3Rui9cATqXzysT4QHx0Tb9sSw6DOaIu6bja11 +YxsXGu5EIJyyaotzdzi60LA+TJd5svOZff6sCLVjPAr3TmhC7kmFULBviKAdXODbz4h+A sla16LUTN5TPx4CZHHhbsJ4By8sH6X+sOBTKFa2fydM+Fc+2tZxqOv1h4+L6qw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dmdkc3sSCz15bZ for ; Wed, 07 Jan 2026 19:43:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 40a31 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 07 Jan 2026 19:43:36 +0000 To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Gleb Popov Subject: git: 27d33ba01bb4 - main - lang/dotnet8: Fix build in year 2026 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: arrowd X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 27d33ba01bb40c388f2d8f39e7e7316cfd71fd07 Auto-Submitted: auto-generated Date: Wed, 07 Jan 2026 19:43:36 +0000 Message-Id: <695eb768.40a31.10bd85d7@gitrepo.freebsd.org> The branch main has been updated by arrowd: URL: https://cgit.FreeBSD.org/ports/commit/?id=27d33ba01bb40c388f2d8f39e7e7316cfd71fd07 commit 27d33ba01bb40c388f2d8f39e7e7316cfd71fd07 Author: Gleb Popov AuthorDate: 2026-01-07 18:54:31 +0000 Commit: Gleb Popov CommitDate: 2026-01-07 19:43:30 +0000 lang/dotnet8: Fix build in year 2026 Relevant issue: https://github.com/dotnet/dotnet/issues/4037 --- lang/dotnet8/Makefile | 5 ++++ ...-Fix-assembly-version-calculation-in-2026.patch | 29 ++++++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/lang/dotnet8/Makefile b/lang/dotnet8/Makefile index c63474b8e068..79ad6ec009e5 100644 --- a/lang/dotnet8/Makefile +++ b/lang/dotnet8/Makefile @@ -22,4 +22,9 @@ PATCHDIR= ${.CURDIR}/files DISTINFO_FILE= ${.CURDIR}/distinfo PLIST= ${.CURDIR}/pkg-plist +# https://github.com/dotnet/dotnet/issues/4037 +post-patch: + ${CP} ${PATCHDIR}/0003-Fix-assembly-version-calculation-in-2026.patch \ + ${WRKSRC}/src/source-build-externals/patches/azure-activedirectory-identitymodel-extensions-for-dotnet/ + .include "${MASTERDIR}/Makefile" diff --git a/lang/dotnet8/files/0003-Fix-assembly-version-calculation-in-2026.patch b/lang/dotnet8/files/0003-Fix-assembly-version-calculation-in-2026.patch new file mode 100644 index 000000000000..3d3026f30113 --- /dev/null +++ b/lang/dotnet8/files/0003-Fix-assembly-version-calculation-in-2026.patch @@ -0,0 +1,29 @@ +diff --git a/updateAssemblyInfo.sh b/updateAssemblyInfo.sh +index c5117975..e71b6c45 100755 +--- a/updateAssemblyInfo.sh ++++ b/updateAssemblyInfo.sh +@@ -5,12 +5,23 @@ scriptroot=$(cd -P "$(dirname -- "${BASH_SOURCE[0]}")" && pwd) + + packageType=${1:-preview} + ++# Get current date components ++year=$(date '+%Y') ++year_offset=$((year - 2019)) ++month=$(date '+%m') ++day=$(date '+%d') ++ ++# Calculate revision using the new formula that prevents overflow ++# Base: 61232 (ensures revision is higher than already shipped packages) ++# This will overflow in 2029 and needs a long term fix ++revision=$((61232 + (year_offset * 416) + (10#$month * 32) + 10#$day)) ++ + date=$(date '+%y%m%d%H%M%S') + # Formats the date by replacing the 4-digit year with a 2-digit value and then subtract 19 + dateTimeStamp=$(echo $((10#${date:0:2}-19)))${date:2} + + assemblyVersion=$(sed -n 's/.*\([^<]*\)<.*/\1/p' ${scriptroot}/buildConfiguration.xml) +-assemblyFileVersion="$assemblyVersion.${dateTimeStamp::$((${#dateTimeStamp} - 6))}" # Trim minutes/seconds ++assemblyFileVersion="$assemblyVersion.$revision" + assemblyInformationalVersion="$assemblyVersion.$dateTimeStamp" + + echo "assemblyVersion: $assemblyVersion"