summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* mysql-multilib-r1.eclass: Fix password reading from my.cnfThomas Deutschmann2016-09-261-2/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We are reading multiple sections from my.cnf at once from my.cnf when looking for the password for the mysql root user in mysql-multilib-r1_pkg_config(). If each section has set a password option this will result in the following invalid password value (with "set -x"): ++ local extra_options= ++ //usr/bin/my_print_defaults client mysql ++ sed -n '/^--password=/s,--password=,,gp' + MYSQL_ROOT_PASSWORD='***** *****' + [[ ***** ***** == \*\*\*\*\* ]] + set +x Like you can see the two passwords are concatenated via newline in one string which is not what we want. With this commit we will no longer read all sections at once instead we read section per section. We are now also telling the user where we are looking for the password and where we found one. In addition this commit adds a sanity check for newline to catch scenarios where the user for example has inadvertently set multiple password options in one section which we can't handle: In that case it is better to prompt for a password like no password was set in my.cnf instead of initializing mysqld with a mysql root password the user is not expecting. Gentoo-Bug: https://bugs.gentoo.org/510724
* mysql-multilib-r1.eclass: Use *_is_at_least from versionator eclassThomas Deutschmann2016-09-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | Since dev-db/percona-server was bumped to EAPI=6 usage mysql_fx eclass is no longer inherited [Link1] which results in an error like > # emerge --config dev-db/percona-server > > Configuring pkg... > > * Creating the mysql database and setting proper permissions on it ... > /var/tmp/portage/dev-db/percona-server-5.6.32.78.0/temp/environment: line 4697: mysql_version_is_at_least: command not found To fix this problem I replaced the call to "mysql_version_is_at_least" function from mysql_fx eclass with a call to "version_is_at_least" function from versionator eclass we are already inheriting [Link2]. Link1: https://gitweb.gentoo.org/repo/gentoo.git/tree/eclass/mysql-multilib-r1.eclass?id=b3ae687988d49123628757aa8c5422bdd3b444fb#n46 Link2: https://gitweb.gentoo.org/repo/gentoo.git/tree/eclass/mysql-multilib-r1.eclass?id=b3ae687988d49123628757aa8c5422bdd3b444fb#n43 Gentoo-Bug: https://bugs.gentoo.org/594298
* mysql-cmake/mysql-multilib eclasses: set STACK_DIRECTION to fix cross-compilesMike Frysinger2016-06-111-0/+3
|
* mysql-multilib-r1.eclass: Remove private header and don't install tests wrt ↵Brian Evans2016-05-111-6/+15
| | | | | | | | | | bug 582738 The private include file mysql/private/config.h is not needed by anything and should not be referenced. It will never match in multiple ABIs so just remove it. When USE=-test, don't install tests which would just be removed later anyway.
* mysql-multilib-r1: Add missing cmake variable to install static libraries ↵Brian Evans2016-03-241-0/+1
| | | | wrt bug 578154
* mysql-multilib-r1.eclass: Fix virtual/mysql USE dependencyBrian Evans2016-03-091-1/+1
|
* mysql-multilib-r1.eclass: Move the virtual/libmysqlclient PDEPEND to the ↵Brian Evans2016-03-091-1/+2
| | | | providers
* mysql-multilib-r1: Add EAPI 6 supportBrian Evans2016-02-281-31/+113
|
* mysql eclasses: Add missing SQL command after setting root password wrt bug ↵Brian Evans2016-02-071-1/+1
| | | | | | | 574040 When updating the table by hand, we don't do FLUSH PRIVILEGES before inserting the next command which can stop the loading of the timezone and help tables.
* mysql-multilib-r1.eclass: Add missing REQUIRED_USE which caused a block on ↵Brian Evans2015-12-311-1/+1
| | | | | | ~arch packages Signed-off-by: Brian Evans <grknight@gentoo.org>
* mysql-multilib-r1.eclass: Add gitweb snapshot for extras file to SRC_URIBrian Evans2015-12-231-0/+1
|
* mysql-multilib-r1.eclass: Adjust documentation comments wrt bug 568240Brian Evans2015-12-141-3/+4
| | | | Signed-off-by: Brian Evans <grknight@gentoo.org>
* mysql-multilib-r1.eclass: New Eclass for building mysql serversBrian Evans2015-12-131-0/+1044
This eclass is a revision to the previous mysql-multilib to clean up the duplicated code. This includes specific dependencies for certain providers. Provider specific information will be kept in the provider's ebuilds. Only common items should be placed here and possibly exceptions to those rules. Signed-off-by: Brian Evans <grknight@gentoo.org>