File tree Expand file tree Collapse file tree 5 files changed +695
-2
lines changed Expand file tree Collapse file tree 5 files changed +695
-2
lines changed Original file line number Diff line number Diff line change 74
74
75
75
# Convert gcc version to numberical value. Format is Mmmpp where M is Major
76
76
# version, mm is minor version and p is patch.
77
- GCCVERSION=$( gcc -dumpversion | sed -e ' s/\.\([0-9][0-9]\)/\1/g' -e ' s/\.\([0-9]\)/0\1/g' -e ' s/^[0-9]\{3,4\}$/&00/' )
77
+ # -dumpfullversion & -dumpversion to make it uniform across old and new (>=7)
78
+ GCCVERSION=$( gcc -dumpfullversion -dumpversion | sed -e ' s/\.\([0-9][0-9]\)/\1/g' \
79
+ -e ' s/\.\([0-9]\)/0\1/g' \
80
+ -e ' s/^[0-9]\{3,4\}$/&00/' )
78
81
# Don't build rocksdb package if gcc version is less than 4.8 or we are running on
79
82
# x86 32 bit.
80
83
if [[ $GCCVERSION -lt 40800 ]] || [[ $( arch) =~ i[346]86 ]]
81
84
then
82
- sed ' /Package: mariadb-plugin-rocksdb/,+9d ' -i debian/control
85
+ sed ' /Package: mariadb-plugin-rocksdb/,+10d ' -i debian/control
83
86
fi
84
87
if [[ $GCCVERSION -lt 40800 ]]
85
88
then
Original file line number Diff line number Diff line change @@ -455,6 +455,7 @@ Architecture: any
455
455
Depends: mariadb-server-10.2 (= ${binary:Version}),
456
456
${misc:Depends},
457
457
${shlibs:Depends}
458
+ Recommends: python-mysqldb
458
459
Description: RocksDB storage engine for MariaDB
459
460
The RocksDB storage engine is a high performance storage engine, aimed
460
461
at maximising storage efficiency while maintaining InnoDB-like performance.
Original file line number Diff line number Diff line change 1
1
etc/mysql/conf.d/rocksdb.cnf etc/mysql/mariadb.conf.d
2
2
usr/lib/mysql/plugin/ha_rocksdb.so
3
3
usr/bin/mysql_ldb
4
+ usr/bin/myrocks_hotbackup
4
5
usr/bin/sst_dump
Original file line number Diff line number Diff line change @@ -208,6 +208,8 @@ TARGET_LINK_LIBRARIES(sst_dump rocksdblib)
208
208
MYSQL_ADD_EXECUTABLE (mysql_ldb tools/mysql_ldb.cc COMPONENT rocksdb-engine )
209
209
TARGET_LINK_LIBRARIES (mysql_ldb rocksdb_tools rocksdb_aux_lib )
210
210
211
+ INSTALL_SCRIPT (myrocks_hotbackup COMPONENT rocksdb-engine )
212
+
211
213
IF (CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
212
214
SET_TARGET_PROPERTIES (rocksdb_tools sst_dump mysql_ldb PROPERTIES COMPILE_FLAGS -frtti )
213
215
ENDIF ()
You can’t perform that action at this time.
0 commit comments