Gentoo Development Guide

MYSQL-MULTILIB-R1.ECLASS

Section: portage (5)
Updated: Jan 2019
Index Return to Main Contents
 

NAME

mysql-multilib-r1.eclass - This eclass provides common functions for mysql ebuilds  

DESCRIPTION

The mysql-multilib-r1.eclass is the base eclass to build the mysql and alternative projects (mariadb and percona) ebuilds. Provider and version specific settings will be included in each ebuild. It provides the src_unpack, src_prepare, src_configure, src_compile, src_install, pkg_preinst, pkg_postinst, pkg_config and pkg_postrm phase hooks.  

FUNCTIONS

mysql-multilib-r1_pkg_pretend
Perform some basic tests and tasks during pkg_pretend phase:
mysql-multilib-r1_pkg_setup
Perform some basic tests and tasks during pkg_setup phase:
  die if FEATURES="test", USE="server" and not using FEATURES="userpriv"
  create new user and group for mysql
  warn about deprecated features
mysql-multilib-r1_src_unpack
Unpack the source code
mysql-multilib-r1_src_prepare
Apply patches to the source code and remove unneeded bundled libs.
mysql-multilib-r1_src_configure
Configure mysql to build the code for Gentoo respecting the use flags.
mysql-multilib-r1_src_install
Install mysql.
mysql-multilib-r1_pkg_preinst
Warn about ABI changes when switching providers
mysql-multilib-r1_pkg_postinst
Run post-installation tasks:
  create the dir for logfiles if non-existant
  touch the logfiles and secure them
  install scripts
  issue required steps for optional features
  issue deprecation warnings
mysql-multilib-r1_getopt
Use my_print_defaults to extract specific config options
mysql-multilib-r1_getoptval
Use my_print_defaults to extract specific config options
mysql-multilib-r1_pkg_config
Configure mysql environment.
mysql-multilib-r1_disable_test
Helper function to disable specific tests.
mysql-cmake_use_plugin
Helper function to enable/disable plugins by use flags cmake-utils_use_with is not enough as some references check WITH_ (0|1) and some check WITHOUT_. Also, this can easily extend to non-storage plugins.
mysql_init_vars
void mysql_init_vars() Initialize global variables 2005-11-19 <vivo@gentoo.org>
 

ECLASS VARIABLES

MYSQL_EXTRAS_VER
The version of the MYSQL_EXTRAS repo to use to build mysql Use "none" to disable it's use
MYSQL_CMAKE_NATIVE_DEFINES
An array of extra CMake arguments for native multilib builds
MYSQL_CMAKE_NONNATIVE_DEFINES
An array of extra CMake arguments for non-native multilib builds
MYSQL_CMAKE_EXTRA_DEFINES
An array of CMake arguments added to native and non-native
MYSQL_PV_MAJOR = "$(get_version_component_range 1-2 ${PV})" ; fi
Upstream MySQL considers the first two parts of the version number to be the major version. Upgrades that change major version should always run mysql_upgrade.
MYSQL_VERSION_ID
MYSQL_VERSION_ID will be: major * 10e6 + minor * 10e4 + micro * 10e2 + gentoo revision number, all [0..99] This is an important part, because many of the choices the MySQL ebuild will do depend on this variable. In particular, the code below transforms a $PVR like "5.0.18-r3" in "5001803" We also strip off upstream's trailing letter that they use to respin tarballs
 

MAINTAINERS

Maintainers:
- MySQL Team <mysql-bugs@gentoo.org>
- Robin H. Johnson <robbat2@gentoo.org>
- Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org>
- Brian Evans <grknight@gentoo.org>
 

REPORTING BUGS

Please report bugs via https://bugs.gentoo.org/  

FILES

mysql-multilib-r1.eclass  

SEE ALSO

ebuild(5)
https://gitweb.gentoo.org/repo/gentoo.git/log/eclass/mysql-multilib-r1.eclass


 

Index

NAME
DESCRIPTION
FUNCTIONS
ECLASS VARIABLES
MAINTAINERS
REPORTING BUGS
FILES
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 03:25:06 GMT, January 19, 2019