Skip to content

Commit 7beaa5e

Browse files
committed
Merge branch 'bb-10.2-mariarocks' into 10.2
2 parents 7c1bd8f + cca9b3a commit 7beaa5e

File tree

5 files changed

+695
-2
lines changed

5 files changed

+695
-2
lines changed

debian/autobake-deb.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,15 @@ fi
7474

7575
# Convert gcc version to numberical value. Format is Mmmpp where M is Major
7676
# 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/')
7881
# Don't build rocksdb package if gcc version is less than 4.8 or we are running on
7982
# x86 32 bit.
8083
if [[ $GCCVERSION -lt 40800 ]] || [[ $(arch) =~ i[346]86 ]]
8184
then
82-
sed '/Package: mariadb-plugin-rocksdb/,+9d' -i debian/control
85+
sed '/Package: mariadb-plugin-rocksdb/,+10d' -i debian/control
8386
fi
8487
if [[ $GCCVERSION -lt 40800 ]]
8588
then

debian/control

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ Architecture: any
455455
Depends: mariadb-server-10.2 (= ${binary:Version}),
456456
${misc:Depends},
457457
${shlibs:Depends}
458+
Recommends: python-mysqldb
458459
Description: RocksDB storage engine for MariaDB
459460
The RocksDB storage engine is a high performance storage engine, aimed
460461
at maximising storage efficiency while maintaining InnoDB-like performance.

debian/mariadb-plugin-rocksdb.install

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
etc/mysql/conf.d/rocksdb.cnf etc/mysql/mariadb.conf.d
22
usr/lib/mysql/plugin/ha_rocksdb.so
33
usr/bin/mysql_ldb
4+
usr/bin/myrocks_hotbackup
45
usr/bin/sst_dump

storage/rocksdb/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ TARGET_LINK_LIBRARIES(sst_dump rocksdblib)
208208
MYSQL_ADD_EXECUTABLE(mysql_ldb tools/mysql_ldb.cc COMPONENT rocksdb-engine)
209209
TARGET_LINK_LIBRARIES(mysql_ldb rocksdb_tools rocksdb_aux_lib)
210210

211+
INSTALL_SCRIPT(myrocks_hotbackup COMPONENT rocksdb-engine)
212+
211213
IF(CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
212214
SET_TARGET_PROPERTIES(rocksdb_tools sst_dump mysql_ldb PROPERTIES COMPILE_FLAGS -frtti)
213215
ENDIF()

0 commit comments

Comments
 (0)