From 6e69f2f250160f77db7b11743337a97568c0fda9 Mon Sep 17 00:00:00 2001 From: wuzx Date: Fri, 18 Nov 2022 16:46:26 +0800 Subject: [PATCH] Add sw64 architecture Signed-off-by: wuzx --- xz-Add-sw64-architecture.patch | 31 +++++++++++++++++++++++++++++++ xz.spec | 9 ++++++++- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 xz-Add-sw64-architecture.patch diff --git a/xz-Add-sw64-architecture.patch b/xz-Add-sw64-architecture.patch new file mode 100644 index 0000000..a2620f1 --- /dev/null +++ b/xz-Add-sw64-architecture.patch @@ -0,0 +1,31 @@ +From f46b5f849817f29ed54a9879c7e65e775f5adb24 Mon Sep 17 00:00:00 2001 +From: wuzx +Date: Fri, 18 Nov 2022 16:43:54 +0800 +Subject: [PATCH] Add sw64 architecture + +Add sw64 architecture in file src/liblzma/api/lzma/bcj.h to support sw64 architecture. + +Signed-off-by: wuzx +--- + src/liblzma/api/lzma/bcj.h | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/src/liblzma/api/lzma/bcj.h b/src/liblzma/api/lzma/bcj.h +index 8e37538..bf14685 100644 +--- a/src/liblzma/api/lzma/bcj.h ++++ b/src/liblzma/api/lzma/bcj.h +@@ -19,6 +19,11 @@ + + /* Filter IDs for lzma_filter.id */ + ++#define LZMA_FILTER_SW_64 LZMA_VLI_C(0x04) ++ /**< ++ * Filter for sw_64 binaries ++ */ ++ + #define LZMA_FILTER_X86 LZMA_VLI_C(0x04) + /**< + * Filter for x86 binaries +-- +2.33.0 + diff --git a/xz.spec b/xz.spec index 8b04edd..ebcecc8 100644 --- a/xz.spec +++ b/xz.spec @@ -1,6 +1,6 @@ Name: xz Version: 5.2.5 -Release: 3 +Release: 4 Summary: A free general-purpose data compreession software with LZMA2 algorithm License: Public Domain, LGPLv2.1 and GPLv2+ URL: http://tukaani.org/xz @@ -9,6 +9,7 @@ Source1: colorxzgrep.sh Source2: colorxzgrep.csh Patch6000: backport-CVE-2022-1271.patch +Patch6001: xz-Add-sw64-architecture.patch BuildRequires: perl-interpreter gcc @@ -111,6 +112,12 @@ LD_LIBRARY_PATH=$PWD/src/liblzma/.libs make check %{_mandir}/de/man1/*xz* %changelog +* Wed Oct 26 2022 wuzx - 5.2.5-4 +- Type:feature +- CVE:NA +- SUG:NA +- DESC:Add sw64 architecture + * Fri Sep 23 2022 wangjiang - 5.2.5-3 - Type:enhancement - CVE:NA -- Gitee