Bug 261995 - graphics/digikam: Fails to build with MySQL 8.x
Summary: graphics/digikam: Fails to build with MySQL 8.x
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-kde (group)
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2022-02-16 16:32 UTC by elwood
Modified: 2022-04-09 21:55 UTC (History)
2 users (show)

See Also:
tcberner: maintainer-feedback+
tcberner: merge-quarterly-


Attachments
Building Digikam... (825 bytes, text/plain)
2022-02-16 16:32 UTC, elwood
no flags Details
uname -a (223 bytes, text/plain)
2022-02-17 16:26 UTC, elwood
no flags Details
make showconfig (517 bytes, text/plain)
2022-02-17 16:28 UTC, elwood
no flags Details
full build log (gzipped) (172.44 KB, application/gzip)
2022-02-17 16:29 UTC, elwood
no flags Details
pkg version -v (95.78 KB, text/plain)
2022-02-17 16:31 UTC, elwood
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description elwood 2022-02-16 16:32:59 UTC
Created attachment 231874 [details]
Building Digikam...

Digikam cannot be built from the ports with mysql 8.x, although mysql 8.x is already installed.

As a workaround, the following line in the Makefile can be commented out:
MYSQL_BUILD_DEPENDS= ${LOCALBASE}/lib/mysql/libmysqld.a:${_MYSQL_SERVER}

libmysqld.a is no longer installed with mysql 8.x, see also https://dev.mysql.com/blog-archive/mysql-8-0-retiring-support-for-libmysqld/
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2022-02-16 21:58:49 UTC
@Reporter Could you please include additional information, including:

- uname -a output
- pkg version -v output (as an attachment)
- full build log  (as an attachment, compressed if necessary)
Comment 2 elwood 2022-02-17 15:50:00 UTC
(In reply to Kubilay Kocak from comment #1)
Comment 3 elwood 2022-02-17 16:26:24 UTC
Created attachment 231897 [details]
uname -a
Comment 4 elwood 2022-02-17 16:28:28 UTC
Created attachment 231898 [details]
make showconfig
Comment 5 elwood 2022-02-17 16:29:48 UTC
Created attachment 231899 [details]
full build log (gzipped)
Comment 6 elwood 2022-02-17 16:31:11 UTC
Created attachment 231900 [details]
pkg version -v
Comment 7 elwood 2022-03-08 13:37:04 UTC
Same problem with digikam 7.6.0.
Comment 8 Tobias C. Berner freebsd_committer freebsd_triage 2022-03-18 19:13:52 UTC
Moin moin 

That error does not look realted to graphics/digikam. You are likely working with unclean workdirs.


mfg Tobias
Comment 9 elwood 2022-03-19 15:52:23 UTC
(In reply to Tobias C. Berner from comment #8)

Moin,

I think it is because the digikam port with

MYSQL_BUILD_DEPENDS= ${LOCALBASE}/lib/mysql/libmysqld.a:${_MYSQL_SERVER}

want to make sure *a* MYSQL server is installed.

This works with MySQL 5.7, but apparently not with MySQL 8.x, as written above, because the ${LOCALBASE}/lib/mysql/libmysqld.a is no longer installed with MySQL 8.x.

See also: https://dev.mysql.com/blog-archive/mysql-8-0-retiring-support-for-libmysqld/.

In practice this means: The construction of MySQL (in this case 8.x) is always triggered by the digikam port, regardless of whether it is already installed or not.
My workaround: If I remove the above "MYSQL_BUILD_DEPENDS="-line from the Makefile of the digikam port (with MySQL 8.x already installed), the construction of digikam works.

Since I don't know the ports magic, I don't know how to solve this for 5.7 and 8.x equally. 

Since I don't know the ports magic, I don't know how to solve this for 5.7 and 8.x equally. 

Viele Grüße, Frank
Comment 10 Tobias C. Berner freebsd_committer freebsd_triage 2022-03-19 16:01:08 UTC
(In reply to elwood from comment #9)
Moin moin 

Ah, now I see what you mean.
 

mfg Tobias
Comment 11 commit-hook freebsd_committer freebsd_triage 2022-04-09 21:43:20 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8fe8f93edbfa61ca750b619ca812cb7b2f8d01e6

commit 8fe8f93edbfa61ca750b619ca812cb7b2f8d01e6
Author:     Adriaan de Groot <adridg@FreeBSD.org>
AuthorDate: 2022-04-09 21:42:19 +0000
Commit:     Adriaan de Groot <adridg@FreeBSD.org>
CommitDate: 2022-04-09 21:42:51 +0000

    graphics/digikam: doesn't actually need a MySQL server to build

    None of the code actually includes anything from the server;
    it goes through QtSQL, and the config-option is enough
    to convince Digikam to include support.

    PR:             261995

 graphics/digikam/Makefile | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)