2023-04-09 16:05:45 +03:00
|
|
|
distributable:
|
2023-07-18 22:44:12 +03:00
|
|
|
url: https://cdn.mysql.com/Downloads/MySQL-{{version.marketing}}/mysql-boost-{{version}}.tar.gz
|
2023-04-09 16:05:45 +03:00
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: mysql/mysql-server/tags
|
|
|
|
strip: /^mysql-/
|
|
|
|
|
|
|
|
dependencies:
|
2023-06-16 21:09:48 +03:00
|
|
|
unicode.org: ^71
|
2023-04-09 16:05:45 +03:00
|
|
|
libevent.org: ^2
|
|
|
|
lz4.org: ^1
|
|
|
|
openssl.org: ^1.1
|
|
|
|
protobuf.dev: ^21
|
|
|
|
zlib.net: ^1.2
|
|
|
|
facebook.com/zstd: ^1
|
|
|
|
curl.se: '>=6.0'
|
|
|
|
thrysoee.dk/editline: ^3
|
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
tea.xyz/gx/cc: c99
|
|
|
|
tea.xyz/gx/make: '*'
|
|
|
|
cmake.org: ^3
|
|
|
|
freedesktop.org/pkg-config: ^0.29
|
2023-07-18 22:46:59 +03:00
|
|
|
gnu.org/bison: ">=3.0.4"
|
2023-04-09 16:05:45 +03:00
|
|
|
working-directory: build
|
|
|
|
script: |
|
2023-04-18 06:41:50 +03:00
|
|
|
# https://www.mail-archive.com/ports@freebsd.org/msg00418.html
|
|
|
|
# And they *force* it on
|
|
|
|
sed -i.bak -e 's/\(STRING_APPEND.*moutline-atomics.*\)/# \1/' ../CMakeLists.txt
|
|
|
|
rm ../CMakeLists.txt.bak
|
|
|
|
|
2023-04-09 16:05:45 +03:00
|
|
|
cmake .. $ARGS
|
|
|
|
make --jobs {{ hw.concurrency }} install
|
|
|
|
|
|
|
|
env:
|
|
|
|
ARGS:
|
|
|
|
- -DCMAKE_INSTALL_PREFIX={{prefix}}
|
|
|
|
- -DCMAKE_BUILD_TYPE=Release
|
|
|
|
- -DFORCE_INSOURCE_BUILD=1
|
|
|
|
- -DCOMPILATION_COMMENT=tea.xyz
|
|
|
|
- -DINSTALL_DOCDIR=share/doc
|
|
|
|
- -DINSTALL_INCLUDEDIR=include
|
|
|
|
- -DINSTALL_INFODIR=share/info
|
|
|
|
- -DINSTALL_MANDIR=share/man
|
|
|
|
- -DINSTALL_MYSQLSHAREDIR=share
|
|
|
|
- -DINSTALL_PLUGINDIR=lib/plugin
|
|
|
|
- -DSYSCONFDIR=/etc
|
|
|
|
- -DWITH_SYSTEM_LIBS=ON
|
|
|
|
- -DWITH_EDITLINE=system
|
|
|
|
- -DWITH_ICU=system
|
|
|
|
- -DWITH_LIBEVENT=system
|
|
|
|
- -DWITH_LZ4=system
|
|
|
|
- -DWITH_PROTOBUF=system
|
|
|
|
- -DWITH_SSL=system
|
2023-04-19 21:29:23 +03:00
|
|
|
# FIXME: starting with 8.0.33, mysql reports:
|
2023-06-16 21:09:48 +03:00
|
|
|
# -- Found ZLIB: /Users/jacob/.tea/zlib.net/v1.2.13/lib/libz.dylib (found version "1.2.13")
|
2023-04-19 21:29:23 +03:00
|
|
|
# CMake Error at cmake/zlib.cmake:118 (MESSAGE):
|
|
|
|
# Cannot find system zlib libraries.
|
|
|
|
# Call Stack (most recent call first):
|
|
|
|
# CMakeLists.txt:1742 (MYSQL_CHECK_ZLIB)
|
|
|
|
# - -DWITH_ZLIB=system
|
|
|
|
- -DWITH_ZLIB=bundled
|
2023-04-09 16:05:45 +03:00
|
|
|
- -DWITH_ZSTD=system
|
|
|
|
- -DWITH_UNIT_TESTS=OFF
|
|
|
|
- -DENABLED_LOCAL_INFILE=1
|
|
|
|
- -DWITH_INNODB_MEMCACHED=ON
|
|
|
|
|
|
|
|
#FIXME pkg this and change to =system
|
|
|
|
- -DWITH_FIDO=bundled
|
|
|
|
|
|
|
|
#FIXME mysql requires boost=1.77
|
|
|
|
# which seems perfect for us right! Since we version independently
|
|
|
|
# however boost has only just started using github so its tags only
|
|
|
|
# go back to 1.82 lol. So we need to extend the version mechanism
|
|
|
|
# so that it can do both github and an array
|
|
|
|
- -DDOWNLOAD_BOOST=1
|
|
|
|
- -DWITH_BOOST=boost
|
2023-07-18 22:46:59 +03:00
|
|
|
|
|
|
|
# Now requires bison>=3.0.4
|
|
|
|
- -DBISON_EXECUTABLE={{deps.gnu.org/bison.prefix}}/bin/bison
|
2023-04-09 16:05:45 +03:00
|
|
|
linux/aarch64:
|
|
|
|
ARGS:
|
|
|
|
- -DCMAKE_CXX_FLAGS="-mno-outline-atomics"
|
2023-04-18 06:41:50 +03:00
|
|
|
- -DCMAKE_C_FLAGS="-mno-outline-atomics"
|
2023-04-09 16:05:45 +03:00
|
|
|
#^^ https://www.mail-archive.com/ports@freebsd.org/msg00418.html
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/mysql_client_test
|
|
|
|
- bin/my_print_defaults
|
|
|
|
- bin/myisam_ftdump
|
|
|
|
- bin/myisamchk
|
|
|
|
- bin/myisamlog
|
|
|
|
- bin/myisampack
|
|
|
|
- bin/mysql
|
|
|
|
- bin/mysql_config
|
|
|
|
- bin/mysql_config_editor
|
|
|
|
- bin/mysql_keyring_encryption_test
|
|
|
|
- bin/mysql_migrate_keyring
|
|
|
|
- bin/mysql_secure_installation
|
|
|
|
- bin/mysql_ssl_rsa_setup
|
|
|
|
- bin/mysql_tzinfo_to_sql
|
|
|
|
- bin/mysql_upgrade
|
|
|
|
- bin/mysqladmin
|
|
|
|
- bin/mysqlbinlog
|
|
|
|
- bin/mysqlcheck
|
|
|
|
- bin/mysqld
|
|
|
|
- bin/mysqld_multi
|
|
|
|
- bin/mysqld_safe
|
|
|
|
- bin/mysqldump
|
|
|
|
- bin/mysqldumpslow
|
|
|
|
- bin/mysqlimport
|
|
|
|
- bin/mysqlpump
|
|
|
|
- bin/mysqlrouter
|
|
|
|
- bin/mysqlrouter_keyring
|
|
|
|
- bin/mysqlrouter_passwd
|
|
|
|
- bin/mysqlrouter_plugin_info
|
|
|
|
- bin/mysqlshow
|
|
|
|
- bin/mysqlslap
|
|
|
|
- bin/mysqltest
|
|
|
|
- bin/mysqltest_safe_process
|
|
|
|
- bin/mysqlxtest
|
|
|
|
|
|
|
|
test:
|
|
|
|
dependencies:
|
|
|
|
gnu.org/coreutils: ^9
|
|
|
|
script: |
|
|
|
|
mkdir -p mysql
|
|
|
|
mkdir -p tmp
|
|
|
|
mysqld --no-defaults --initialize-insecure --user=$USER --datadir=$PWD/mysql --tmpdir=$PWD/tmp
|
|
|
|
PORT=$(shuf -i 2000-65000 -n 1)
|
|
|
|
mysqld --no-defaults --user=$USER --datadir=$PWD/mysql --port=$PORT --tmpdir=$PWD/tmp &
|
|
|
|
sleep 5
|
|
|
|
mysql --port=$PORT --user=root --password= --execute='show databases;'
|
|
|
|
mysqladmin --port=$PORT --user=root --password= shutdown
|