pls ignore this mail
On Thu, Apr 29, 2021 at 09:31:00PM +0800, Luan Shengde wrote:
Signed-off-by: Luan Shengde shdluan@163.com
pkg/mysql-8-0-20/PKGBUILD | 42 +++++++++++++++++++++++++++++++++++---- 1 file changed, 38 insertions(+), 4 deletions(-)
diff --git a/pkg/mysql-8-0-20/PKGBUILD b/pkg/mysql-8-0-20/PKGBUILD index 66df6b33f..cf7a96d6b 100644 --- a/pkg/mysql-8-0-20/PKGBUILD +++ b/pkg/mysql-8-0-20/PKGBUILD @@ -7,13 +7,14 @@ url="http://www.mysql.com" license=('GPLv2') source=("git://$GIT_SERVER/upstream/m/my-sql_with_boostkit_patch/my-sql_with_boostkit_patch.git" "git://$GIT_SERVER/upstream/g/gcc/gcc.git"
"https://mirrors.huaweicloud.com/kunpeng/archive/kunpeng_solution/database/patch/benchmarksql5.0-for-mysql.zip" "my.cnf")
-md5sums=('SKIP' 'SKIP' '99c4965aa870c475000993f52a0dee66') +md5sums=('SKIP' 'SKIP' 'f33c03fd48ff5993dca6d00b53a46da4' '99c4965aa870c475000993f52a0dee66')
build() {
build_gcc build_mysql
build_benchmarksql
}
build_gcc() @@ -58,6 +59,11 @@ build_mysql() unset CPPFLAGS unset CFLAGS unset CXXFLAGS
cd $srcdir/my-sql_with_boostkit_patch && {
grep 3f3d2692fd05a18011d93dcadeef661f386595ac compass-ci.cfg || build_gcc
}
cd $srcdir/my-sql_with_boostkit_patch/$pkgname-$pkgver CMAKE=cmake
@@ -70,11 +76,39 @@ build_mysql() } }
+build_benchmarksql() +{
cd $srcdir && {
cp -r benchmarksql5.0-for-mysql "$HOME/"
chmod -R 777 "$HOME/benchmarksql5.0-for-mysql"
}
cd "$HOME/benchmarksql5.0-for-mysql/run" && {
chmod 777 *.sh
sed -i \
-e '/^conn=/ s|mysql://.*:3306|mysql://localhost:3306|' \
-e '/^user=/cuser=root' \
-e '/^password=/cpassword=mysql_password' \
-e '/^warehouses=/cwarehouses=10' \
-e '/^loadWorkers=/cloadWorkers=10' \
-e '/^terminals=/cterminals=10' \
-e '/^runTxnsPerTerminal=/crunTxnsPerTerminal=0' \
-e '/^runMins=/crunMins=30' \
-e '/^limitTxnsPerMin=/climitTxnsPerMin=1000' \
-e '/^terminalWarehouseFixed=/cterminalWarehouseFixed=true' \
-e '/^newOrderWeight=/cnewOrderWeight=45' \
-e '/^paymentWeight=/cpaymentWeight=43' \
-e '/^orderStatusWeight=/corderStatusWeight=4' \
-e '/^deliveryWeight=/cdeliveryWeight=4' \
props.conf
}
+}
package() { cp my.cnf /etc/
cd $srcdir/my-sql_with_boostkit_patch/$pkgname-$pkgver/build && {
make install
- }
make install
}
}
2.23.0