Sat Dec 17 21:29:44 2022 UTC ()
rust: Stop xz being buildlinked.

The recent xz update broke the API and rust happened to be using it via other
buildlink3 dependencies, even though we try to use the bundled version.  Set
BUILDLINK_FILES_CMD.xz to ${TRUE} to avoid any xz files from being linked, and
ensuring we use the bundled copy.


(jperkin)
diff -r1.275 -r1.276 pkgsrc/lang/rust/Makefile

cvs diff -r1.275 -r1.276 pkgsrc/lang/rust/Makefile (expand / switch to context diff)
--- pkgsrc/lang/rust/Makefile 2022/12/05 21:44:58 1.275
+++ pkgsrc/lang/rust/Makefile 2022/12/17 21:29:44 1.276
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.275 2022/12/05 21:44:58 jperkin Exp $
+# $NetBSD: Makefile,v 1.276 2022/12/17 21:29:44 jperkin Exp $
 
 DISTNAME=	rustc-1.64.0-src
 PKGNAME=	${DISTNAME:S/rustc/rust/:S/-src//}
@@ -64,7 +64,9 @@
 # cargo defaults to using the number of available CPUs
 MAKE_ENV+=		CARGO_BUILD_JOBS=${_MAKE_JOBS_N}
 
-# Ensure we use a bundled lzma rather than relying on finding one.
+# Ensure we use a bundled lzma rather than relying on finding one, and avoid
+# xz being buildlinked if it's pulled in via dependencies.
+BUILDLINK_FILES_CMD.xz=	${TRUE}
 MAKE_ENV+=		LZMA_API_STATIC=1
 
 # MacOS X 10.7 is the oldest supported version. See