summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/snappy/snappy_1.2.2.bb
diff options
context:
space:
mode:
authorAlper Ak <alperyasinak1@gmail.com>2025-07-08 22:56:35 +0300
committerKhem Raj <raj.khem@gmail.com>2025-07-09 09:16:08 -0700
commit2297a31eb432c36e91892dc3da9a8412c1867344 (patch)
tree0fd0d8a8f59da8c5c8f33c9d26525a96369b945a /meta-oe/recipes-extended/snappy/snappy_1.2.2.bb
parent74acd7224860825261c8b73c934006575133db58 (diff)
downloadmeta-openembedded-2297a31eb432c36e91892dc3da9a8412c1867344.tar.gz
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>
Diffstat (limited to 'meta-oe/recipes-extended/snappy/snappy_1.2.2.bb')
-rw-r--r--meta-oe/recipes-extended/snappy/snappy_1.2.2.bb24
1 files changed, 24 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/snappy/snappy_1.2.2.bb b/meta-oe/recipes-extended/snappy/snappy_1.2.2.bb
new file mode 100644
index 0000000000..7601fdde50
--- /dev/null
+++ b/meta-oe/recipes-extended/snappy/snappy_1.2.2.bb
@@ -0,0 +1,24 @@
1#
2# Copyright (C) 2014 Wind River Systems, Inc.
3# Released under the BSD-3-Clause license (see COPYING.BSD-3 for the terms)
4#
5SUMMARY = "A compression/decompression library"
6DESCRIPTION = "Snappy is a fast data compression and decompression library \
7It was designed to be very fast and stable, but not to achieve a high \
8compression ratio."
9
10LICENSE = "BSD-3-Clause"
11LIC_FILES_CHKSUM = "file://COPYING;md5=f62f3080324a97b3159a7a7e61812d0c"
12
13SRC_URI = "gitsm://github.com/google/snappy.git;protocol=https;branch=main"
14SRCREV = "6af9287fbdb913f0794d0148c6aa43b58e63c8e3"
15
16inherit cmake pkgconfig
17
18PACKAGECONFIG ??= ""
19PACKAGECONFIG[lzo] = "-DHAVE_LIBLZO2=1,-DHAVE_LIBLZO2=0,lzo,"
20TARGET_CFLAGS += "-fPIC"
21
22EXTRA_OECMAKE += '-DBUILD_SHARED_LIBS="ON" -DSNAPPY_BUILD_TESTS="OFF" -DSNAPPY_BUILD_BENCHMARKS="OFF"'
23
24CVE_PRODUCT = "google:snappy"