summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMingli Yu <mingli.yu@windriver.com>2020-08-20 00:32:28 -0700
committerKhem Raj <raj.khem@gmail.com>2020-08-20 01:10:38 -0700
commite6d770e0f22769bdaf1bc470d95971f7c2f382ee (patch)
treec7f4c13fb2e27f4652a167b84b7186171889edfb
parentae39f2e711f70fa8eaf8c4de116b90ea1a1f270a (diff)
downloadmeta-openembedded-e6d770e0f22769bdaf1bc470d95971f7c2f382ee.tar.gz
mariadb: package executables named with mariadb
After mariadb upgrades to 10.5.x, the below commit introduced: 9e1b3af4a49 MDEV-21303 Make executables MariaDB named Before the above commit: $ ls -l tmp-glibc/work/core2-64-wrs-linux/mariadb/10.4.12-r0/build/scripts/mysql_install_db -rwxr-xr-x 1 myu users 21649 Aug 20 10:36 tmp-glibc/work/core2-64-wrs-linux/mariadb/10.4.12-r0/build/scripts/mysql_install_db $ ls -l tmp-glibc/work/core2-64-wrs-linux/mariadb/10.4.12-r0/build/scripts/mariadb-install-db lrwxrwxrwx 1 myu users 16 Aug 20 10:36 tmp-glibc/work/core2-64-wrs-linux/mariadb/10.4.12-r0/build/scripts/mariadb-install-db -> mysql_install_db After the above commit: $ ls -l tmp-glibc/work/corei7-64-wrs-linux/mariadb/10.5.4-r0/build/scripts/mysql_install_db lrwxrwxrwx 1 myu users 18 Aug 19 15:02 tmp-glibc/work/corei7-64-wrs-linux/mariadb/10.5.4-r0/build/scripts/mysql_install_db -> mariadb-install-db $ ls -l tmp-glibc/work/corei7-64-wrs-linux/mariadb/10.5.4-r0/build/scripts/mariadb-install-db -rwxr-xr-x 1 myu users 21630 Aug 19 15:02 tmp-glibc/work/corei7-64-wrs-linux/mariadb/10.5.4-r0/build/scripts/mariadb-install-db So package the corresponding mariadb named executables to -server and -client packages and also correct MULTILIB_SCRIPTS part accordingly. Also cleanup some deprecated files defined for mariadb-server and mariadb-client. Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-dbs/mysql/mariadb.inc52
1 files changed, 31 insertions, 21 deletions
diff --git a/meta-oe/recipes-dbs/mysql/mariadb.inc b/meta-oe/recipes-dbs/mysql/mariadb.inc
index 1aa1f68cd..46a64006d 100644
--- a/meta-oe/recipes-dbs/mysql/mariadb.inc
+++ b/meta-oe/recipes-dbs/mysql/mariadb.inc
@@ -31,7 +31,8 @@ BINCONFIG_GLOB = "mysql_config"
31 31
32inherit cmake gettext binconfig update-rc.d useradd systemd multilib_script 32inherit cmake gettext binconfig update-rc.d useradd systemd multilib_script
33 33
34MULTILIB_SCRIPTS = "${PN}-server:${bindir}/mysql_install_db ${PN}-server:${bindir}/mysqld_safe" 34MULTILIB_SCRIPTS = "${PN}-server:${bindir}/mariadbd-safe \
35 ${PN}-server:${bindir}/mariadb-install-db"
35 36
36INITSCRIPT_PACKAGES = "${PN}-server ${PN}-setupdb" 37INITSCRIPT_PACKAGES = "${PN}-server ${PN}-setupdb"
37INITSCRIPT_NAME_${PN}-server = "mysqld" 38INITSCRIPT_NAME_${PN}-server = "mysqld"
@@ -243,69 +244,78 @@ FILES_libmysqld-dev = "\
243FILES_${PN}-client = "\ 244FILES_${PN}-client = "\
244 ${bindir}/myisam_ftdump \ 245 ${bindir}/myisam_ftdump \
245 ${bindir}/mysql \ 246 ${bindir}/mysql \
247 ${bindir}/mariadb \
246 ${bindir}/mysql_client_test \ 248 ${bindir}/mysql_client_test \
249 ${bindir}/mariadb-client-test \
247 ${bindir}/mysql_client_test_embedded \ 250 ${bindir}/mysql_client_test_embedded \
251 ${bindir}/mariadb-client-test-embedded \
248 ${bindir}/mysql_find_rows \ 252 ${bindir}/mysql_find_rows \
253 ${bindir}/mariadb-find-rows \
249 ${bindir}/mysql_fix_extensions \ 254 ${bindir}/mysql_fix_extensions \
255 ${bindir}/mariadb-fix-extensions \
250 ${bindir}/mysql_waitpid \ 256 ${bindir}/mysql_waitpid \
257 ${bindir}/mariadb-waitpid \
251 ${bindir}/mysqlaccess \ 258 ${bindir}/mysqlaccess \
259 ${bindir}/mariadb-access \
252 ${bindir}/mysqladmin \ 260 ${bindir}/mysqladmin \
253 ${bindir}/mysqlbug \ 261 ${bindir}/mariadb-admin \
254 ${bindir}/mysqlcheck \ 262 ${bindir}/mysqlcheck \
263 ${bindir}/mariadb-check \
255 ${bindir}/mysqldump \ 264 ${bindir}/mysqldump \
265 ${bindir}/mariadb-dump \
256 ${bindir}/mysqldumpslow \ 266 ${bindir}/mysqldumpslow \
267 ${bindir}/mariadb-dumpslow \
257 ${bindir}/mysqlimport \ 268 ${bindir}/mysqlimport \
269 ${bindir}/mariadb-import \
258 ${bindir}/mysqlshow \ 270 ${bindir}/mysqlshow \
271 ${bindir}/mariadb-show \
259 ${bindir}/mysqlslap \ 272 ${bindir}/mysqlslap \
273 ${bindir}/mariadb-slap \
260 ${bindir}/mysqltest_embedded \ 274 ${bindir}/mysqltest_embedded \
275 ${bindir}/mariadb-test-embedded \
261 ${libexecdir}/mysqlmanager \ 276 ${libexecdir}/mysqlmanager \
262 ${sysconfdir}/my.cnf.d/mysql-clients.cnf" 277 ${sysconfdir}/my.cnf.d/mysql-clients.cnf"
263 278
264FILES_${PN}-server = "\ 279FILES_${PN}-server = "\
265 ${bindir}/comp_err \
266 ${bindir}/isamchk \
267 ${bindir}/isamlog \
268 ${bindir}/msql2mysql \ 280 ${bindir}/msql2mysql \
269 ${bindir}/my_print_defaults \ 281 ${bindir}/my_print_defaults \
270 ${bindir}/myisamchk \ 282 ${bindir}/myisamchk \
271 ${bindir}/myisamlog \ 283 ${bindir}/myisamlog \
272 ${bindir}/myisampack \ 284 ${bindir}/myisampack \
273 ${bindir}/mysql_convert_table_format \ 285 ${bindir}/mysql_convert_table_format \
274 ${bindir}/mysql_fix_privilege_tables \ 286 ${bindir}/mariadb-convert-table-format \
275 ${bindir}/mysql_install_db \ 287 ${bindir}/mysql_install_db \
288 ${bindir}/mariadb-install-db \
276 ${bindir}/mysql_secure_installation \ 289 ${bindir}/mysql_secure_installation \
290 ${bindir}/mariadb-secure-installation \
277 ${bindir}/mysql_setpermission \ 291 ${bindir}/mysql_setpermission \
292 ${bindir}/mariadb-setpermission \
278 ${bindir}/mysql-systemd-start \ 293 ${bindir}/mysql-systemd-start \
279 ${bindir}/mysql_tzinfo_to_sql \ 294 ${bindir}/mysql_tzinfo_to_sql \
295 ${bindir}/mariadb-tzinfo-to-sql \
280 ${bindir}/mysql_upgrade \ 296 ${bindir}/mysql_upgrade \
297 ${bindir}/mariadb-upgrade \
281 ${bindir}/mysql_plugin \ 298 ${bindir}/mysql_plugin \
282 ${bindir}/mysql_zap \ 299 ${bindir}/mariadb-plugin \
283 ${bindir}/mysqlbinlog \ 300 ${bindir}/mysqlbinlog \
301 ${bindir}/mariadb-binlog \
284 ${bindir}/mysqld_multi \ 302 ${bindir}/mysqld_multi \
303 ${bindir}/mariadbd-multi \
304 ${bindir}/mariadbd-safe \
285 ${bindir}/mysqld_safe \ 305 ${bindir}/mysqld_safe \
286 ${bindir}/mysqld_safe_helper \ 306 ${bindir}/mysqld_safe_helper \
307 ${bindir}/mariadbd-safe-helper \
287 ${bindir}/mysqlhotcopy \ 308 ${bindir}/mysqlhotcopy \
309 ${bindir}/mariadb-hotcopy \
288 ${bindir}/mysqltest \ 310 ${bindir}/mysqltest \
289 ${bindir}/ndb_delete_all \ 311 ${bindir}/mariadb-test \
290 ${bindir}/ndb_desc \
291 ${bindir}/ndb_drop_index \
292 ${bindir}/ndb_drop_table \
293 ${bindir}/ndb_mgm \
294 ${bindir}/ndb_restore \
295 ${bindir}/ndb_select_all \
296 ${bindir}/ndb_select_count \
297 ${bindir}/ndb_show_tables \
298 ${bindir}/ndb_waiter \
299 ${bindir}/pack_isam \
300 ${bindir}/perror \ 312 ${bindir}/perror \
301 ${bindir}/replace \ 313 ${bindir}/replace \
302 ${bindir}/resolve_stack_dump \ 314 ${bindir}/resolve_stack_dump \
303 ${bindir}/resolveip \ 315 ${bindir}/resolveip \
304 ${libexecdir}/mysqld \ 316 ${libexecdir}/mysqld \
305 ${sbindir}/mysqld \ 317 ${sbindir}/mysqld \
306 ${sbindir}/ndb_cpcd \ 318 ${sbindir}/mariadbd \
307 ${sbindir}/ndbd \
308 ${sbindir}/ndb_mgmd \
309 ${libdir}/plugin/*.so \ 319 ${libdir}/plugin/*.so \
310 ${libdir}/security/*.so \ 320 ${libdir}/security/*.so \
311 ${libdir}/plugin/auth_pam_tool_dir/auth_pam_tool \ 321 ${libdir}/plugin/auth_pam_tool_dir/auth_pam_tool \