This is an old revision of the document!


MariaDB is a drop-in replacement for MySQL forked from MySQL by some of the original developers of MySQL after Oracle acquired Sun (and thus acquired MySQL).

To use MariaDB instead of (the default) MySQL, set in /etc/make.conf

DEFAULT_VERSIONS+=mysql=102m

History

MariaDB releases are generally supported for 5 years after the first General Availabiity release

  • 2019 Expected release of MariaDB 10.4
  • 2019-03-31 Expected End-of-Life MariaDB 10.0
  • 2020-04-11 Expected End-of-Life MariaDB 5.5
  • 2020-10-17 Expected End-of-Life MariaDB 10.1
  • 2022-05-23 Expected End-of-Life MariaDB 10.2
  • 2023-05-25 Expected End-of-Life MariaDB 10.3

MariaDB 5.2 - 10.2

The MariaDB port was initially created by Geoffroy Desvernay. The MariaDB 5.5 port was created by Alexandr Kovalenko and the basis for the later 10.x versions created by Bernard Spil (brnrd). The port consists of a master- (-server) and slave-port (-client) as of version 5.3

Extensive patching of the cmake files was done to work around conflicts between the -client and -server ports.

MariaDB 10.3 -

This version removes the cmake patching and replaces it with @comment prefixes in pkg-plist. The only CMakeFiles.txt patching that's going on must have an accompanying issue in MariaDB JIRA.

The WITHOUT_SERVER flag for cmake isn't very stable, files move in and out. This results in install conflicts when the port is updated.

  1. Disable post-install targets for both -client and -server, it deletes parts of the install tree.
  2. Build the port.
  3. run make makeplist and store the output.
  4. compare makeplist output for -client and -server and add @comment in pkg-plist where changes are required (bear in mind the post-install target).
    ls -l $(sed -n 's|^@comment |work/stage/usr/local/|p' pkg-plist) >/dev/null
  5. Update and enable post-install target.

I've found the Debian packages to be helpful in deciding what's client and what's server.

for file in `sed -n 's|^@comment ||p' pkg-plist` ; do grep "^@comment $file" ../mariadb103-client/pkg-plist ; done

or

# files marked @comment show up with a number higher than 1
grep '^@comment ' mariadb103-*/pkg-plist | cut -d: -f2 | sort | uniq -c
file/dir reason
mariadb-service-convert generates mariadb.service for systemd
share/mysql/policy SELinux and AppArmor files

WITHOUT_SERVER installs server-only files Tries to address inconsistencies in the cmake files. This is a patch in the ports tree for 10.3.

Fix stacktraces under FreeBSD Fixing aarch64 builds


  • mariadb.1540808208.txt.gz
  • Last modified: 2018/10/29 10:16
  • by MateuszPiotrowski