git: 91d047221724 - main - lang/rust: fix build with LLVM 22 (PORT_LLVM option)

From: Charlie Li <vishwin_at_FreeBSD.org>
Date: Thu, 19 Mar 2026 18:17:46 UTC
The branch main has been updated by vishwin:

URL: https://cgit.FreeBSD.org/ports/commit/?id=91d047221724449855d84465d8ca53bdddb9fcc2

commit 91d047221724449855d84465d8ca53bdddb9fcc2
Author:     Charlie Li <vishwin@FreeBSD.org>
AuthorDate: 2026-03-19 18:15:18 +0000
Commit:     Charlie Li <vishwin@FreeBSD.org>
CommitDate: 2026-03-19 18:15:18 +0000

    lang/rust: fix build with LLVM 22 (PORT_LLVM option)
    
    PassPlugin moved to a new location starting LLVM 22.
    
    Reference: https://github.com/rust-lang/rust/pull/150394
---
 lang/rust/Makefile | 3 +++
 lang/rust/distinfo | 4 +++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/lang/rust/Makefile b/lang/rust/Makefile
index 227721f5cbfb..63a0dc6cc665 100644
--- a/lang/rust/Makefile
+++ b/lang/rust/Makefile
@@ -13,6 +13,9 @@ DISTFILES?=	${NIGHTLY_DATE:D${NIGHTLY_DATE}/}${DISTNAME}${EXTRACT_SUFX}:src \
 		${_CARGO_BOOTSTRAP}${EXTRACT_SUFX}:bootstrap
 DIST_SUBDIR?=	rust
 
+PATCH_SITES=	https://github.com/rust-lang/rust/commit/
+PATCHFILES=	634251cba8edb4ebcd01e330c7241e14d76322a1.patch:-p1
+
 MAINTAINER=	rust@FreeBSD.org
 COMMENT=	Language with a focus on memory safety and concurrency
 WWW=		https://www.rust-lang.org/
diff --git a/lang/rust/distinfo b/lang/rust/distinfo
index ff7120a05dd6..a5ef85ddf86c 100644
--- a/lang/rust/distinfo
+++ b/lang/rust/distinfo
@@ -1,4 +1,4 @@
-TIMESTAMP = 1771003389
+TIMESTAMP = 1773938940
 SHA256 (rust/rustc-1.93.1-src.tar.xz) = 848c9171212c998c069e6979a205a1a44fa3235a463696d62e24701c83596ce0
 SIZE (rust/rustc-1.93.1-src.tar.xz) = 270888296
 SHA256 (rust/2025-12-11/rustc-1.92.0-aarch64-unknown-freebsd.tar.xz) = f5e07fcaf0806501bc8e92885f6f34eff70e2be40da5f4778078dceec2ce4d61
@@ -49,3 +49,5 @@ SHA256 (rust/2025-12-11/rust-std-1.92.0-riscv64gc-unknown-freebsd.tar.xz) = 6945
 SIZE (rust/2025-12-11/rust-std-1.92.0-riscv64gc-unknown-freebsd.tar.xz) = 24491828
 SHA256 (rust/2025-12-11/cargo-1.92.0-riscv64gc-unknown-freebsd.tar.xz) = 4ab19a660eced1b94335e74d1041f946a9d83baa2238edd8e25a4116bd8a89e6
 SIZE (rust/2025-12-11/cargo-1.92.0-riscv64gc-unknown-freebsd.tar.xz) = 10729840
+SHA256 (rust/634251cba8edb4ebcd01e330c7241e14d76322a1.patch) = a1bacdce82f868e9e49dc8c058270d039f17488cf73c8969906b632d00dab85b
+SIZE (rust/634251cba8edb4ebcd01e330c7241e14d76322a1.patch) = 948