deleted file mode 100644
@@ -1,20 +0,0 @@
-SUMMARY = "Xdelta is a tool for differential compression"
-DESCRIPTION = "Open-source binary diff, differential compression tools, \
- VCDIFF (RFC 3284) delta compression."
-HOMEPAGE = "http://xdelta.org/"
-SECTION = "console/utils"
-
-LICENSE = "GPL-2.0-only"
-LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"
-
-SRC_URI = "git://github.com/jmacd/xdelta.git;branch=release3_1_apl;protocol=https"
-SRCREV = "4b4aed71a959fe11852e45242bb6524be85d3709"
-S = "${UNPACKDIR}/${BP}/xdelta3"
-
-inherit autotools
-
-# Optional secondary compression
-PACKAGECONFIG ??= ""
-PACKAGECONFIG[lzma] = "--with-liblzma,--without-liblzma,xz"
-
-BBCLASSEXTEND = "native nativesdk"
new file mode 100644
@@ -0,0 +1,35 @@
+SUMMARY = "Xdelta is a tool for differential compression"
+DESCRIPTION = "Open-source binary diff, differential compression tools, \
+ VCDIFF (RFC 3284) delta compression."
+HOMEPAGE = "http://xdelta.org/"
+SECTION = "console/utils"
+
+LICENSE = "Apache-2.0 AND (CC0-1.0 OR Apache-2.0 OR Apache-2.0-with-LLVM-exception)"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=cf96fa0d649f7c7b16616d95e7880a73 \
+ file://blake3/LICENSE_A2;md5=36f2d65d5af763138c43f12eab1ded63 \
+ file://blake3/LICENSE_A2LLVM;md5=9f15032a73646326104ebe0c70580f1a \
+ file://blake3/LICENSE_CC0;md5=65d3616852dbf7b1a6d4b53b00626032"
+
+# BLAKE3 is needed for armor mode, upstream's CMake would fetch it during configure
+SRC_URI = "git://github.com/jmacd/xdelta.git;branch=main;protocol=https;tag=v${PV};name=xdelta \
+ git://github.com/BLAKE3-team/BLAKE3.git;branch=master;protocol=https;tag=1.8.5;name=blake3;destsuffix=${BP}/xdelta3/blake3 \
+ "
+SRCREV_xdelta = "5f8f5a553181c139d91b0289c009e5c276c5318c"
+SRCREV_blake3 = "93a431c78a52d7ccf0f366f106467f5070e6075e"
+SRCREV_FORMAT = "xdelta_blake3"
+UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>3(\.\d+)+)$"
+
+S = "${UNPACKDIR}/${BP}/xdelta3"
+
+inherit cmake
+
+EXTRA_OECMAKE = "-DXD3_BUILD_TESTS=OFF \
+ -DXD3_ARMOR=ON \
+ -DFETCHCONTENT_SOURCE_DIR_BLAKE3=${S}/blake3 \
+"
+
+# Optional secondary compression
+PACKAGECONFIG ??= ""
+PACKAGECONFIG[lzma] = "-DXD3_LZMA_MODE=on,-DXD3_LZMA_MODE=off,xz"
+
+BBCLASSEXTEND = "native nativesdk"
Upstream revived the project in 2026 (NEWS, git log): - Autotools build replaced by CMake; the core library, xdelta3.h, xdelta3.pc and a CMake package config are now installed. - New armor mode: whole-file BLAKE3 verification carried in the VCDIFF application header. - stdin can be used as the source, and help is shown when run without arguments on a terminal. - Hardened allocation sizing against integer overflow and allocation failures, rejection of invalid armor streams, and a full XZ magic check before external decompression. Switch to inherit cmake and follow upstream from the release3_1_apl branch to main, fetching by tag, with an upstream check limited to the v3 tags (the repository also carries xdelta1 v1.x tags). Upstream's CMake fetches BLAKE3 1.8.5 with FetchContent for armor mode, which does not work in an offline do_configure, so fetch it in SRC_URI and point FETCHCONTENT_SOURCE_DIR_BLAKE3 at it; it is linked statically into the xdelta3 tool. Turn off the regression-test targets. The lzma option becomes -DXD3_LZMA_MODE=on/off so liblzma is never auto-detected. The new static library and its headers, pkg-config and CMake files go to the default -staticdev and -dev packages. Unpack BLAKE3 inside ${S} so the debug prefix map covers its __FILE__ strings (buildpaths QA). License-Update: relicensed by the author from GPL-2.0-only (COPYING) to Apache-2.0 (xdelta3/LICENSE); add the BLAKE3 license files (CC0-1.0 OR Apache-2.0 OR Apache-2.0-with-LLVM-exception). AI-Generated: Uses Claude Code Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com> --- .../recipes-support/xdelta/xdelta3_3.1.0.bb | 20 ----------- .../recipes-support/xdelta/xdelta3_3.2.2.bb | 35 +++++++++++++++++++ 2 files changed, 35 insertions(+), 20 deletions(-) delete mode 100644 meta-oe/recipes-support/xdelta/xdelta3_3.1.0.bb create mode 100644 meta-oe/recipes-support/xdelta/xdelta3_3.2.2.bb