Bug 501747 - Collection unavailable if Debian package "mariadb-server" is not installed
Summary: Collection unavailable if Debian package "mariadb-server" is not installed
Status: RESOLVED DOWNSTREAM
Alias: None
Product: amarok
Classification: Applications
Component: Collections/Local (show other bugs)
Version: 3.2.2
Platform: Debian testing Linux
: NOR normal
Target Milestone: kf5
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-19 15:14 UTC by Iván Sánchez Ortega
Modified: 2025-03-20 15:24 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Iván Sánchez Ortega 2025-03-19 15:14:28 UTC
SUMMARY

I recently uninstalled `mariadb-server` on my system, and that made Amarok display an error dialog on startup (related to MySQL-embedded); besides the collection shows empty.

I am **not** using an external MySQL/mariadb connection. 


STEPS TO REPRODUCE
1. Use a Debian/testing or Debian/unstable system
2. Install the `amarok` debian package
3. Ensure the `mariadb-server` debian package is uninstalled
4. Run amarok

OBSERVED RESULT

During startup, the following error message is displayed on a dialog and on a terminal when running `amarok --debug`:

```
amarok:         [ERROR__] [MySqlStorage] "MySQLe something failed! on library initialization failed, return code 1"
```

EXPECTED RESULT

No error messages during startup.

SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux 12
KDE Plasma Version: 6.3.2
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.12.17-amd64 (64-bit)

ADDITIONAL INFORMATION

I guess that MySQL-embedded *should* work even when there's no MySQL/MariaDB server installed on the system, but somehow that is not the case. All I know is that installing the whole MariaDB-server-10.5 makes MySQLe work.

An easy approach to this problem would be to add `mariadb-server` as a recommended package in the `debian.rules` file (which is the basis to build the amarok debian package) - but at first sight, the Amarok git repo doesn't hold that file, and I don't know who handles distro packaging.

I do not know if this is reproducible on other distros as well.
Comment 1 Tuomas Nurmi 2025-03-20 15:24:30 UTC
Thank you for your report!
mariadb-server indeed shouldn't be necessary for embedded database to work. I just confirmed on my (non-debian) system that removing mariadb server package doesn't break my Amarok, so this is likely something Debian packaging related. The place to report Debian packaging issues is https://bugs.debian.org/cgi-bin/pkgreport.cgi?src=amarok , I believe. (thus, closing as DOWNSTREAM)