Your message dated Wed, 29 Mar 2017 13:04:11 +0000 with message-id <[email protected]> and subject line Bug#852495: fixed in mariadb-10.1 10.1.22-3 has caused the Debian Bug report #852495, regarding mariadb-server-10.[01]: purging old mariadb-server shuts down mariadb-server and removes init.d links to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 852495: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=852495 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: mariadb-server-10.1 Version: 10.1.21-1 Severity: normal After upgrading to 10.1 from 10.0, I purged the old mariadb-server-10.0 package, but this had two quite unpleasant effects: it shut down the server and it removed the init.d links. This is because: (a) In the purge|remove|upgrade|... case, stop_server is executed unconditionally. It is not obvious to me under what conditions the server should be stopped, but I would presume that at the very least, it should only be stopped if the running server is the same version as the package. This could be tested (somewhat slowly but quite safely) by running: if [ -x /usr/sbin/mysqld ] then serverpackage=$(dpkg -S /usr/sbin/mysqld | cut -d: -f1) if [ $serverpackage = mariadb-server-core-$this_version ] then stop_server sleep 2 fi fi The whole server-stopping is probably also in general somewhat unnecessary, as the server will have been stopped in the prerm anyway by the dh_installinit snippet. And this may suffer from the same issue (though I am less convinced about this), and should probably be replaced by your stop_server script anyway. Oh, and for stretch, you don't need to test for the existence of invoke-rc.d, as it is now in the essential init-system-helpers package, so you can just do invoke-rc.d mysql stop unconditionally. (b) The dh_installinit snippet unconditionally runs update-rc.d mysql remove. The only way I can think to fix this is to run dh_installinit with --no-scripts and then manually insert the necessary snippets into the postinst/postrm/prerm scripts. In the postrm script, it should be protected by the same checks as in (a). Best wishes, Julian
--- End Message ---
--- Begin Message ---Source: mariadb-10.1 Source-Version: 10.1.22-3 We believe that the bug you reported is fixed in the latest version of mariadb-10.1, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Ondřej Surý <[email protected]> (supplier of updated mariadb-10.1 package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Tue, 28 Mar 2017 22:59:06 +0200 Source: mariadb-10.1 Binary: libmariadbclient18 libmariadbclient-dev libmariadbclient-dev-compat libmariadbd18 libmariadbd-dev mariadb-common mariadb-client-core-10.1 mariadb-client-10.1 mariadb-server-core-10.1 mariadb-server-10.1 mariadb-server mariadb-client mariadb-plugin-connect mariadb-plugin-oqgraph mariadb-plugin-tokudb mariadb-plugin-mroonga mariadb-plugin-spider mariadb-plugin-gssapi-server mariadb-plugin-gssapi-client mariadb-plugin-cracklib-password-check mariadb-test mariadb-test-data Architecture: source Version: 10.1.22-3 Distribution: unstable Urgency: medium Maintainer: Debian MySQL Maintainers <[email protected]> Changed-By: Ondřej Surý <[email protected]> Description: libmariadbclient-dev - MariaDB database development files libmariadbclient-dev-compat - MariaDB database development files (libmysqlclient compatibility) libmariadbclient18 - MariaDB database client library libmariadbd-dev - MariaDB embedded database, development files libmariadbd18 - MariaDB embedded database, shared library mariadb-client - MariaDB database client (metapackage depending on the latest vers mariadb-client-10.1 - MariaDB database client binaries mariadb-client-core-10.1 - MariaDB database core client binaries mariadb-common - MariaDB common metapackage mariadb-plugin-connect - Connect storage engine for MariaDB mariadb-plugin-cracklib-password-check - CrackLib Password Validation Plugin for MariaDB mariadb-plugin-gssapi-client - GSSAPI authentication plugin for MariaDB client mariadb-plugin-gssapi-server - GSSAPI authentication plugin for MariaDB server mariadb-plugin-mroonga - Mroonga storage engine for MariaDB mariadb-plugin-oqgraph - OQGraph storage engine for MariaDB mariadb-plugin-spider - Spider storage engine for MariaDB mariadb-plugin-tokudb - TokuDB storage engine for MariaDB mariadb-server - MariaDB database server (metapackage depending on the latest vers mariadb-server-10.1 - MariaDB database server binaries mariadb-server-core-10.1 - MariaDB database core server files mariadb-test - MariaDB database regression test suite mariadb-test-data - MariaDB database regression test suite - data files Closes: 852495 Changes: mariadb-10.1 (10.1.22-3) unstable; urgency=medium . * Use pidof instead of pgrep, so we don't have to depend on procps * Stop stopping mariadb server that many times and just add a simple check to preinst that it has been really stopped (Closes: #852495) * Fix small typo in gettid patch * Disable TokuDB on kfreebsd-amd64 Checksums-Sha1: 18f7d3c26f472308b26c4e1a863fe06841f889fd 4381 mariadb-10.1_10.1.22-3.dsc 24f99a642d03c8456fbf1c2e903612786041a46b 220740 mariadb-10.1_10.1.22-3.debian.tar.xz eb74bcf184967e56fef67ac6523863d70e9b42e8 19979 mariadb-10.1_10.1.22-3_amd64.buildinfo Checksums-Sha256: e4aca2ef8ffae391f735058649d9bff6f92cd9b7bca77c778228be4fb4650c64 4381 mariadb-10.1_10.1.22-3.dsc 5d8f8b31ef906890bdd789d5193b66721581345af8a61d499f2041ba84802d3b 220740 mariadb-10.1_10.1.22-3.debian.tar.xz 899a288d916bd24a6dbce7591bead42561a91871f444b767565db4e9c9ef3540 19979 mariadb-10.1_10.1.22-3_amd64.buildinfo Files: dcc2b8a37d9e237f219f5b1e6b2a9fbf 4381 database optional mariadb-10.1_10.1.22-3.dsc 137d9134606d5feab18e5c44c2c9f8d4 220740 database optional mariadb-10.1_10.1.22-3.debian.tar.xz b106e351cfe9e8f63dc906b57417818f 19979 database optional mariadb-10.1_10.1.22-3_amd64.buildinfo -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEMLkz2A/OPZgaLTj7DJm3DvT8uwcFAljbrOhfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDMw QjkzM0Q4MEZDRTNEOTgxQTJEMzhGQjBDOTlCNzBFRjRGQ0JCMDcACgkQDJm3DvT8 uwdVsBAAhy+wBlvG4vb8ck9ZGYXSzj1iaicmOPfdi2oZAp6bpgorkZtwUYHitVt3 IhkqJtFNTBeD9wTXQu0BD8V3tzCYN/EMyaxOf8uC9/FG9MjQxpiTssb4cjuBZwsR hDTj7p9UU26v0ugJBd7DZmG1lh+N0y9cBadbCeJ7GzdB79EWFSdfbI0wNZyUlWYn yZeN46XXm9EwiL1J4OVUf9ZqvFSiGL3CH7gs7c5eMKSqxXBYQJ83VBvbCO66mGr0 0OFToD33u1z6fdGK6olEVxD8uHvuxJHOs4Qq5CZUWfZarcVjK1B7Insw632vDkhW U78EHh/lWaKKad9F3dfJM0IUlFWABOWfuczGWNNwR+oR8aDTlpZVLyT/bsAum8V8 AZg2IUwK4eIZHOUbRaQEkbh5EueHgtbFuo6hOBKQPTySCQdFYHc2Iu3JeXlEl+i3 Obp1+s31OmdknHfKLbuZJQp7ZTJto7vqoJqQpo7ZmnX8dhAp+fHAh1BHYFABbSVE 5oeeHJDuoRsPpVJSTVFRJSpQ6WnZhQ7nRHTYkLZd1oVBvtQ9LOG+G+YmeytpE6Tp UhvU7pbHkxSERGE9Hls9T68rDWJVE0+KidTr3HrvSqEbCKQ8xglnyyOJ4lezKxbX TJudAv/jBjAKB5dOnqod6QV/P7T0/pCXMvoAj0zvKhCdMULd2kI= =R6K7 -----END PGP SIGNATURE-----
--- End Message ---

