Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
a4dc2dcd
Commit
a4dc2dcd
authored
Apr 18, 2013
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add README-TOKUDB
parent
49183a45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
scripts/make.mysql.bash
scripts/make.mysql.bash
+21
-2
No files found.
scripts/make.mysql.bash
View file @
a4dc2dcd
...
@@ -108,6 +108,17 @@ function build_fractal_tree() {
...
@@ -108,6 +108,17 @@ function build_fractal_tree() {
github_download Tokutek/ft-index
$git_tag
ft-index
github_download Tokutek/ft-index
$git_tag
ft-index
if
[
$?
!=
0
]
;
then
exit
1
;
fi
if
[
$?
!=
0
]
;
then
exit
1
;
fi
# get the commit id of the ft-index repo
local
ft_revision
=
0
if
[
!
-z
$github_token
]
;
then
local
ft_index_ls
ft_index_ls
=
$(
git ls-remote https://
$github_token
:x-oauth-basic@github.com/Tokutek/ft-index.git
$git_tag
)
if
[
$?
!=
0
]
;
then
exit
1
;
fi
local
ft_revision_hex
ft_revision_hex
=
0x
$(
echo
$ft_index_ls
|
cut
-c-7
)
let
ft_revision
=
$ft_revision_hex
fi
pushd
ft-index
pushd
ft-index
if
[
$?
!=
0
]
;
then
exit
1
;
fi
if
[
$?
!=
0
]
;
then
exit
1
;
fi
...
@@ -133,9 +144,8 @@ function build_fractal_tree() {
...
@@ -133,9 +144,8 @@ function build_fractal_tree() {
CC
=
$cc
CXX
=
$cxx
cmake
\
CC
=
$cc
CXX
=
$cxx
cmake
\
-D
LIBTOKUDB
=
$tokufractaltree
\
-D
LIBTOKUDB
=
$tokufractaltree
\
-D
LIBTOKUPORTABILITY
=
$tokuportability
\
-D
LIBTOKUPORTABILITY
=
$tokuportability
\
-D
CMAKE_TOKUDB_REVISION
=
0
\
-D
CMAKE_TOKUDB_REVISION
=
$ft_revision
\
-D
CMAKE_BUILD_TYPE
=
$ft_build_type
\
-D
CMAKE_BUILD_TYPE
=
$ft_build_type
\
-D
TOKU_SVNROOT
=
$basedir
\
-D
JEMALLOC_SOURCE_DIR
=
../../jemalloc
\
-D
JEMALLOC_SOURCE_DIR
=
../../jemalloc
\
-D
CMAKE_INSTALL_PREFIX
=
../../
$tokufractaltreedir
\
-D
CMAKE_INSTALL_PREFIX
=
../../
$tokufractaltreedir
\
-D
BUILD_TESTING
=
OFF
\
-D
BUILD_TESTING
=
OFF
\
...
@@ -352,6 +362,9 @@ function generate_build_from_src() {
...
@@ -352,6 +362,9 @@ function generate_build_from_src() {
echo
'sed -i -e"s/^%define mysql_version.*/&-${tokudb_distro_version}/" SPECS/$specfile'
echo
'sed -i -e"s/^%define mysql_version.*/&-${tokudb_distro_version}/" SPECS/$specfile'
echo
'sed -i -e"s/^%define release.*/%define release $(echo ${tokudb_distro_version}|tr - .)/" SPECS/$specfile'
echo
'sed -i -e"s/^%define release.*/%define release $(echo ${tokudb_distro_version}|tr - .)/" SPECS/$specfile'
# echo 'sed -i -e"s/^\(.*-DMYSQL_SERVER_SUFFIX=.*\)$/& -DEXTRA_VERSION=-${tokudb_distro_version}/" SPECS/$specfile'
# echo 'sed -i -e"s/^\(.*-DMYSQL_SERVER_SUFFIX=.*\)$/& -DEXTRA_VERSION=-${tokudb_distro_version}/" SPECS/$specfile'
# include README-TOKUDB in the RPM
echo
'sed -i -e"s/README/& %{src_dir}\/README-TOKUDB/" SPECS/$specfile'
# add jemalloc to the linker flags
# add jemalloc to the linker flags
echo
'sed -i -e"s/^\(.*-DMYSQL_SERVER_SUFFIX=.*\)$/& -DCMAKE_EXE_LINKER_FLAGS=\"-Wl,--whole-archive \$\{TOKUFRACTALTREE\}\/lib\/libjemalloc.a -Wl,-no-whole-archive\"/" SPECS/$specfile'
echo
'sed -i -e"s/^\(.*-DMYSQL_SERVER_SUFFIX=.*\)$/& -DCMAKE_EXE_LINKER_FLAGS=\"-Wl,--whole-archive \$\{TOKUFRACTALTREE\}\/lib\/libjemalloc.a -Wl,-no-whole-archive\"/" SPECS/$specfile'
...
@@ -448,6 +461,12 @@ function build_mysql_src() {
...
@@ -448,6 +461,12 @@ function build_mysql_src() {
# generate the tokudb.build.bash script from the mysql src and the fractal tree tarballs
# generate the tokudb.build.bash script from the mysql src and the fractal tree tarballs
generate_build_from_src
$mysqlsrc
$tokufractaltreedir
>
$mysqlsrc
/scripts/tokudb.build.bash
generate_build_from_src
$mysqlsrc
$tokufractaltreedir
>
$mysqlsrc
/scripts/tokudb.build.bash
# add README-TOKUDB
if
[
!
-f
$mysqlsrc
/README-TOKUDB
]
;
then
cp
ft-engine/README-TOKUDB
$mysqlsrc
fi
sed
-i
-e
's/FILES README DESTINATION/FILES README README-TOKUDB DESTINATION/'
$mysqlsrc
/CMakeLists.txt
# make the mysql src tarball
# make the mysql src tarball
tar
czf
$mysqlsrc
.tar.gz
$mysqlsrc
tar
czf
$mysqlsrc
.tar.gz
$mysqlsrc
if
[
$?
!=
0
]
;
then
exit
1
;
fi
if
[
$?
!=
0
]
;
then
exit
1
;
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment