fix(mariadb)

closes #4157
closes #4158
This commit is contained in:
Jacob Heider 2023-11-21 12:50:48 -05:00 committed by Jacob Heider
parent 974021d239
commit faa75d4a68

View file

@ -10,17 +10,17 @@ versions:
platforms: platforms:
- darwin - darwin
- linux/x86-64 # should work on aarch64, but it's complaining about one of its atomic macros - linux/x86-64
dependencies: dependencies:
sourceware.org/bzip2: '*' sourceware.org/bzip2: ^1
github.com/besser82/libxcrypt: '*' github.com/besser82/libxcrypt: ^4
gnome.org/libxml2: '*' gnome.org/libxml2: ~2.11
invisible-island.net/ncurses: '*' invisible-island.net/ncurses: ^6
zlib.net: ^1 zlib.net: ^1
openssl.org: ^1.1 openssl.org: ^1.1
pcre.org/v2: '*' pcre.org/v2: ^10
facebook.com/zstd: '*' facebook.com/zstd: ^1
build: build:
dependencies: dependencies:
@ -30,28 +30,29 @@ build:
gnu.org/coreutils: '*' gnu.org/coreutils: '*'
git-scm.org: '*' git-scm.org: '*'
groonga.org: '*' groonga.org: '*'
linux:
fmt.dev: ^9
script: script:
- git submodule update --init --recursive - git submodule update --init --recursive
# Use our groonga # Use our groonga
- rm -rf storage/mroonga/vendor/groonga - rm -rf storage/mroonga/vendor/groonga
# -DINSTALL_* are relative to prefix # -DINSTALL_* are relative to prefix
- cmake -S . -B build - cmake -S . -B build
-DCMAKE_INSTALL_PREFIX={{ prefix }} -DCMAKE_INSTALL_PREFIX={{ prefix }}
-DMYSQL_DATADIR={{ prefix }}/var/mysql -DMYSQL_DATADIR={{ prefix }}/var/mysql
-DINSTALL_SYSCONFDIR=etc -DINSTALL_SYSCONFDIR=etc
-DINSTALL_INCLUDEDIR=include/mysql -DINSTALL_INCLUDEDIR=include/mysql
-DINSTALL_MANDIR=share/man -DINSTALL_MANDIR=share/man
-DINSTALL_DOCDIR=share/doc/mariadb -DINSTALL_DOCDIR=share/doc/mariadb
-DINSTALL_INFODIR=share/info -DINSTALL_INFODIR=share/info
-DINSTALL_MYSQLSHAREDIR=share/mysql -DINSTALL_MYSQLSHAREDIR=share/mysql
-DWITH_LIBFMT=bundled -DWITH_LIBFMT=bundled
-DWITH_SSL=system -DWITH_SSL=system
-DWITH_UNIT_TESTS=OFF -DWITH_UNIT_TESTS=OFF
-DDEFAULT_CHARSET=utf8mb4 -DDEFAULT_CHARSET=utf8mb4
-DDEFAULT_COLLATION=utf8mb4_general_ci -DDEFAULT_COLLATION=utf8mb4_general_ci
-DCOMPILATION_COMMENT=made_by_tea -DCOMPILATION_COMMENT=made_by_tea
-DPLUGIN_ROCKSDB=NO -DPLUGIN_ROCKSDB=NO
- cmake --build build - cmake --build build
- cmake --install build - cmake --install build
@ -87,8 +88,10 @@ build:
rm wsrep_sst_*.bak rm wsrep_sst_*.bak
working-directory: ${{ prefix }}/bin working-directory: ${{ prefix }}/bin
env: env:
linux/aarch64: linux:
CFLAGS: $CFLAGS -Wno-implicit-function-declaration CC: clang
CXX: clang++
LD: clang
provides: provides:
- bin/aria_chk - bin/aria_chk
@ -186,11 +189,11 @@ test:
USER_ARG="--user=root" USER_ARG="--user=root"
fi fi
- mysql_install_db --no-defaults - mysql_install_db --no-defaults
$USER_ARG $USER_ARG
--basedir={{ prefix }} --basedir={{ prefix }}
--datadir=$(pwd)/mysql --datadir=$(pwd)/mysql
--tmpdir=$(pwd)/tmp --tmpdir=$(pwd)/tmp
--auth-root-authentication-method=normal --auth-root-authentication-method=normal
- mysqld --no-defaults $USER_ARG --datadir=$(pwd)/mysql --port=3306 --tmpdir=$(pwd)/tmp & - mysqld --no-defaults $USER_ARG --datadir=$(pwd)/mysql --port=3306 --tmpdir=$(pwd)/tmp &
- sleep 5 - sleep 5
- mysql --port=3306 --user=root --password= --execute='show databases;' - mysql --port=3306 --user=root --password= --execute='show databases;'