mariadb: move some binaries
authorSebastian Kemper <redacted>
Sat, 13 Jun 2020 17:55:47 +0000 (19:55 +0200)
committerSebastian Kemper <redacted>
Sat, 13 Jun 2020 18:05:08 +0000 (20:05 +0200)
Even though I think that mysql_upgrade is a client package (it depends
on the mysql client and it's in the "client" directory in the source
tree, for instance), upstream laid it out differently. Since upstream
commit ec586f5 mysql_upgrade is to be considered a part of the server,
because the COMPONENT argument in the MYSQL_ADD_EXECUTABLE macro is set
to "Server".

That means that mysql_upgrade is only installed when the server is. So
we need to move it back to the server package, otherwise we will have a
build failure when mariadb-client is selected while mariadb-server is
not. This particular build failure was recently a topic on
openwrt-devel.

Some more binaries are moved, following the layout visible in
"man/CMakeLists.txt", to make sure we follow upstream's vision with
regards to how the binaries are packaged.

Signed-off-by: Sebastian Kemper <redacted>
utils/mariadb/Makefile

index f8edde6e7d16f4679669b813fb96c9625b01ccf1..c702be260d591b749b5c831e5c200d4b336d72ba 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=mariadb
 PKG_VERSION:=10.4.13
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL := \
@@ -116,13 +116,15 @@ plugin-wsrep_info               := PLUGIN_WSREP_INFO
 
 MARIADB_CLIENT := \
        mysql \
-       mysql_upgrade \
        mysqlcheck
 
 MARIADB_CLIENT_EXTRA := \
+       msql2mysql \
        mysql_find_rows \
+       mysql_plugin \
        mysql_waitpid \
        mysqlaccess \
+       mysqlbinlog \
        mysqldump \
        mysqlimport \
        mysqlshow \
@@ -133,6 +135,7 @@ MARIADB_SERVER := \
        innochecksum \
        my_print_defaults \
        mysql_install_db \
+       mysql_upgrade \
        mysqladmin \
        mysqld \
        mysqld_safe
@@ -144,18 +147,15 @@ MARIADB_SERVER_EXTRA := \
        aria_pack \
        aria_read_log \
        mariabackup \
-       msql2mysql \
        myisam_ftdump \
        myisamchk \
        myisamlog \
        myisampack \
        mysql_convert_table_format \
        mysql_fix_extensions \
-       mysql_plugin \
        mysql_secure_installation \
        mysql_setpermission \
        mysql_tzinfo_to_sql \
-       mysqlbinlog \
        mysqld_multi \
        mysqld_safe_helper \
        mysqldumpslow \
git clone https://git.99rst.org/PROJECT