Sync from SUSE:SLFO:Main snappy revision f784542450e2532771b6153bf868da67

This commit is contained in:
Adrian Schröter 2024-09-30 10:57:26 +02:00
parent 905bd31644
commit 3aa7d68d44
5 changed files with 20 additions and 37 deletions

BIN
1.1.10.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

BIN
1.1.9.tar.gz (Stored with Git LFS)

Binary file not shown.

View File

@ -1,29 +0,0 @@
From 0c716d435abe65250100c2caea0e5126ac4e14bd Mon Sep 17 00:00:00 2001
From: "Georgi D. Sotirov" <gdsotirov@gmail.com>
Date: Wed, 5 May 2021 14:16:46 +0300
Subject: [PATCH] Add inline with SNAPPY_ATTRIBUTE_ALWAYS_INLINE
Upstream: https://github.com/google/snappy/pull/128
Add inline with SNAPPY_ATTRIBUTE_ALWAYS_INLINE on AdvanceToNextTag to
fix compilation errors and a warning with GCC.
Just like with other functions using SNAPPY_ATTRIBUTE_ALWAYS_INLINE
macro (i.e. __attribute__((always_inline)) ) it is necessary to use C++
inline specifier.
---
snappy.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/snappy.cc b/snappy.cc
index 79dc0e8d..51157be2 100644
--- a/snappy.cc
+++ b/snappy.cc
@@ -1014,7 +1014,7 @@ void MemMove(ptrdiff_t dst, const void* src, size_t size) {
}
SNAPPY_ATTRIBUTE_ALWAYS_INLINE
-size_t AdvanceToNextTag(const uint8_t** ip_p, size_t* tag) {
+inline size_t AdvanceToNextTag(const uint8_t** ip_p, size_t* tag) {
const uint8_t*& ip = *ip_p;
// This section is crucial for the throughput of the decompression loop.
// The latency of an iteration is fundamentally constrained by the

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Mon Mar 25 11:34:39 UTC 2024 - Danilo Spinella <danilo.spinella@suse.com>
- Fix build with GTest 1.14.0 by using C++14, bsc#1221872
-------------------------------------------------------------------
Fri Nov 10 13:54:10 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 1.1.10:
* Performance improvements
* Compilation fixes for various environments
- drop fix-always-inline.patch (obsolete)
-------------------------------------------------------------------
Wed Oct 27 06:25:52 UTC 2021 - Tim Serong <tserong@suse.com>
@ -72,7 +85,7 @@ Wed Jul 29 09:58:16 UTC 2015 - dimstar@opensuse.org
Thu Sep 11 09:34:36 UTC 2014 - toddrme2178@gmail.com
- Update to version 1.1.2
- This is a maintenance release with no changes to the actual
- This is a maintenance release with no changes to the actual
library source code.
* Stop distributing benchmark data files that have unclear
or unsuitable licensing.

View File

@ -1,7 +1,7 @@
#
# spec file for package snappy
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -18,7 +18,7 @@
%define libname libsnappy1
Name: snappy
Version: 1.1.9
Version: 1.1.10
Release: 0
Summary: A compressor/decompressor library favoring time
License: BSD-3-Clause
@ -28,7 +28,6 @@ Source0: https://github.com/google/snappy/archive/%{version}.tar.gz
Source1: snappy.pc
Source99: baselibs.conf
Patch0: use-system-test-libs.patch
Patch1: fix-always-inline.patch
Patch2: reenable-rtti.patch
BuildRequires: cmake
BuildRequires: gcc-c++
@ -75,7 +74,7 @@ This package holds the development files for snappy.
%autosetup
%build
%cmake -DSNAPPY_USE_BUNDLED_GTEST=OFF -DSNAPPY_USE_BUNDLED_BENCHMARK_LIB=OFF
%cmake -DSNAPPY_USE_BUNDLED_GTEST=OFF -DSNAPPY_USE_BUNDLED_BENCHMARK_LIB=OFF -DCMAKE_CXX_STANDARD=14
%make_build
%install