mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-04-02 02:49:12 +00:00
snappy: Upgrade 1.1.10 -> 1.2.2 to to allow CMake 4+ compatibility
- Dropped patch because already fixed in the newer version. Changelog: - We fixed a very old issue of data corruption when compressed size exceeds 4GB. This can happen when you compress data close to 4GB and it's incompressible, for example, random data. - Started to use minimum CMake 3.10 because older ones are not planned to be supported. - Various other small fixes - We restored old functions/symbols after reports of ABI incompatibility apache/arrow#41058 conda-forge/snappy-feedstock#35 #183 - Level API was added with level 2 support. Compresses 5-10% denser and decompresses 5-10% faster. The compression speed drop is about 20-30% - Minor fixes Fix: | CMake Error at CMakeLists.txt:29 (cmake_minimum_required): | Compatibility with CMake < 3.5 has been removed from CMake. | | Update the VERSION argument <min> value. Or, use the <min>...<max> syntax | to tell CMake that the project requires at least <min> but has been updated | to work with policies introduced by <max> or earlier. | | Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. | | | -- Configuring incomplete, errors occurred! Signed-off-by: Alper Ak <alperyasinak1@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
74acd72248
commit
2297a31eb4
@ -1,33 +0,0 @@
|
|||||||
From ecb3bcc283ce740a34d6342cbcda569f3193ade9 Mon Sep 17 00:00:00 2001
|
|
||||||
From: David Michael <fedora.dm0@gmail.com>
|
|
||||||
Date: Mon, 1 May 2023 11:14:32 -0400
|
|
||||||
Subject: [PATCH] Specifically check for NEON for ARMv8 CPUs.
|
|
||||||
|
|
||||||
The actual NEON implementation uses instructions that are not
|
|
||||||
supported on 32-bit CPUs. Make the CMake test reflect this so that
|
|
||||||
ARMv7 builds succeed again.
|
|
||||||
|
|
||||||
Upstream-Status: Submitted [https://github.com/google/snappy/pull/169]
|
|
||||||
|
|
||||||
Signed-off-by: David Michael <fedora.dm0@gmail.com>
|
|
||||||
Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
|
|
||||||
---
|
|
||||||
CMakeLists.txt | 4 ++--
|
|
||||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
||||||
index 85afe58e..e8775859 100644
|
|
||||||
--- a/CMakeLists.txt
|
|
||||||
+++ b/CMakeLists.txt
|
|
||||||
@@ -207,9 +207,9 @@ int main() {
|
|
||||||
check_cxx_source_compiles("
|
|
||||||
#include <arm_neon.h>
|
|
||||||
int main() {
|
|
||||||
- uint8_t val = 3, dup[8];
|
|
||||||
+ uint8_t val = 3;
|
|
||||||
uint8x16_t v = vld1q_dup_u8(&val);
|
|
||||||
- vst1q_u8(dup, v);
|
|
||||||
+ val = vmaxvq_u8(v);
|
|
||||||
return 0;
|
|
||||||
}" SNAPPY_HAVE_NEON)
|
|
||||||
|
|
||||||
@ -10,11 +10,8 @@ compression ratio."
|
|||||||
LICENSE = "BSD-3-Clause"
|
LICENSE = "BSD-3-Clause"
|
||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=f62f3080324a97b3159a7a7e61812d0c"
|
LIC_FILES_CHKSUM = "file://COPYING;md5=f62f3080324a97b3159a7a7e61812d0c"
|
||||||
|
|
||||||
SRC_URI = "gitsm://github.com/google/snappy.git;protocol=https;branch=main \
|
SRC_URI = "gitsm://github.com/google/snappy.git;protocol=https;branch=main"
|
||||||
file://fix-build-on-32bit-arm.patch"
|
SRCREV = "6af9287fbdb913f0794d0148c6aa43b58e63c8e3"
|
||||||
|
|
||||||
SRCREV = "dc05e026488865bc69313a68bcc03ef2e4ea8e83"
|
|
||||||
|
|
||||||
|
|
||||||
inherit cmake pkgconfig
|
inherit cmake pkgconfig
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user