From 4d21b0e8b77fc47abf5d6926e0bb901642f236c7 Mon Sep 17 00:00:00 2001 From: lizzie Date: Tue, 22 Sep 2026 23:33:09 +0000 Subject: [PATCH] 2026-09-22 23:33:08 Signed-off-by: lizzie --- .patch/zstd/0001-zbic-support.diff | 13 +++++++++++++ cpmfile.json | 6 +++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .patch/zstd/0001-zbic-support.diff diff --git a/.patch/zstd/0001-zbic-support.diff b/.patch/zstd/0001-zbic-support.diff new file mode 100644 index 0000000000..d9c9fdfb79 --- /dev/null +++ b/.patch/zstd/0001-zbic-support.diff @@ -0,0 +1,13 @@ +diff --git a/lib/zstd.h b/lib/zstd.h +index 415474d..411c45a 100644 +--- a/lib/zstd.h ++++ b/lib/zstd.h +@@ -139,7 +139,7 @@ ZSTDLIB_API const char* ZSTD_versionString(void); + ***************************************/ + + /* All magic numbers are supposed read/written to/from files/memory using little-endian convention */ +-#define ZSTD_MAGICNUMBER 0xFD2FB528 /* valid since v0.8.0 */ ++#define ZSTD_MAGICNUMBER 0x4349425A /* ZBIC compression */ + #define ZSTD_MAGIC_DICTIONARY 0xEC30A437 /* valid since v0.7.0 */ + #define ZSTD_MAGIC_SKIPPABLE_START 0x184D2A50 /* all 16 values, from 0x184D2A50 to 0x184D2A5F, signal the beginning of a skippable frame */ + #define ZSTD_MAGIC_SKIPPABLE_MASK 0xFFFFFFF0 diff --git a/cpmfile.json b/cpmfile.json index f574bf5668..33fe3c7b54 100644 --- a/cpmfile.json +++ b/cpmfile.json @@ -351,8 +351,12 @@ "options": [ "ZSTD_BUILD_SHARED OFF" ], + "patches": [ + "0001-zbic-support.patch" + ], "repo": "facebook/zstd", "source_subdir": "build/cmake", - "version": "b8d6101fba" + "version": "b8d6101fba", + "bundled": true } }