| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
wrt bug 578154
|
| |
|
|
|
|
| |
providers
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
~arch packages
Signed-off-by: Brian Evans <grknight@gentoo.org>
|
| |
|
|
|
|
| |
Signed-off-by: Brian Evans <grknight@gentoo.org>
|
|
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>
|