[MDEV-11790] WITHOUT_SERVER installs server-only files Created: 2017-01-14 Updated: 2020-08-12 Resolved: 2018-07-19 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Compiling, Packaging |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.0.29, 10.2 |
| Fix Version/s: | 10.0.36, 10.1.35, 10.2.17, 10.3.9 |
| Type: | Bug | Priority: | Major |
| Reporter: | Bernard Spil | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | contribution, foundation, packaging | ||
| Environment: |
FreeBSD build.brnrd.eu 11.0-RELEASE-p3 FreeBSD 11.0-RELEASE-p3 #0 r308890: Sun Nov 20 20:27:48 CET 2016 build@brnrd.eu:/usr/obj/usr/src/sys/BEASTIE110 amd64 |
||
| Issue Links: |
|
||||||||||||||||
| Description |
|
When source is configured with -DWITHOUT_SERVER=1 the binary `bin/mysqld_safe_helper` is installed. As this is a utility for the server only it should be excluded from client-only builds. |
| Comments |
| Comment by Elena Stepanova [ 2018-01-23 ] | ||||||||||||||||||||||||||||||||||||||||||||
|
A much longer list from
| ||||||||||||||||||||||||||||||||||||||||||||
| Comment by Bernard Spil [ 2018-10-27 ] | ||||||||||||||||||||||||||||||||||||||||||||
|
Picked this up again, there are multiple issues when wanting to build "client-only" Utilities/scripts that can connect remote MariaDB servers should be in the Client profile, not Server. mysql_convert_table_formatWITHOUT_SERVER builds scripts/mysql_convert_table_format from scripts/mysql_convert_table_format.sh yet only installs man/man1/mysql_convert_table_format.1 mysqlhotcopyAllows remote connections so is a Client component (i.e. does NOT require the a locally installed server to work) mysql_setpermissionAllows remote connections so is a Client component (i.e. does NOT require the a locally installed server to work) replacethe replace utility is required by the msql2mysql utility. The latter is listed as a Client component, so the former, being a dependency, must also be labeled as Client component Created a pull-request in MariaDB github based on this | ||||||||||||||||||||||||||||||||||||||||||||
| Comment by Daniel Black [ 2020-08-12 ] | ||||||||||||||||||||||||||||||||||||||||||||
|
spil, much of this work is merged and your descriptions here where very helpful. Rather than `make install` and pruning out the results, the following cmake commands can limit the install components to those you actually want to distribute. I'm hoping this tips assists in your FreeBSD packaging.
my_print_defaults has a discussion - https://github.com/MariaDB/server/pull/1566 and https://github.com/MariaDB/server/pull/1581 and |