summaryrefslogtreecommitdiff
path: root/mysql-client/README-DEV
blob: 7c978bf4d61e4a6e3ef27213746dcf39ce9c60de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
This document describes how the mysql utility was packaged for build2. In
particular, this understanding will be useful when upgrading to a new upstream
version. See ../README-DEV for general notes on MySQL packaging.

Symlink the required upstream components:

$ ln -s ../upstream/LICENSE

$ mkdir -p mysql/{client,downstream}
$ ln -s ../../../upstream/client/{{mysql,readline,completion_hash,pattern_matcher}.cc,{client_priv,my_readline,pattern_matcher,completion_hash}.h} mysql/client
$ ln -s ../../libmysqlclient/mysql/{my_config,mysqld_error}.h mysql/
$ ln -s ../../upstream/libbinlogevents mysql/
$ ln -s ../../libmysqlclient/mysql/mysql mysql/include

Create mysql/downstream/mysql_version.h, so it can be found when included as
"mysql_version.h" (which, for example, mysql.h does).