Bugzilla – Bug 1142909
mariadb depended from python2 and this depence not specify in spec-file.
Last modified: 2019-08-02 18:28:06 UTC
Python2 support expires after 5 months.
In openSUSE, there is an active rewriting or deletion of packages depending on "/usr/bin/python".
It is believed that all basic packages are free from this dependence, but this is not so.
mariadb is the base package, and it contains at least one script: "/usr/bin/myrocks_hotbackup" which is written in python2.
I learned about this script by chance, looking through rpmlint.
mariadb.x86_64: E: env-script-interpreter (Badness: 9) /usr/bin/myrocks_hotbackup /usr/bin/env python
But at the same time the package does not require python in the system!
When upgrading from 10.2 to 10.3, I did not update the tables with ROCKDB and I had to export, remove them from the database, physically delete the "/var/lib/mysql/#rocksdb" directory, restart mariadb and import the data again.
In this case, all previously specified actions were necessary.
Simple software "export -> delete -> import" did not solve the problem.
Perhaps the problem was caused by the fact that this script did not work.
This script needs to be rewritten in python3 or bash and check for other similar scripts.
And in the near future, you need to either add Require: python to the spec-file or replace the header of these scripts with "#!/Usr/bin/env python" with "#!/Usr/bin/python".
The reason why myrocks_hotbackup needed python 2 was "import commands" that was removed  in MariaDB 10.3.13 so now it should be python 3 compatible .
I set a new mariadb option PYTHON_SHEBANG to "python 3" for TW so now the header should be ok as well.
Submitted via sr#720706. Closing as fixed.
Thank you, Kristyna! :-)