pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

leveldb: update to 1.20



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By:	wiz
Date:		Mon Mar 13 18:03:44 2017 +0100
Changeset:	6f5168dd99cdfe544a4d3e37ed3b342e228841ac

Modified Files:
	leveldb/Makefile
	leveldb/PLIST
	leveldb/distinfo

Log Message:
leveldb: update to 1.20

Release 1.20

    Convert documentation to markdown.
    Implement support for Intel crc32 instruction (SSE 4.2).
    Based on #309.
    Limit the number of read-only files the POSIX Env will have open.
    Add option for maximum file size.

Release 1.19

    A snappy change broke test assumptions about the size of compressed output. Fixed.
    Fix problems in LevelDB's caching code.
    Fix LevelDB build when asserts are enabled in release builds. (#367).
    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.
    Add leveldb::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.

Release 1.18

    Update version number to 1.18
    Replace the basic fprintf call with a call to fwrite in order to
    work around the apparent compiler optimization/rewrite failure that we are
    seeing with the new toolchain/iOS SDKs provided with Xcode6 and iOS8.
    Fix ALL the header guards.
    Createed a README.md with the LevelDB project description.
    A new CONTRIBUTING file.
    Don't implicitly convert uint64_t to size_t or int. Either preserve it as
    uint64_t, or explicitly cast. This fixes MSVC warnings about possible value
    truncation when compiling this code in Chromium.
    Added a DumpFile() library function that encapsulates the guts of the
    "leveldbutil dump" command. This will allow clients to dump
    data to their log files instead of stdout. It will also allow clients to
    supply their own environment.
    leveldb: Remove unused function 'ConsumeChar'.
    leveldbutil: Remove unused member variables from WriteBatchItemPrinter.
    OpenBSD, NetBSD and DragonflyBSD have _LITTLE_ENDIAN, so define
    PLATFORM_IS_LITTLE_ENDIAN like on FreeBSD. This fixes:
        issue #143
        issue #198
        issue #249
    Switch from <cstdatomic> to <atomic>. The former never made it into the
    standard and doesn't exist in modern gcc versions at all. The later contains
    everything that leveldb was using from the former.
    This problem was noticed when porting to Portable Native Client where no memory
    barrier is defined. The fact that <cstdatomic> is missing normally goes
    unnoticed since memory barriers are defined for most architectures.
    Make Hash() treat its input as unsigned. Before this change LevelDB files
    from platforms with different signedness of char were not compatible. This
    change fixes: issue #243
    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 <sys/stat.h> 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:
        issue #166
        issue #241
    Add missing db synchronize after "fillseq" in the benchmark.
    Removed unused variable in SeekRandom: value (issue #201)

Release 1.17

    Cleanup: delete unused IntSetToString

    It was added in http://cr/19491949 (and was referenced at the time).
    The last reference was removed in http://cr/19507363.

    This fixes warning/error with pre-release crosstoolv18:

    'std::string leveldb::{anonymous}::IntSetToString(const std::set<long unsigned int>&)' defined but not used [-Werror=unused-function]

    Added arm64 and and armv7s to IOS build as suggested on leveldb mailing list.

    Changed local variable type from int to size_t

    This eliminates compiler warning/error and resolves issue #146

Release 1.16

    Make Log::Reader not report a corruption when the last record in a log file is truncated.
    Fix issue #230: variable created but not utilized.
    Remove comment that referenced a removed feature.

Release 1.15

    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 #224 - Use native memory barriers on OSX
    fix issue #218 - QNX build is broken
    fix build on iOS with xcode 5
    make tests compile and pass on windows

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=6f5168dd99cdfe544a4d3e37ed3b342e228841ac

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 leveldb/Makefile | 23 +++++++++++------------
 leveldb/PLIST    | 12 ++++++------
 leveldb/distinfo |  7 ++++---
 3 files changed, 21 insertions(+), 21 deletions(-)

diffs:
diff --git a/leveldb/Makefile b/leveldb/Makefile
index 0590f08d08..04f8ea2530 100644
--- a/leveldb/Makefile
+++ b/leveldb/Makefile
@@ -1,19 +1,18 @@
 # $NetBSD: Makefile,v 1.12 2013/11/17 07:26:45 bubuchka Exp $
 
-DISTNAME=	leveldb-1.14.0
+DISTNAME=	leveldb-1.20
 CATEGORIES=	databases
-MASTER_SITES=	http://leveldb.googlecode.com/files/
+MASTER_SITES=	${MASTER_SITE_GITHUB:=google/}
+GITHUB_TAG=	v${PKGVERSION_NOREV}
 
 MAINTAINER=	mishka%NetBSD.org@localhost
-HOMEPAGE=	http://code.google.com/p/leveldb/
+HOMEPAGE=	https://github.com/google/leveldb
 COMMENT=	Fast and lightweight key/value database library by Google
 LICENSE=	modified-bsd
 
-USE_LANGUAGES+=	c++
+USE_LANGUAGES+=	c c++
 USE_TOOLS+=	gmake pax
 
-BUILD_TARGET=	all leveldbutil db_bench
-
 INSTALLATION_DIRS+=	bin include/leveldb lib share/doc/leveldb
 
 .include "../../mk/bsd.prefs.mk"
@@ -24,8 +23,8 @@ SS=		dylib
 SS=		so
 .endif
 
-MAJOR=		${PKGVERSION_NOREV:R:R}
-MINOR=		${PKGVERSION_NOREV:R:E}
+MAJOR=		${PKGVERSION_NOREV:R}
+MINOR=		${PKGVERSION_NOREV:E}
 
 # N.B.: leveldb Darwin support follows popular Unix .so naming convention
 SS.M=		${SS}.${MAJOR}
@@ -34,12 +33,12 @@ SS.M.N=		${SS}.${MAJOR}.${MINOR}
 PLIST_SUBST+=	SS=${SS:Q} SS.M=${SS.M:Q} SS.M.N=${SS.M.N:Q}
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/leveldbutil ${DESTDIR}${PREFIX}/bin
-	${INSTALL_PROGRAM} ${WRKSRC}/db_bench 				\
+	${INSTALL_PROGRAM} ${WRKSRC}/out-static/leveldbutil ${DESTDIR}${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/out-static/db_bench 				\
 		${DESTDIR}${PREFIX}/bin/leveldb_bench
 
-	${INSTALL_LIB} ${WRKSRC}/libleveldb.a ${DESTDIR}${PREFIX}/lib
-	${INSTALL_LIB} ${WRKSRC}/libleveldb.${SS.M.N} ${DESTDIR}${PREFIX}/lib
+	${INSTALL_LIB} ${WRKSRC}/out-static/libleveldb.a ${DESTDIR}${PREFIX}/lib
+	${INSTALL_LIB} ${WRKSRC}/out-shared/libleveldb.${SS.M.N} ${DESTDIR}${PREFIX}/lib
 	${LN} -s libleveldb.${SS.M.N} ${DESTDIR}${PREFIX}/lib/libleveldb.${SS.M}
 	${LN} -s libleveldb.${SS.M} ${DESTDIR}${PREFIX}/lib/libleveldb.${SS}
 
diff --git a/leveldb/PLIST b/leveldb/PLIST
index b3dd3d9cfb..8259ff8be0 100644
--- a/leveldb/PLIST
+++ b/leveldb/PLIST
@@ -1,10 +1,11 @@
-@comment $NetBSD: PLIST,v 1.5 2013/01/05 12:35:24 bubuchka Exp $
+@comment $NetBSD$
 bin/leveldb_bench
 bin/leveldbutil
 include/leveldb/c.h
 include/leveldb/cache.h
 include/leveldb/comparator.h
 include/leveldb/db.h
+include/leveldb/dumpfile.h
 include/leveldb/env.h
 include/leveldb/filter_policy.h
 include/leveldb/iterator.h
@@ -21,8 +22,7 @@ lib/libleveldb.${SS.M.N}
 share/doc/leveldb/bench/db_bench_sqlite3.cc
 share/doc/leveldb/bench/db_bench_tree_db.cc
 share/doc/leveldb/benchmark.html
-share/doc/leveldb/doc.css
-share/doc/leveldb/impl.html
-share/doc/leveldb/index.html
-share/doc/leveldb/log_format.txt
-share/doc/leveldb/table_format.txt
+share/doc/leveldb/impl.md
+share/doc/leveldb/index.md
+share/doc/leveldb/log_format.md
+share/doc/leveldb/table_format.md
diff --git a/leveldb/distinfo b/leveldb/distinfo
index 81a5f1718c..ac8d100fa1 100644
--- a/leveldb/distinfo
+++ b/leveldb/distinfo
@@ -1,6 +1,7 @@
 $NetBSD: distinfo,v 1.5 2013/11/17 07:26:45 bubuchka Exp $
 
-SHA1 (leveldb-1.14.0.tar.gz) = 641d54df4aaf7ee569ae003cfbdb888ebdee0d7f
-RMD160 (leveldb-1.14.0.tar.gz) = 8106fe78fb06d30a1adfa9ba91c38c15ff40b09b
-Size (leveldb-1.14.0.tar.gz) = 208282 bytes
+SHA1 (leveldb-1.20.tar.gz) = df11440c30deed5987263730180225db98de9f57
+RMD160 (leveldb-1.20.tar.gz) = 9cc7db3d8c80e11659bafe02e3efe7a03f98369d
+SHA512 (leveldb-1.20.tar.gz) = c59258f2f58ce2d5680e9ab3da4ab0923d91cd4648dcf63cdaa26cdde92bf45e094544539ad11d8e09a4a4813435286143ed0e86c21c6c31a0596903ed4744d2
+Size (leveldb-1.20.tar.gz) = 223141 bytes
 SHA1 (patch-aa) = 66a727ab380538bf01f4d472cdad0eeccddff544


Home | Main Index | Thread Index | Old Index