From 69a63abb9e59d94628b36cb26e68638a531e850e Mon Sep 17 00:00:00 2001
From: Jordan McCallum <jordan.mccallum@mailbox.org>
Date: Mon, 1 Apr 2024 08:41:31 +1000
Subject: [PATCH] xz: update and change to git

the xz backdoor caused github to disable the repo. Changing to
the tukaani git to allow builds to happen.

Moved from tarball to git clone for building xz to avoid any
other potential tarball poisoning by JiaT75, using the commit
tagged as 5.2.5; the latest full release tag available without
any commits by JiaT75.
---
 recipes/tools/xz/recipe.toml | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/recipes/tools/xz/recipe.toml b/recipes/tools/xz/recipe.toml
index d36b3a7af..87eb02ea3 100644
--- a/recipes/tools/xz/recipe.toml
+++ b/recipes/tools/xz/recipe.toml
@@ -1,13 +1,12 @@
 [source]
-tar = "https://tukaani.org/xz/xz-5.4.3.tar.xz"
-blake3 = "4b1b814bcf3794973fe9076d549a0edfbee01d2fd57821fe3280537ef6c7deae"
-script = """
-./autogen.sh
-"""
+git = "https://git.tukaani.org/xz.git"
+# v5.2.5
+rev = "2327a461e1afce862c22269b80d3517801103c1b"
 
 [build]
 template = "custom"
 script = """
+(cd ${COOKBOOK_SOURCE} && ./autogen.sh)
 export CFLAGS="-static"
 COOKBOOK_CONFIGURE_FLAGS=(
     --host="${TARGET}"
-- 
GitLab