[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.

Generated at Thu Feb 08 08:50:14 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.