[MDEV-19257] mysql_install_db: assume builddir is dirname0 Created: 2019-04-16 Updated: 2019-07-01 Resolved: 2019-07-01 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Configuration, Scripts & Clients |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.2, 10.3, 10.4 |
| Fix Version/s: | 5.5.65 |
| Type: | Bug | Priority: | Major |
| Reporter: | Anel Husakovic | Assignee: | Vicențiu Ciorbaru |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | contribution, patch | ||
| Description |
|
The assumption in the original commit for --builddir (648d3ce), was to assume that the without a --builddir, and when --srcdir is specified, that the builddir is the same as the srcdir. For out of tree builds, the only supported by CMake type, this isn't the case. As mysql_install_db is in the builddir, we use dirname0 after a quick check that my_print_defaults is also located from dirname0. |
| Comments |
| Comment by Daniel Black [ 2019-04-16 ] |
|
Removes the need for using argument builddir being specified for out-of-tree builds when running mysql_install_db with argument srcdir. Behaviour on in-tree builds preserved. |