Package Details: mysql-shell 8.0.25-1

Git Clone URL: (read-only, click to copy)
Package Base: mysql-shell
Description: An interface supporting development and administration for the MySQL Server
Upstream URL:
Keywords: mysqlsh
Licenses: GPL
Submitter: rdoursenaud
Maintainer: FrederickZh
Last Packager: FrederickZh
Votes: 1
Popularity: 0.000000
First Submitted: 2018-06-15 10:18
Last Updated: 2021-05-11 08:56

Latest Comments

FrederickZh commented on 2019-08-16 10:23

I managed to get it built with this PKGBUILD:

# Maintainer: Frederick Zhang <>
pkgdesc='An interface supporting development and administration for the MySQL Server'
arch=('x86_64' 'i686')
depends=('python2' 'openssl' 'protobuf')
makedepends=('v8-6.7-static' 'cmake' 'clang' 'zip' 'zlib' 'libsasl' 'rpcsvc-proto' 'python2' 'python2-colorama' 'python2-pylint' 'python2-lazy-object-proxy' 'python2-singledispatch' 'python2-wrapt' 'ninja' 'git' 'wget')

build() {
    msg2 "Configuring MySQL"
    cd "$srcdir/mysql-$pkgver"
    mkdir -p bld && cd $_
    cmake .. -DWITH_BOOST="../boost" -DWITH_SSL=system -DWITH_PROTOBUF=system
    cd "$srcdir/mysql-$pkgver/bld"
    msg2 "Building mysqlclient"
    cmake --build . --target mysqlclient
    msg2 "Building mysqlxclient"
    cmake --build . --target mysqlxclient

    msg2 "Configuring MySQL Shell"
    cd "$srcdir/$pkgname-$pkgver-src"
    mkdir -p bld && cd $_
    cmake .. \
        -DWITH_TESTS=1 \
        -DWITH_GMOCK="${srcdir}/googletest-release-$" \
        -DCMAKE_C_COMPILER=/usr/bin/clang \
        -DCMAKE_CXX_COMPILER=/usr/bin/clang++ \
        -DMYSQL_SOURCE_DIR="$srcdir/mysql-$pkgver" \
        -DMYSQL_BUILD_DIR="$srcdir/mysql-$pkgver/bld" \
        -DHAVE_PYTHON=1 \
        -DHAVE_V8=1 \
        -DV8_INCLUDE_DIR="/usr/include" \
        -DV8_LIB_DIR="/usr/lib" \
    msg2 "Building MySQL Shell"

package() {
    cd "$srcdir/$pkgname-$pkgver-src/bld"
    make DESTDIR="$pkgdir/" install
    cd "$srcdir/$pkgname-$pkgver-src"
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

In terms of dependencies, I've pushed V8 to however separating libmysqlclient and libmysqlxclient from the build process is still a quite tricky. Ideally we can make some effort to ship libmysqlxclient with and fix the missing header issues in the package atm, but since libmysql(x)client and mysqlsh have to share the same versions of libraries e.g. protobuf, we'd like to link both of them dynamically to system libraries so that intermediate static ones from MySQL won't be required for the Shell, but again finger crossed that can always work... So perhaps it's just better to build static libmysql(x)client in this package...

FrederickZh commented on 2019-08-05 06:56

Is it better to rename this package to mysql-shell-bin? Personally I would expect it to be built from source based on the naming.