Skip to content

Commit 73ce99e

Browse files
committed
chore(mariadb): update build mariadb
1 parent 9100ed6 commit 73ce99e

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

stacks/mariadb/build.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@ function build() {
99
cmake \
1010

1111
# Generate binary
12-
curl -sSL "https://downloads.mariadb.org/interstitial/mariadb-${STACK_VERSION}/source/mariadb-${STACK_VERSION}.tar.gz" | tar -xz && \
12+
curl -sSL "https://archive.mariadb.org/mariadb-${STACK_VERSION}/source/mariadb-${STACK_VERSION}.tar.gz" | tar -xz && \
1313
cd mariadb-"${STACK_VERSION}" && \
14-
pcre_version=$(< cmake/pcre.cmake grep 'ftp.pcre.org' |awk -F 'pcre2-' '{print $2}' | awk -F '.zip' '{print $1}')
15-
sed -i -e "s|http://ftp.pcre.org/pub/pcre|https://github.com/PhilipHazel/pcre2/releases/download/pcre2-${pcre_version}|g" cmake/pcre.cmake
1614
cmake . -DCMAKE_INSTALL_PREFIX=/opt/drycc/mariadb \
1715
-DMYSQL_DATADIR=/opt/drycc/mariadb/data \
1816
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
@@ -26,7 +24,7 @@ function build() {
2624
-DDEFAULT_CHARSET=utf8 \
2725
-DDEFAULT_COLLATION=utf8_general_ci \
2826
&& \
29-
make install
27+
make install/strip
3028

3129
mkdir -p "${PROFILE_DIR}"
3230
cat << EOF > "${PROFILE_DIR}/${STACK_NAME}.sh"
@@ -37,4 +35,5 @@ EOF
3735
}
3836

3937
# call build stack
40-
build-stack "${1}"
38+
build-stack "${1}"
39+

0 commit comments

Comments
 (0)