pika: Bump to 3.4.1
This commit is contained in:
parent
150a220d92
commit
0c43afd442
|
@ -5,10 +5,10 @@
|
||||||
-CXX=g++
|
-CXX=g++
|
||||||
-PLATFORM_LDFLAGS= -lpthread -lrt
|
-PLATFORM_LDFLAGS= -lpthread -lrt
|
||||||
-PLATFORM_CXXFLAGS= -std=c++11 -fno-builtin-memcmp -msse -msse4.2
|
-PLATFORM_CXXFLAGS= -std=c++11 -fno-builtin-memcmp -msse -msse4.2
|
||||||
+PLATFORM_CXXFLAGS= -std=c++11 -fno-builtin-memcmp $(CPPFLAGS)
|
+PLATFORM_CXXFLAGS= -std=c++17 -fno-builtin-memcmp $(CPPFLAGS)
|
||||||
PROFILING_FLAGS=-pg
|
ROCKSDB_CXXFLAGS=
|
||||||
OPT=
|
CC_VERSION_MAJOR := $(shell $(CXX) -dumpversion | cut -d '.' -f1)
|
||||||
LDFLAGS += -Wl,-rpath=$(RPATH)
|
ifeq (1,$(shell expr $(CC_VERSION_MAJOR) \> 7))
|
||||||
@@ -27,7 +25,7 @@
|
@@ -27,7 +25,7 @@
|
||||||
|
|
||||||
# compile with -O2 if debug level is not 2
|
# compile with -O2 if debug level is not 2
|
||||||
|
|
|
@ -2,10 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://github.com/OpenAtomFoundation/pika
|
||||||
TERMUX_PKG_DESCRIPTION="A persistent huge storage service, compatible with the vast majority of Redis interfaces"
|
TERMUX_PKG_DESCRIPTION="A persistent huge storage service, compatible with the vast majority of Redis interfaces"
|
||||||
TERMUX_PKG_LICENSE="BSD 3-Clause"
|
TERMUX_PKG_LICENSE="BSD 3-Clause"
|
||||||
TERMUX_PKG_MAINTAINER="@termux"
|
TERMUX_PKG_MAINTAINER="@termux"
|
||||||
TERMUX_PKG_VERSION=3.4.0
|
TERMUX_PKG_VERSION=3.4.1
|
||||||
TERMUX_PKG_REVISION=3
|
|
||||||
TERMUX_PKG_SRCURL=https://github.com/OpenAtomFoundation/pika.git
|
TERMUX_PKG_SRCURL=https://github.com/OpenAtomFoundation/pika.git
|
||||||
TERMUX_PKG_DEPENDS="google-glog, libc++, libprotobuf, librocksdb, zlib"
|
TERMUX_PKG_DEPENDS="google-glog, libc++, libprotobuf, librocksdb"
|
||||||
TERMUX_PKG_BUILD_IN_SRC=true
|
TERMUX_PKG_BUILD_IN_SRC=true
|
||||||
|
|
||||||
# ```
|
# ```
|
||||||
|
@ -24,6 +23,7 @@ termux_step_post_get_source() {
|
||||||
termux_step_pre_configure() {
|
termux_step_pre_configure() {
|
||||||
termux_setup_protobuf
|
termux_setup_protobuf
|
||||||
|
|
||||||
|
CPPFLAGS+=" -D_LIBCPP_ENABLE_CXX17_REMOVED_FEATURES"
|
||||||
export DISABLE_UPDATE_SB=1
|
export DISABLE_UPDATE_SB=1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,26 +1,29 @@
|
||||||
--- a/src/pika_admin.cc
|
--- a/src/pika_admin.cc
|
||||||
+++ b/src/pika_admin.cc
|
+++ b/src/pika_admin.cc
|
||||||
@@ -822,19 +822,19 @@
|
@@ -847,22 +847,22 @@
|
||||||
|
getrusage(RUSAGE_CHILDREN, &c_ru);
|
||||||
std::stringstream tmp_stream;
|
std::stringstream tmp_stream;
|
||||||
tmp_stream << "# CPU\r\n";
|
tmp_stream << "# CPU\r\n";
|
||||||
tmp_stream << "used_cpu_sys:" <<
|
- tmp_stream << "used_cpu_sys:" << setiosflags(std::ios::fixed)
|
||||||
- setiosflags(std::ios::fixed) << std::setprecision(2) <<
|
+ tmp_stream << "used_cpu_sys:" << std::setiosflags(std::ios::fixed)
|
||||||
+ std::setiosflags(std::ios::fixed) << std::setprecision(2) <<
|
<< std::setprecision(2)
|
||||||
(float)self_ru.ru_stime.tv_sec+(float)self_ru.ru_stime.tv_usec/1000000 <<
|
<< (float)self_ru.ru_stime.tv_sec +
|
||||||
"\r\n";
|
(float)self_ru.ru_stime.tv_usec / 1000000
|
||||||
tmp_stream << "used_cpu_user:" <<
|
<< "\r\n";
|
||||||
- setiosflags(std::ios::fixed) << std::setprecision(2) <<
|
- tmp_stream << "used_cpu_user:" << setiosflags(std::ios::fixed)
|
||||||
+ std::setiosflags(std::ios::fixed) << std::setprecision(2) <<
|
+ tmp_stream << "used_cpu_user:" << std::setiosflags(std::ios::fixed)
|
||||||
(float)self_ru.ru_utime.tv_sec+(float)self_ru.ru_utime.tv_usec/1000000 <<
|
<< std::setprecision(2)
|
||||||
"\r\n";
|
<< (float)self_ru.ru_utime.tv_sec +
|
||||||
tmp_stream << "used_cpu_sys_children:" <<
|
(float)self_ru.ru_utime.tv_usec / 1000000
|
||||||
- setiosflags(std::ios::fixed) << std::setprecision(2) <<
|
<< "\r\n";
|
||||||
+ std::setiosflags(std::ios::fixed) << std::setprecision(2) <<
|
- tmp_stream << "used_cpu_sys_children:" << setiosflags(std::ios::fixed)
|
||||||
(float)c_ru.ru_stime.tv_sec+(float)c_ru.ru_stime.tv_usec/1000000 <<
|
+ tmp_stream << "used_cpu_sys_children:" << std::setiosflags(std::ios::fixed)
|
||||||
"\r\n";
|
<< std::setprecision(2)
|
||||||
tmp_stream << "used_cpu_user_children:" <<
|
<< (float)c_ru.ru_stime.tv_sec +
|
||||||
- setiosflags(std::ios::fixed) << std::setprecision(2) <<
|
(float)c_ru.ru_stime.tv_usec / 1000000
|
||||||
+ std::setiosflags(std::ios::fixed) << std::setprecision(2) <<
|
<< "\r\n";
|
||||||
(float)c_ru.ru_utime.tv_sec+(float)c_ru.ru_utime.tv_usec/1000000 <<
|
- tmp_stream << "used_cpu_user_children:" << setiosflags(std::ios::fixed)
|
||||||
"\r\n";
|
+ tmp_stream << "used_cpu_user_children:" << std::setiosflags(std::ios::fixed)
|
||||||
info.append(tmp_stream.str());
|
<< std::setprecision(2)
|
||||||
|
<< (float)c_ru.ru_utime.tv_sec +
|
||||||
|
(float)c_ru.ru_utime.tv_usec / 1000000
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
-CXX=g++
|
-CXX=g++
|
||||||
-LDFLAGS= -lpthread -lrt
|
-LDFLAGS= -lpthread -lrt
|
||||||
-CXXFLAGS= -g -std=c++11 -fno-builtin-memcmp -msse -msse4.2 -pipe -fPIC
|
-CXXFLAGS= -g -std=c++11 -fno-builtin-memcmp -msse -msse4.2 -pipe -fPIC
|
||||||
+CXXFLAGS+= -std=c++11 -fno-builtin-memcmp -pipe -fPIC -fno-rtti $(CPPFLAGS)
|
+CXXFLAGS+= -std=c++17 -fno-builtin-memcmp -pipe -fPIC -fno-rtti $(CPPFLAGS)
|
||||||
PROFILING_FLAGS=-pg
|
PROFILING_FLAGS=-pg
|
||||||
ARFLAGS = rs
|
ARFLAGS = rs
|
||||||
OPT=
|
OPT=
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
--- a/third/blackwidow/src/db_checkpoint.cc
|
--- a/third/blackwidow/src/db_checkpoint.cc
|
||||||
+++ b/third/blackwidow/src/db_checkpoint.cc
|
+++ b/third/blackwidow/src/db_checkpoint.cc
|
||||||
@@ -18,16 +18,29 @@
|
@@ -18,16 +18,30 @@
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
|
||||||
#include "rocksdb/db.h"
|
#include "rocksdb/db.h"
|
||||||
|
@ -21,7 +21,8 @@
|
||||||
+extern Status CopyFile(FileSystem* env, const std::string& source,
|
+extern Status CopyFile(FileSystem* env, const std::string& source,
|
||||||
+ const std::string& destination, uint64_t size,
|
+ const std::string& destination, uint64_t size,
|
||||||
+ bool use_fsync,
|
+ bool use_fsync,
|
||||||
+ const std::shared_ptr<IOTracer>& io_tracer = nullptr);
|
+ const std::shared_ptr<IOTracer>& io_tracer = nullptr,
|
||||||
|
+ const Temperature temperature = Temperature::kUnknown);
|
||||||
+
|
+
|
||||||
+extern Status CreateFile(FileSystem* env, const std::string& destination,
|
+extern Status CreateFile(FileSystem* env, const std::string& destination,
|
||||||
+ const std::string& contents, bool);
|
+ const std::string& contents, bool);
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
--- a/third/blackwidow/src/options_helper.h
|
||||||
|
+++ b/third/blackwidow/src/options_helper.h
|
||||||
|
@@ -37,7 +37,6 @@
|
||||||
|
static std::unordered_map<std::string, MemberTypeInfo> mutable_db_options_member_type_info = {
|
||||||
|
{"max_background_jobs", {offsetof(struct rocksdb::DBOptions, max_background_jobs), MemberType::kInt}},
|
||||||
|
{"max_background_compactions", {offsetof(struct rocksdb::DBOptions, max_background_compactions), MemberType::kInt}},
|
||||||
|
- {"base_background_compactions", {offsetof(struct rocksdb::DBOptions, base_background_compactions), MemberType::kInt}},
|
||||||
|
{"max_open_files", {offsetof(struct rocksdb::DBOptions, max_open_files), MemberType::kInt}},
|
||||||
|
{"bytes_per_sync", {offsetof(struct rocksdb::DBOptions, bytes_per_sync), MemberType::kUint64T}},
|
||||||
|
{"delayed_write_rate", {offsetof(struct rocksdb::DBOptions, delayed_write_rate), MemberType::kUint64T}},
|
|
@ -5,7 +5,7 @@
|
||||||
-CXX=g++
|
-CXX=g++
|
||||||
-LDFLAGS= -lpthread -lrt
|
-LDFLAGS= -lpthread -lrt
|
||||||
-CXXFLAGS= -g -std=c++11 -fno-builtin-memcmp -msse -msse4.2 -pipe -fPIC
|
-CXXFLAGS= -g -std=c++11 -fno-builtin-memcmp -msse -msse4.2 -pipe -fPIC
|
||||||
+CXXFLAGS+= -std=c++11 -fno-builtin-memcmp -pipe -fPIC $(CPPFLAGS)
|
+CXXFLAGS+= -std=c++17 -fno-builtin-memcmp -pipe -fPIC $(CPPFLAGS)
|
||||||
PROFILING_FLAGS=-pg
|
PROFILING_FLAGS=-pg
|
||||||
ARFLAGS = rs
|
ARFLAGS = rs
|
||||||
OPT=
|
OPT=
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
-CXX=g++
|
-CXX=g++
|
||||||
-LDFLAGS= -lpthread -lrt
|
-LDFLAGS= -lpthread -lrt
|
||||||
-CXXFLAGS= -g -std=c++11 -fno-builtin-memcmp -msse -msse4.2 -pipe -fPIC
|
-CXXFLAGS= -g -std=c++11 -fno-builtin-memcmp -msse -msse4.2 -pipe -fPIC
|
||||||
+CXXFLAGS+= -std=c++11 -fno-builtin-memcmp -pipe -fPIC $(CPPFLAGS)
|
+CXXFLAGS+= -std=c++17 -fno-builtin-memcmp -pipe -fPIC $(CPPFLAGS)
|
||||||
PROFILING_FLAGS= -pg
|
PROFILING_FLAGS= -pg
|
||||||
ARFLAGS = rs
|
ARFLAGS = rs
|
||||||
OPT=
|
OPT=
|
||||||
|
|
Loading…
Reference in New Issue