[MDEV-9434] MariaDB packages - Maintainer scripts - Question prefixes Created: 2016-01-19  Updated: 2016-11-08  Resolved: 2016-11-08

Status: Closed
Project: MariaDB Server
Component/s: Packaging, Platform Debian
Affects Version/s: 5.5.47-galera
Fix Version/s: 10.2.3

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

Debian



 Description   

Hello,

It would be great to also update debconf question prefixes when you release a new minor version. For instance, when installing the mariadb-server-5.5 package on Debian we have the following question set

root@wheezy:~# debconf-show mariadb-server-5.5 
  mysql-server/root_password_again: (password omitted)
  mysql-server/root_password: (password omitted)
  mariadb-server-5.5/really_downgrade: false
  mysql-server/error_setting_password:
  mysql-server-5.1/nis_warning:
  mysql-server-5.1/start_on_boot: true
  mysql-server-5.1/postrm_remove_databases: false
  mysql-server/password_mismatch:
  mysql-server/no_upgrade_when_using_ndb:

As you can see here, question prefix stick to 5.1 while we would expect 5.5. Fixing this is important in regard of some scripts which prefill debconf database according package versions they intend to install.

Also, I think that you should use package onwer name for question prefix too (as it is done for Percona packages).

For instance

mysql-server/root_password

should be

mariadb-server/root_password

All here is about consistency.

Thanks you for your understanding.



 Comments   
Comment by Otto Kekäläinen [ 2016-01-20 ]

This is fixed in downstream Debian packaging but waiting for the big upstream merge, likely to happen during the 10.2 cycle.

Comment by Laurent Declercq [ 2016-01-20 ]

Ok Thanks. Right now, we have to do ugly checks to prefill debconf db

Comment by Andrii Nikitin (Inactive) [ 2016-11-03 ]

This is confirmed in official 10.2

root@u16:~# debconf-show mariadb-server-10.2
mysql-server/root_password_again: (password omitted)
mysql-server/root_password: (password omitted)
mariadb-server-10.2/really_downgrade: false
mysql-server/password_mismatch:
mysql-server-5.1/postrm_remove_databases: false
mysql-server-5.1/start_on_boot: true
mysql-server-5.1/nis_warning:
mysql-server/error_setting_password:

and fixed in recent internal 10.2.3 build http://buildbot.askmonty.org/buildbot/builders/kvm-deb-trusty-amd64/builds/3854
revision c6713f651f5a50709273d14ce5732f7ef3409737

root@u1:~/Desktop# debconf-show mariadb-server-10.2

  • mysql-server/root_password_again: (password omitted)
  • mysql-server/root_password: (password omitted)
    mariadb-server-10.2/old_data_directory_saved:
    mysql-server/password_mismatch:
  • mysql-server/error_setting_password:
    mariadb-server-10.2/nis_warning:
    mariadb-server-10.2/postrm_remove_databases: false
Generated at Thu Feb 08 07:34:38 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.