[MDEV-17367] mysql_install_db requires my_print_defaults, but my_print_defaults is in mariadb-server-10.1 Created: 2018-10-03  Updated: 2020-03-14  Resolved: 2020-03-14

Status: Closed
Project: MariaDB Server
Component/s: Packaging, Platform Debian
Affects Version/s: 10.1, 10.3
Fix Version/s: 10.5.2

Type: Bug Priority: Major
Reporter: Faustin Lammler Assignee: Otto Kekäläinen
Resolution: Fixed Votes: 0
Labels: None
Environment:

Debian


Issue Links:
Blocks
blocks MDEV-6284 Merge downstream Debian/Ubuntu packag... Closed

 Description   

mysql_install_db is installed by mariadb-server-core and requires my_print_defaults that is provided by package mariadb-server.

Step to reproduce (on 10.1 and 10.3):

$ sudo apt install mariadb-server-core-10.1
$ /usr/bin/mysql_install_db
 
FATAL ERROR: Could not find /usr/bin/my_print_defaults
...

This was signaled by Alex Hvostov:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=898367



 Comments   
Comment by Elena Stepanova [ 2018-10-03 ]

Does it create any practical problem? mysql_install_db won't work anyway if the server is not installed.

Comment by Faustin Lammler [ 2018-10-03 ]

No, no other problem that script not found.
Is it possible to use mysql_install_db on a remote DB, this is the only reason where this could be considered as an issue for me...

Comment by Elena Stepanova [ 2018-10-03 ]

mysql_install_db starts the server process in order to bootstrap the database, so it has to be local.
And even if it were possible, my_print_defaults still would need to be on the machine where the server runs (and not the client), since it reads server configuration files.

Comment by Faustin Lammler [ 2018-10-03 ]

Thank you elenst for this quick answer!

So this is clearly not an issue. But I do not know if this is an acceptable situation regarding the Debian packaging guidelines.
I have to check this point (anybody aware on that please let me know).

Comment by Elena Stepanova [ 2018-10-03 ]

cvicentiu, maybe you can help with that (or know who can)?

Comment by Faustin Lammler [ 2018-10-08 ]

elenst what do you think about Olaf comment?
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=898367#15

I have just asked Viventiu on zulip also.

Comment by Elena Stepanova [ 2018-10-08 ]

I don't have any strong preferences regarding Debian packaging, to a big extent it seems arbitrary to me. Maybe serg has an opinion. In any case, I hope cvicentiu will be able to coordinate it to everyone's satisfaction.

Comment by Sergei Golubchik [ 2018-10-09 ]

it's not about remote server or anything. It's the simple thing that if a package X uses something from the package Y, it needs to depend on the package Y, and this is not the case here.

Comment by Faustin Lammler [ 2018-10-09 ]

That seems clear an logic to me.
Let's wait for cvicentiu decision.

Comment by Faustin Lammler [ 2018-11-07 ]

Hi,
commit on debian repo from otto resolves this issue:
https://salsa.debian.org/mariadb-team/mariadb-10.1/commit/3689350ad30916aa68fe2c1b35c290fb5095bc9b

It should be updated on upstream too and this is maybe already in otto's wip list?

Comment by Otto Kekäläinen [ 2020-02-24 ]

PR filed at https://github.com/MariaDB/server/pull/1451

Comment by Otto Kekäläinen [ 2020-03-14 ]

PR https://github.com/MariaDB/server/pull/1451 was merged, thus this issue is closed for 10.5.

Generated at Thu Feb 08 08:35:56 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.