[MDEV-14972] How to compile install mariadb without mysql-test Created: 2018-01-17 Updated: 2018-01-26 Resolved: 2018-01-26 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Compiling |
| Fix Version/s: | N/A |
| Type: | Task | Priority: | Minor |
| Reporter: | yinfuyuan | Assignee: | Vladislav Vaintroub |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Description |
|
I tried to compile and install mariadb in alpine, because it was used in docker, so I wanted to take up less space after the compilation was successful. I used the -dcmake_build_type =MinSizeRel option to minimize the installation. But the mysql-test directory still takes up a lot of space. I tried using -dwith_unit_tests =OFF and -dconc_with_unit_tests =OFF to disable mysql-test installation, but they didn't work. I haven't found any other relevant options, similar to INSTALL_MYSQLTESTDIR="" in mysql. How can I disable mysql-test installation? mysql installation options is this: |
| Comments |
| Comment by Michal Schorm [ 2018-01-22 ] | ||||||||||||
|
True that, in Fedora, we use:
which means, we are basically deleting them all, if we don't want them. So if there's some easier way, I'd like to know that too | ||||||||||||
| Comment by Elena Stepanova [ 2018-01-23 ] | ||||||||||||
|
Apparently we don't have it, but I think it's a reasonable request, so I'm moving it to tasks. | ||||||||||||
| Comment by Vladislav Vaintroub [ 2018-01-23 ] | ||||||||||||
|
yinfuyuan , did you actually try passing -DINSTALL_MYSQLTESTDIR= to cmake? It should work here as well | ||||||||||||
| Comment by yinfuyuan [ 2018-01-24 ] | ||||||||||||
|
@Michal Schorm | ||||||||||||
| Comment by yinfuyuan [ 2018-01-24 ] | ||||||||||||
|
@Elena Stepanova | ||||||||||||
| Comment by Vladislav Vaintroub [ 2018-01-24 ] | ||||||||||||
|
yinfuyuan We do have INSTALL_MYSQLTESTDIR option , and it does work the same as in MySQL. you do not need to pass that as -DINSTALL_MYSQLTESTDIR="" . You can pass it as -DMYSQLTESTDIR= | ||||||||||||
| Comment by Elena Stepanova [ 2018-01-24 ] | ||||||||||||
|
Right, sorry for the confusion. In my comment I meant that we apparently don't have a way to avoid installing mysql-test, not that we don't have the option. I didn't know that it could work this way, happy to be wrong. | ||||||||||||
| Comment by yinfuyuan [ 2018-01-25 ] | ||||||||||||
|
@Vladislav Vaintroub | ||||||||||||
| Comment by Vladislav Vaintroub [ 2018-01-25 ] | ||||||||||||
|
it works for me, and should for you, too cmake . -DINSTALL_MYSQLTESTDIR= and mysql-test is not in the package | ||||||||||||
| Comment by yinfuyuan [ 2018-01-26 ] | ||||||||||||
|
@Vladislav Vaintroub I know cmake ../server -LH can be display all cmake configuration options for MariaDB from Now. I used it correctly, it works well. | ||||||||||||
| Comment by Vladislav Vaintroub [ 2018-01-26 ] | ||||||||||||
|
Our documentation a little simplified https://cmake.org/cmake/help/v3.10/manual/cmake.1.html contains accurate description of what cmake -L[A][H] does . "Non-advanced" is important part. INSTALL_XXX variables are marked as advanced. |