diff -Nru lz4-1.9.4/debian/changelog lz4-1.9.4/debian/changelog --- lz4-1.9.4/debian/changelog 2022-08-28 03:00:55.000000000 +0000 +++ lz4-1.9.4/debian/changelog 2022-09-03 06:52:39.000000000 +0000 @@ -1,3 +1,11 @@ +lz4 (1.9.4-1+rpi1) bookworm-staging; urgency=medium + + [changes brought forward from 0.8.0-1+rpi1 by Peter Michael Green at Thu, 07 Jan 2021 21:20:41 +0000] + * Use XXH_FORCE_MEMORY_ACCESS 1 instead of XXH_FORCE_MEMORY_ACCESS 2 + on armv6 to fix unaligned access issue. + + -- Peter Michael Green Sat, 03 Sep 2022 06:52:39 +0000 + lz4 (1.9.4-1) unstable; urgency=medium * New upstream release. diff -Nru lz4-1.9.4/debian/patches/fix-unaligned-access-on-armv6.patch lz4-1.9.4/debian/patches/fix-unaligned-access-on-armv6.patch --- lz4-1.9.4/debian/patches/fix-unaligned-access-on-armv6.patch 1970-01-01 00:00:00.000000000 +0000 +++ lz4-1.9.4/debian/patches/fix-unaligned-access-on-armv6.patch 2022-09-03 06:52:39.000000000 +0000 @@ -0,0 +1,16 @@ +Description: Use XXH_FORCE_MEMORY_ACCESS 1 instead of XXH_FORCE_MEMORY_ACCESS 2 on armv6 to fix unaligned access issue. +Author: Peter Michael Green + +Index: lz4-1.9.4.new/lib/xxhash.c +=================================================================== +--- lz4-1.9.4.new.orig/lib/xxhash.c ++++ lz4-1.9.4.new/lib/xxhash.c +@@ -53,7 +53,7 @@ + # if defined(__GNUC__) && ( defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) \ + || defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6Z__) \ + || defined(__ARM_ARCH_6ZK__) || defined(__ARM_ARCH_6T2__) ) +-# define XXH_FORCE_MEMORY_ACCESS 2 ++# define XXH_FORCE_MEMORY_ACCESS 1 + # elif (defined(__INTEL_COMPILER) && !defined(_WIN32)) || \ + (defined(__GNUC__) && ( defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) \ + || defined(__ARM_ARCH_7R__) || defined(__ARM_ARCH_7M__) \ diff -Nru lz4-1.9.4/debian/patches/series lz4-1.9.4/debian/patches/series --- lz4-1.9.4/debian/patches/series 2022-08-28 03:00:55.000000000 +0000 +++ lz4-1.9.4/debian/patches/series 2022-09-03 06:50:13.000000000 +0000 @@ -1,2 +1,3 @@ 0001-Fix-static-link.patch 0002-Change-optimize-to-O2.patch +fix-unaligned-access-on-armv6.patch