leveldb/leveldb.changes

264 lines
11 KiB
Plaintext
Raw Normal View History

-------------------------------------------------------------------
Mon Mar 25 05:43:50 UTC 2024 - David Disseldorp <ddiss@suse.de>
- Use C++14 to satisfy GTest's new minimum version requirement
[bsc#1221870]
-------------------------------------------------------------------
Mon Jan 22 09:31:24 UTC 2024 - pgajdos@suse.com
- remove faulty and noop assignment
-------------------------------------------------------------------
Thu Jan 11 18:08:20 UTC 2024 - pgajdos@suse.com
- disable autocompact_test [bsc#1218597]
-------------------------------------------------------------------
Wed Mar 8 12:47:35 UTC 2023 - Martin Pluskal <mpluskal@suse.com>
- Build AVX2 enabled hwcaps library for x86_64-v3
-------------------------------------------------------------------
Wed Jun 9 12:08:18 UTC 2021 - Ferdinand Thiessen <rpm@fthiessen.de>
- Add enable-rtti.patch, enable rtti support again to fix build
issue of ceph
-------------------------------------------------------------------
Mon May 3 09:46:47 UTC 2021 - Ferdinand Thiessen <rpm@fthiessen.de>
- Update to version 1.23:
* Switch from C headers to C++ headers.
* Remove leveldb::port::kLittleEndian.
* Add Env::Remove{File,Dir} which obsolete Env::Delete{File,Dir}.
* Sync MANIFEST before closing in db_impl when creating a new DB.
* Optimize leveldb block seeks to utilize the current iterator
location.
* broken db: fix assertion in leveldb::InternalKey::Encode,
mark base as corrupt
* fix bug(uninitialized options pointer in State)
* Fix accidental double std:: qualifiers.
* Fix tsan problem in env_test.
* Don't check current key in DBIter::Next()
* block_builder header file dependency fixed
* Add O_CLOEXEC to open calls.
* Memory optimization
* Documentation improvements
- Add detect-system-gtest.patch to use googletest and benchmark
from system, add those libraries as dependencies
- Build in second build directory to prevent cmake files generated
for the static library (prefer shared one)
-------------------------------------------------------------------
Wed Apr 29 12:33:36 UTC 2020 - David Disseldorp <ddiss@suse.com>
- Remove 0001-debian-ports.patch
* std::atomic now used instead of internal AtomicPointer asm
- Update to version 1.22:
* Corrected formatting to be compliant with the Google C++ Style Guide.
* Restore soname versioning with CMake build.
* Other miscellaneous cleanups, fixes, and improvements.
- Update to version 1.21:
* Add tests for empty keys and values.
* Switch corruption_test to use InMemEnv.
* Replace AtomicPointer with std::atomic.
* Make InMemoryEnv more consistent with filesystem based Env's.
* Align windows_logger with posix_logger.
* Added native support for Windows.
* Make WriteBatch::ApproximateSize() const.
* Fix fdatasync() feature detection in opensource build.
* C++11 cleanup for util/mutexlock.h.
* Rework threading in env_posix.cc.
* Remove InitOnce from the port API.
* Expose WriteBatch::Append().
* Fix documentation for log file growth.
* Add move constructor to Status.
* Replace port_posix with port_stdcxx.
* Reimplement ConsumeDecimalNumber.
* Replace NULL with nullptr in C++ files.
* Remove PLATFORM_IS_LITTLE_ENDIAN from port/posix.h.
* Add more thread safety annotations.
* Require C++11.
* Replace SIZE_MAX with std::numeric_limits.
* Add CMake build support.
* Enable thread safety annotations.
* leveldb::DestroyDB will now delete empty directories.
* Replace SSE-optimized CRC32C in POSIX port with external library.
* Fix file writing bug in CL 170738066.
* Fix use of uninitialized value in LRUHandle.
* Fix issue #474: a race between the f*_unlocked() STDIO calls in
env_posix.cc and concurrent application calls to fflush(NULL).
* Report missing CURRENT manifest file as database corruption.
* LevelDB: Add WriteBatch::ApproximateSize().
* Other minor fixes, code cleanup, and documentation improvements.
- Perform a two-pass build, once for static and once for shared libs
-------------------------------------------------------------------
Fri Aug 2 07:04:04 UTC 2019 - Martin Liška <mliska@suse.cz>
- Use FAT LTO objects in order to provide proper static library.
-------------------------------------------------------------------
Fri Aug 11 10:44:05 UTC 2017 - ncutler@suse.com
- added 0001-debian-ports.patch
* obtained by rebasing https://github.com/google/leveldb/pull/291
on top of 1.20 (one non-trivial conflict involving aarch64,
consulted with ARM experts - NOTE: this patch has not been
accepted upstream, but it's needed to support s390x)
-------------------------------------------------------------------
Thu Aug 10 11:52:35 UTC 2017 - ncutler@suse.com
- FATE#319443 (aarch64 enablement) changes were backported by
https://build.opensuse.org/request/show/294636 and are part
of this release. Factory version builds on aarch64.
(bsc#1041611)
Accepting request 502898 from home:pluskalm:branches:devel:libraries:c_c++ - Update to version 1.20: - Package command line utils as well old: devel:libraries:c_c++/leveldb new: home:pluskalm:branches:devel:libraries:c_c++/leveldb rev None Index: leveldb.changes =================================================================== --- leveldb.changes (revision 17) +++ leveldb.changes (revision 3) @@ -1,4 +1,49 @@ ------------------------------------------------------------------- +Sun Jun 11 17:07:36 UTC 2017 - mpluskal@suse.com + +- Update to version 1.20: + * Convert documentation to markdown. + * Implement support for Intel crc32 instruction (SSE 4.2). + * Limit the number of read-only files the POSIX Env will have + open. + * Add option for maximum file size. +- Changes for version 1.19: + * A snappy change broke test assumptions about the size of + compressed output. + * Fix problems in LevelDB's caching code. + * Fix LevelDB build when asserts are enabled in release builds. + * Change std::uint64_t to uint64_t (#354). + * Fixes a bug encountered when reading records from leveldb + files that have + * been split, as in a [] input task split. + * Deleted redundant null ptr check prior to delete. (#338). + * Fix signed/unsigned mismatch on VC++ builds. + * Putting build artifacts in subdirectory. + * Added continuous build integration via Travis CI. + * log compaction output file's level along with number. + * Misc. improvements to README file. + * Fix Android/MIPS build (#115). + * Only compiling TrimSpace on linux (#310). + * Use xcrun to determine Xcode.app path instead of using a + hardcoded path. + * Add "approximate-memory-usage" property to + leveldb::DB::GetProperty. + * Addleveldb::Cache::Prune. + * Fix size_t/int comparison/conversion issues. + * Added leveldb::Status::IsInvalidArgument() method. + * Suppress error reporting after seeking but before a valid First + or Full record is encountered. + * #include -> (#280). + * Now attempts to reuse the preceding MANIFEST and log file when + re-opened. + * Add benchmark that measures cost of repeatedly opening the + database. + * Added a new fault injection test. + * Add arm64 support to leveldb. +- Drop no longer needed 0001-debian-ports.patch +- Package command line utils as well + +------------------------------------------------------------------- Sun Apr 5 13:29:58 UTC 2015 - mpluskal@suse.com - Update project url Index: leveldb.spec =================================================================== --- leveldb.spec (revision 17) +++ leveldb.spec (revision 3) @@ -1,7 +1,7 @@ # # spec file for package leveldb # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,17 +17,15 @@ Name: leveldb -Version: 1.18 +Version: 1.20 Release: 0 Summary: A key/value-store License: BSD-3-Clause Group: Development/Libraries/C and C++ Url: https://github.com/google/leveldb -Source0: https://github.com/google/leveldb/archive/v%{version}.tar.gz -Patch0: 0001-debian-ports.patch +Source0: https://github.com/google/leveldb/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: snappy-devel -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description leveldb implements a system for maintaining a persistent key/value store. @@ -67,38 +65,47 @@ %prep %setup -q -%patch0 -p1 %build make %{?_smp_mflags} OPT="%{optflags}" -%check -make %{?_smp_mflags} check - %install -install -d -m 0755 %{buildroot}%{_includedir} %{buildroot}%{_libdir} +install -d -m 0755 \ + %{buildroot}%{_includedir} \ + %{buildroot}%{_libdir} \ + %{buildroot}%{_bindir} cp -a \ - libleveldb.a \ - libleveldb.so* \ + out-static/libleveldb.a \ + out-shared/libleveldb.so* \ %{buildroot}%{_libdir} -cp -a include/leveldb %{buildroot}%{_includedir} -find %{buildroot} -type f -name "*.la" -delete -print +cp -a include/leveldb \ + %{buildroot}%{_includedir} -%post -n %{lib_name} -p /sbin/ldconfig +cp -a \ + out-shared/db_bench \ + %{buildroot}%{_bindir} +%check +make %{?_smp_mflags} check + +%post -n %{lib_name} -p /sbin/ldconfig %postun -n %{lib_name} -p /sbin/ldconfig +%files +%defattr(-,root,root,-) +%{_bindir}/db_bench + %files -n %{lib_name} %defattr(-,root,root,-) %{_libdir}/libleveldb.so.* %files devel %defattr(-,root,root,-) -%{_libdir}/libleveldb.so +%doc AUTHORS LICENSE NEWS README.md TODO doc/* %{_includedir}/leveldb/ -%doc AUTHORS LICENSE NEWS README TODO doc/* +%{_libdir}/libleveldb.so %files devel-static %defattr(-,root,root,-) Index: leveldb-1.20.tar.gz =================================================================== Binary file leveldb-1.20.tar.gz (revision 3) added Index: 0001-debian-ports.patch =================================================================== --- 0001-debian-ports.patch (revision 17) +++ 0001-debian-ports.patch (deleted) @@ -1,205 +0,0 @@ -Description: Add support for most of Debian architectures -Author: Nobuhiro Iwamatsu <iwamatsu@debian.org> ---- - port/atomic_pointer.h | 136 ++++++++++++++++++++++++++++++++++++++++++++++---- - 1 file changed, 126 insertions(+), 10 deletions(-) - -Index: leveldb-1.18/port/atomic_pointer.h -=================================================================== ---- leveldb-1.18.orig/port/atomic_pointer.h -+++ leveldb-1.18/port/atomic_pointer.h -@@ -37,6 +37,18 @@ - #define ARCH_CPU_ARM_FAMILY 1 - #elif defined(__ppc__) || defined(__powerpc__) || defined(__powerpc64__) - #define ARCH_CPU_PPC_FAMILY 1 -+#elif defined(__ia64__) -+#define ARCH_CPU_IA64_FAMILY 1 -+#elif defined(__alpha__) -+#define ARCH_CPU_ALPHA_FAMILY 1 -+#elif defined(__s390x__) || defined(__s390__) -+#define ARCH_CPU_S390_FAMILY 1 -+#elif defined(__sparc__) || defined(__sparc64__) -+#define ARCH_CPU_SPARC_FAMILY 1 -+#elif defined(__sh__) -+#define ARCH_CPU_SH_FAMILY 1 -+#elif defined(__hppa__) || defined(__parisc__) -+#define ARCH_CPU_PARISC_FAMILY 1 - #endif - - namespace leveldb { -@@ -49,16 +61,27 @@ namespace port { - // http://msdn.microsoft.com/en-us/library/ms684208(v=vs.85).aspx - #define LEVELDB_HAVE_MEMORY_BARRIER - -+#define ReadMemoryBarrier MemoryBarrier() -+#define WriteMemoryBarrier MemoryBarrier() -+ - // Mac OS - #elif defined(OS_MACOSX) --inline void MemoryBarrier() { -+inline void ReadMemoryBarrier() { -+ OSMemoryBarrier(); -+} -+inline void WriteMemoryBarrier() { - OSMemoryBarrier(); - } - #define LEVELDB_HAVE_MEMORY_BARRIER - - // Gcc on x86 - #elif defined(ARCH_CPU_X86_FAMILY) && defined(__GNUC__) --inline void MemoryBarrier() { -+inline void ReadMemoryBarrier() { -+ // See http://gcc.gnu.org/ml/gcc/2003-04/msg01180.html for a discussion on -+ // this idiom. Also see http://en.wikipedia.org/wiki/Memory_ordering. -+ __asm__ __volatile__("" : : : "memory"); -+} -+inline void WriteMemoryBarrier() { - // See http://gcc.gnu.org/ml/gcc/2003-04/msg01180.html for a discussion on - // this idiom. Also see http://en.wikipedia.org/wiki/Memory_ordering. - __asm__ __volatile__("" : : : "memory"); -@@ -67,7 +90,12 @@ inline void MemoryBarrier() { - - // Sun Studio - #elif defined(ARCH_CPU_X86_FAMILY) && defined(__SUNPRO_CC) --inline void MemoryBarrier() { -+inline void ReadMemoryBarrier() { -+ // See http://gcc.gnu.org/ml/gcc/2003-04/msg01180.html for a discussion on -+ // this idiom. Also see http://en.wikipedia.org/wiki/Memory_ordering. -+ asm volatile("" : : : "memory"); -+} -+inline void WriteMemoryBarrier() { - // See http://gcc.gnu.org/ml/gcc/2003-04/msg01180.html for a discussion on - // this idiom. Also see http://en.wikipedia.org/wiki/Memory_ordering. - asm volatile("" : : : "memory"); -@@ -87,17 +115,99 @@ typedef void (*LinuxKernelMemoryBarrierF - // shows that the extra function call cost is completely negligible on - // multi-core devices. - // --inline void MemoryBarrier() { -+inline void ReadMemoryBarrier() { -+ (*(LinuxKernelMemoryBarrierFunc)0xffff0fa0)(); -+} -+inline void WriteMemoryBarrier() { - (*(LinuxKernelMemoryBarrierFunc)0xffff0fa0)(); - } - #define LEVELDB_HAVE_MEMORY_BARRIER - - // PPC - #elif defined(ARCH_CPU_PPC_FAMILY) && defined(__GNUC__) --inline void MemoryBarrier() { -- // TODO for some powerpc expert: is there a cheaper suitable variant? -- // Perhaps by having separate barriers for acquire and release ops. -- asm volatile("sync" : : : "memory"); -+ -+inline void ReadMemoryBarrier() { -+#ifdef __powerpc64__ -+ __asm__ __volatile__ ("lwsync" : : : "memory"); -+#else -+ __asm__ __volatile__ ("sync" : : : "memory"); -+#endif -+} -+inline void WriteMemoryBarrier() { -+ __asm__ __volatile__ ("sync" : : : "memory"); -+} -+#define LEVELDB_HAVE_MEMORY_BARRIER -+ -+// IA64 -+#elif defined(ARCH_CPU_IA64_FAMILY) -+inline void ReadMemoryBarrier() { -+ __asm__ __volatile__ ("mf" : : : "memory"); -+} -+inline void WriteMemoryBarrier() { -+ __asm__ __volatile__ ("mf" : : : "memory"); -+} -+#define LEVELDB_HAVE_MEMORY_BARRIER -+ -+// ALPHA -+#elif defined(ARCH_CPU_ALPHA_FAMILY) -+ -+inline void ReadMemoryBarrier() { -+ __asm__ __volatile__("mb" : : : "memory"); -+} -+inline void WriteMemoryBarrier() { -+ __asm__ __volatile__("wmb" : : : "memory"); -+} -+#define LEVELDB_HAVE_MEMORY_BARRIER -+ -+// S390 -+#elif defined(ARCH_CPU_S390_FAMILY) -+ -+inline void ReadMemoryBarrier() { -+ asm volatile("bcr 15,0" : : : "memory"); -+} -+inline void WriteMemoryBarrier() { -+ asm volatile("bcr 15,0" : : : "memory"); -+} -+#define LEVELDB_HAVE_MEMORY_BARRIER -+ -+// SPARC -+#elif defined(ARCH_CPU_SPARC_FAMILY) -+ -+inline void ReadMemoryBarrier() { -+ __asm__ __volatile__("" : : : "memory"); -+} -+inline void WriteMemoryBarrier() { -+ __asm__ __volatile__("" : : : "memory"); -+} -+#define LEVELDB_HAVE_MEMORY_BARRIER -+ -+// SH -+#elif defined(ARCH_CPU_SH_FAMILY) -+#if defined(__SH4A__) || defined(__SH5__) -+inline void ReadMemoryBarrier() { -+ __asm__ __volatile__ ("synco": : :"memory"); -+} -+inline void WriteMemoryBarrier() { -+ __asm__ __volatile__ ("synco": : :"memory"); -+} -+#else -+inline void ReadMemoryBarrier() { -+ __asm__ __volatile__ ("": : :"memory"); -+} -+inline void WriteMemoryBarrier() { -+ __asm__ __volatile__ ("": : :"memory"); -+} -+#endif -+#define LEVELDB_HAVE_MEMORY_BARRIER -+ -+// PARISC -+#elif defined(ARCH_CPU_PARISC_FAMILY) -+ -+inline void ReadMemoryBarrier() { -+ __asm__ __volatile__("" : : : "memory") -+} -+inline void WriteMemoryBarrier() { -+ __asm__ __volatile__("" : : : "memory") - } - #define LEVELDB_HAVE_MEMORY_BARRIER - -@@ -115,11 +225,11 @@ class AtomicPointer { - inline void NoBarrier_Store(void* v) { rep_ = v; } - inline void* Acquire_Load() const { - void* result = rep_; -- MemoryBarrier(); -+ ReadMemoryBarrier(); - return result; - } - inline void Release_Store(void* v) { -- MemoryBarrier(); -+ WriteMemoryBarrier(); - rep_ = v; - } - }; -@@ -216,6 +326,12 @@ class AtomicPointer { - #undef ARCH_CPU_X86_FAMILY - #undef ARCH_CPU_ARM_FAMILY - #undef ARCH_CPU_PPC_FAMILY -+#undef ARCH_CPU_IA64_FAMILY -+#undef ARCH_CPU_ALPHA_FAMILY -+#undef ARCH_CPU_S390_FAMILY -+#undef ARCH_CPU_SPARC_FAMILY -+#undef ARCH_CPU_SH_FAMILY -+#undef ARCH_CPU_PARISC_FAMILY - - } // namespace port - } // namespace leveldb Index: v1.18.tar.gz =================================================================== Binary file v1.18.tar.gz (revision 17) deleted OBS-URL: https://build.opensuse.org/request/show/502898 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/leveldb?expand=0&rev=18
2017-06-14 14:00:48 +02:00
-------------------------------------------------------------------
Sun Jun 11 17:07:36 UTC 2017 - mpluskal@suse.com
- Update to version 1.20:
* Convert documentation to markdown.
* Implement support for Intel crc32 instruction (SSE 4.2).
* Limit the number of read-only files the POSIX Env will have
open.
* Add option for maximum file size.
- Changes for version 1.19:
* A snappy change broke test assumptions about the size of
compressed output.
* Fix problems in LevelDB's caching code.
* Fix LevelDB build when asserts are enabled in release builds.
* Change std::uint64_t to uint64_t (#354).
* Fixes a bug encountered when reading records from leveldb
files that have
* been split, as in a [] input task split.
* Deleted redundant null ptr check prior to delete. (#338).
* Fix signed/unsigned mismatch on VC++ builds.
* Putting build artifacts in subdirectory.
* Added continuous build integration via Travis CI.
* log compaction output file's level along with number.
* Misc. improvements to README file.
* Fix Android/MIPS build (#115).
* Only compiling TrimSpace on linux (#310).
* Use xcrun to determine Xcode.app path instead of using a
hardcoded path.
* Add "approximate-memory-usage" property to
leveldb::DB::GetProperty.
* Addleveldb::Cache::Prune.
* Fix size_t/int comparison/conversion issues.
* Added leveldb::Status::IsInvalidArgument() method.
* Suppress error reporting after seeking but before a valid First
or Full record is encountered.
* #include -> (#280).
* Now attempts to reuse the preceding MANIFEST and log file when
re-opened.
* Add benchmark that measures cost of repeatedly opening the
database.
* Added a new fault injection test.
* Add arm64 support to leveldb.
- Drop no longer needed 0001-debian-ports.patch
- Package command line utils as well
-------------------------------------------------------------------
Sun Apr 5 13:29:58 UTC 2015 - mpluskal@suse.com
- Update project url
- Use url for source
- Enable tests
-------------------------------------------------------------------
Mon Oct 20 12:13:47 UTC 2014 - dmueller@suse.com
- update to 1.18:
+ Replace the basic fprintf call with a call to fwrite
+ Fix ALL the header guards.
+ A new CONTRIBUTING file.
+ leveldb: Remove unused function 'ConsumeChar'.
+ leveldbutil: Remove unused member variables from WriteBatchItemPrinter.
+ Verify checksums of index/meta/filter blocks when paranoid_checks set.
+ Invoke all tools for iOS with xcrun. (This was causing problems with the new XCode 5.1.1 image on pulse.)
+ include only once, and fix the following linter warning: "Found C system header after C++ system header"
+ When encountering a corrupted table file, return Status::Corruption instead of Status::InvalidArgument.
+ Support cygwin as build platform, patch is from https://code.google.com/p/leveldb/issues/detail?id=188
+ Fix typo, merge patch from https://code.google.com/p/leveldb/issues/detail?id=159
+ Fix typos and comments, and address the following two issues:
+ Add missing db synchronize after "fillseq" in the benchmark.
+ Removed unused variable in SeekRandom: value (issue #201)
-------------------------------------------------------------------
Mon Apr 7 15:33:22 UTC 2014 - ddiss@suse.com
- updated to 1.16.0
+ Make Log::Reader not report a corruption when the last record in a
log file is truncated.
+ Fix issue 224: variable created but not utilized.
+ Remove comment that referenced a removed feature.
-------------------------------------------------------------------
Wed Feb 5 16:14:12 UTC 2014 - ddiss@suse.com
- updated to 1.15.0
+ switched from mmap based writing to simpler stdio based writing. Has
a minor impact (0.5 microseconds) on microbenchmarks for asynchronous
writes. Synchronous writes speed up from 30ms to 10ms on linux/ext4.
Should be much more reliable on diverse platforms.
+ compaction errors now immediately put the database into a read-only
mode (until it is re-opened). As a downside, a disk going out of
space and then space being created will require a re-open to recover
from, whereas previously that would happen automatically. On the
plus side, many corruption possibilities go away.
+ force the DB to enter an error-state so that all future writes fail
when a synchronous log write succeeds but the sync fails.
+ repair now regenerates sstables that exhibit problems
+ fix issue 218 - Use native memory barriers on OSX
+ fix issue 212 - QNX build is broken
+ fix build on iOS with xcode 5
+ make tests compile and pass on windows
- refreshed 0001-debian-ports.patch
+ moved OS_MACOSX hunk
-------------------------------------------------------------------
Wed Dec 18 17:49:35 CET 2013 - ro@suse.de
- add support for other archs (taken from debian, 0001-debian-ports.patch)
-------------------------------------------------------------------
Sun Nov 3 22:51:28 UTC 2013 - ddiss@suse.com
- Changed shared libs group to System/Libraries.
-------------------------------------------------------------------
Sun Oct 13 07:59:03 UTC 2013 - i@marguerite.su
- ran spec-cleaner. too casual the specfile was.
- make check/make clean is no more for OBS.
- add Provides/Obsoletes to libleveldb1.
* no one know that name, provide leveldb itself
* required by python-leveldb and python3-leveldb
-------------------------------------------------------------------
Tue Oct 8 10:42:43 UTC 2013 - ddiss@suse.com
- Updated to 1.14.0
-------------------------------------------------------------------
Tue Jul 16 11:13:01 UTC 2013 - ddiss@suse.com
- Updated to 1.12.0
+ removed shared_library.patch, now upstream.
-------------------------------------------------------------------
Wed Feb 8 17:29:24 UTC 2012 - mrueckert@suse.de
- added shared library patch
- update to shared/static library packaging policy
-------------------------------------------------------------------
Wed Feb 8 16:55:02 UTC 2012 - mrueckert@suse.de
- initial package