]> git.pld-linux.org Git - packages/rocksdb.git/commitdiff
- updated to 4.13.5 auto/th/rocksdb-4.13.5-1
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 26 Dec 2016 19:16:12 +0000 (20:16 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Mon, 26 Dec 2016 19:16:12 +0000 (20:16 +0100)
- removed obsolete numa patch
- added detect-flags, pass EXTRA_CFLAGS to fix detection of lz4 with headers in subdirectory

rocksdb-detect-flags.patch [new file with mode: 0644]
rocksdb-numa.patch [deleted file]
rocksdb.spec

diff --git a/rocksdb-detect-flags.patch b/rocksdb-detect-flags.patch
new file mode 100644 (file)
index 0000000..9b54fe6
--- /dev/null
@@ -0,0 +1,11 @@
+--- rocksdb-rocksdb-4.13.5/Makefile.orig       2016-12-26 19:15:47.176657758 +0100
++++ rocksdb-rocksdb-4.13.5/Makefile    2016-12-26 19:30:42.149980874 +0100
+@@ -137,7 +137,7 @@
+ AM_LINK = $(AM_V_CCLD)$(CXX) $^ $(EXEC_LDFLAGS) -o $@ $(LDFLAGS) $(COVERAGEFLAGS)
+ # detect what platform we're building on
+-dummy := $(shell (export ROCKSDB_ROOT="$(CURDIR)"; "$(CURDIR)/build_tools/build_detect_platform" "$(CURDIR)/make_config.mk"))
++dummy := $(shell (export ROCKSDB_ROOT="$(CURDIR)" CFLAGS="$(CFLAGS)"; "$(CURDIR)/build_tools/build_detect_platform" "$(CURDIR)/make_config.mk"))
+ # this file is generated by the previous line to set build flags and sources
+ include make_config.mk
+ CLEAN_FILES += make_config.mk
diff --git a/rocksdb-numa.patch b/rocksdb-numa.patch
deleted file mode 100644 (file)
index dd34955..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- rocksdb-rocksdb-4.4.1/build_tools/build_detect_platform.orig       2016-02-19 00:13:33.000000000 +0100
-+++ rocksdb-rocksdb-4.4.1/build_tools/build_detect_platform    2016-04-09 19:06:31.474404792 +0200
-@@ -286,7 +286,7 @@
-     # Test whether numa is available
-     $CXX $CFLAGS -x c++ - -o /dev/null -lnuma 2>/dev/null  <<EOF
-       #include <numa.h>
--      #inlcude <numaif.h>
-+      #include <numaif.h>
-       int main() {}
- EOF
-     if [ "$?" = 0 ]; then
index 21a3ae7a84870a377811714cb1dca4d37a308089..8972a4e08464f098ecfdb53eafa236bd0b32cdd6 100644 (file)
@@ -7,17 +7,17 @@
 Summary:       RocksDB: A Persistent Key-Value Store for Flash and RAM Storage
 Summary(pl.UTF-8):     RocksDB - trwała baza danych klucz-wartość dla pamięci Flash i RAM
 Name:          rocksdb
-Version:       4.9
+Version:       4.13.5
 Release:       1
 License:       BSD
 Group:         Libraries
 #Source0Download: https://github.com/facebook/rocksdb/releases
 Source0:       https://github.com/facebook/rocksdb/archive/%{name}-%{version}.tar.gz
-# Source0-md5: e23ab7b76faaa1fc4c96b86732b16448
+# Source0-md5: f94191cf37221c4541dfb4d7f544651e
 Patch0:                %{name}-libdir.patch
 Patch1:                make-programs.patch
-Patch2:                %{name}-numa.patch
-Patch3:                %{name}-jemalloc.patch
+Patch2:                %{name}-jemalloc.patch
+Patch3:                %{name}-detect-flags.patch
 URL:           http://rocksdb.org/
 BuildRequires: bzip2-devel
 BuildRequires: gflags-devel
@@ -27,11 +27,11 @@ BuildRequires:      jemalloc-devel
 BuildRequires: libatomic-devel
 %endif
 BuildRequires: libstdc++-devel >= 6:4.7
-BuildRequires: lz4-devel
+BuildRequires: lz4-devel >= 1:1.7
 BuildRequires: numactl-devel
 BuildRequires: snappy-devel
 BuildRequires: zlib-devel
-BuildRequires: zstd-devel
+BuildRequires: zstd-devel >= 0.8.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 # std::__once_call, std::__once_callable non-function symbols
@@ -83,6 +83,7 @@ PLATFORM_LDFLAGS="-latomic" \
        AM_DEFAULT_VERBOSITY=1 \
        CC="%{__cc}" \
        CXX="%{__cxx}" \
+       EXTRA_CFLAGS="$(pkg-config --cflags liblz4)" \
        OPT="%{rpmcflags} %{!?debug:-DNDEBUG}" \
        PORTABLE=1 \
        %{!?with_debug:DEBUG_LEVEL=0}
@@ -107,13 +108,12 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc HISTORY.md LICENSE PATENTS README.md ROCKSDB_LITE.md
+%doc AUTHORS DEFAULT_OPTIONS_HISTORY.md DUMP_FORMAT.md HISTORY.md LANGUAGE-BINDINGS.md LICENSE PATENTS README.md ROCKSDB_LITE.md USERS.md
 %attr(755,root,root) %{_libdir}/librocksdb.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/librocksdb.so.4.9
+%attr(755,root,root) %ghost %{_libdir}/librocksdb.so.4.13
 
 %files devel
 %defattr(644,root,root,755)
-%doc doc/*
 %attr(755,root,root) %{_libdir}/librocksdb.so
 %{_includedir}/rocksdb
 
This page took 0.081357 seconds and 4 git commands to generate.