Bug 409837 - CMakeLists.txt doesn't check for presence of Embedded MariaDB
Summary: CMakeLists.txt doesn't check for presence of Embedded MariaDB
Status: RESOLVED WORKSFORME
Alias: None
Product: amarok
Classification: Applications
Component: general (show other bugs)
Version: 2.9.0
Platform: Other Linux
: NOR normal
Target Milestone: kf5
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-15 20:30 UTC by Eyal Rozenberg
Modified: 2021-02-13 20:51 UTC (History)
1 user (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 Eyal Rozenberg 2019-07-15 20:30:01 UTC
SUMMARY

I'm building v2.9.0 on Debian buster (well, actually, Devuan Beowulf, which is
the same thing but with systemd yanked out).

CMake'ing works, but during linking, I get this error:

[ 61%] Linking CXX shared module ../../../../../lib/amarok_storage-mysqlestorage.so
/usr/bin/ld: cannot find -lmariadbd
collect2: error: ld returned 1 exit status

indeed, I didn't have embedded MariaDB installed. When I installed the package for it, the error went away.

So, CMake should have checked for this library's presence - and didn't; or alternatively, mistakenly thought it had located it.
Comment 1 Heiko Becker 2021-02-13 09:47:08 UTC
I think this was fixed in 2.9.71, but packaging of MySQL/MariaDB seems to slightly vary between distros. Can you please check if this bug is acutally fixed for you? Thank you.
Comment 2 Eyal Rozenberg 2021-02-13 10:41:32 UTC
(In reply to Heiko Becker from comment #1)

Which exact version should I try and build?
Comment 3 Heiko Becker 2021-02-13 11:02:34 UTC
As I wrote 2.9.71 (aka 2.10 Alpha1, you can get it from https://download.kde.org/unstable/amarok/2.9.71/). git master works too and isn't that different from the release yet.
Comment 4 Eyal Rozenberg 2021-02-13 18:38:21 UTC
(In reply to Heiko Becker from comment #3)
> As I wrote 2.9.71 (aka 2.10 Alpha1, you can get it from
> https://download.kde.org/unstable/amarok/2.9.71/). git master works too and
> isn't that different from the release yet.

FYI: With this version, I'm getting a zillion CMake warnings:

  Package type "Amarok/ContextApplet" not found

  kf5.kcoreaddons.desktopparser: Unable to find service type for service
  "Amarok/ContextApplet" listed in
  "/usr/local/src/amarok-2.9.71/src/context/applets/wikipedia/package/metadata.desktop"
Comment 5 Heiko Becker 2021-02-13 20:33:15 UTC
(In reply to Eyal Rozenberg from comment #4)
> FYI: With this version, I'm getting a zillion CMake warnings:
> 
>   Package type "Amarok/ContextApplet" not found
> 
>   kf5.kcoreaddons.desktopparser: Unable to find service type for service
>   "Amarok/ContextApplet" listed in

True, but you didn't really answer the question concerning the original bug report.
Comment 6 Eyal Rozenberg 2021-02-13 20:51:11 UTC
I can no longer reproduce the bug with the version you specified. So, I'll close this as WORKSFORME. Thanks for your time.