Bug#985870: [debian-mysql] Bug#985870: mariadb-server-10.5: unowned files after purge (policy 6.8, 10.8): /usr/share/mysql/debian-10.5.flag
Control: forwarded -1 https://github.com/MariaDB/server/pull/1825 -- Faustin Lammler GPG: F652 BCD1 1AA8 8975 F010 48A5 390A 2F27 832A 5C79 signature.asc Description: PGP signature
Bug#985870: [debian-mysql] Bug#985870: mariadb-server-10.5: unowned files after purge (policy 6.8, 10.8): /usr/share/mysql/debian-10.5.flag
Hello! Upstream packaging seems to have introduced this line 9 years ago: https://github.com/MariaDB/server/commit/cfd4fcb0bc3d469dfca74dae30d17250d65fdd91#diff-733e7d6cfbf529c0530e7b06c97071e2c7dafa6d8b673495fecdce3f1d57015bR139 > # To avoid downgrades. > touch $mysql_statedir/debian-5.5.flag Seems very unnecessary for me. The flag thing is used by both MariaDB and MySQL packaging in Debian/Ubuntu, and it is put in the /var/lib/mysql datadir. This statedir seems completely unnecessary. I would guess you can remove the 'touch $mysql_statedir'.
Bug#985870: [debian-mysql] Bug#985870: mariadb-server-10.5: unowned files after purge (policy 6.8, 10.8): /usr/share/mysql/debian-10.5.flag
Hi Andreas! Thanks for your report and I can confirm this with the latest 10.5 version (debian and upstream). | podman run -it debian:sid bash -c "apt-get update &&\ | apt-get install -y mariadb-server &&\ | ls /usr/share/mysql/debian-*.flag &&\ | apt-get autopurge -y --force mariadb-server" @Otto, I have verified on 10.3 and my understanding is that there might be a confusion between datadir and statedir. For 10.3 we did not create the flag in the statedir whereas upstream did: https://salsa.debian.org/mariadb-team/mariadb-10.3/-/blob/buster/debian/mariadb-server-10.3.postinst#L96-114 https://github.com/MariaDB/server/blob/10.3/debian/mariadb-server-10.3.postinst#L135-L156 I am not sure if this statedir flag (/usr/share/mysql/debian-*.flag) is used by any maintainer script, let me know if you want me to open a jira issue and a PR upstream (I guess we should fix this upstream). Faustin signature.asc Description: PGP signature