Bug 273095 - net-mgmt/icinga2: Build failure with OPTIONS_UNSET+= MYSQL
Summary: net-mgmt/icinga2: Build failure with OPTIONS_UNSET+= MYSQL
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Dirk Meyer
URL:
Keywords: patch, regression
Depends on:
Blocks:
 
Reported: 2023-08-13 06:25 UTC by Fredrik Eriksson
Modified: 2023-09-14 18:22 UTC (History)
5 users (show)

See Also:
dinoex: maintainer-feedback-


Attachments
poudriere-icinga2-2.14.0.log (23.86 KB, text/plain)
2023-08-13 06:25 UTC, Fredrik Eriksson
no flags Details
fix build without mysql (854 bytes, patch)
2023-08-16 18:34 UTC, Denis Shaposhnikov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fredrik Eriksson 2023-08-13 06:25:50 UTC
Created attachment 244045 [details]
poudriere-icinga2-2.14.0.log

It looks like icinga2-2.14.0 tries to build with mysql support even if mysql is explicit disabled; causing build failure because of missing mysql libraries.

I have previously built icinga2-2.13.7 without mysql, so I guess something changed in the version bump.

See attached poudriere build log.
Comment 1 Denis Shaposhnikov 2023-08-13 12:51:21 UTC
Same problem here.
Comment 2 jako.andras 2023-08-15 07:53:57 UTC
Exactly the same here.
Comment 3 Denis Shaposhnikov 2023-08-16 18:34:06 UTC
Created attachment 244154 [details]
fix build without mysql

Hi,

I'm attaching a fix for building without mysql.
Comment 4 jako.andras 2023-08-17 08:14:53 UTC
(In reply to Denis Shaposhnikov from comment #3)

Thanks! It builds fine with PostgreSQL and your patch.
Comment 5 Fredrik Eriksson 2023-08-18 11:07:09 UTC
(In reply to Denis Shaposhnikov from comment #3)
Thanks! Can confirm as well, with this patch it builds both with postgres and without any db backend.
Comment 6 commit-hook freebsd_committer freebsd_triage 2023-09-14 14:42:05 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4cd3b097e766618661400a3f554f14d886397800

commit 4cd3b097e766618661400a3f554f14d886397800
Author:     Dirk Meyer <dinoex@FreeBSD.org>
AuthorDate: 2023-09-14 14:40:50 +0000
Commit:     Dirk Meyer <dinoex@FreeBSD.org>
CommitDate: 2023-09-14 14:40:50 +0000

    net-mgmt/icinga2: fix build options mysql, postgres

    PR: 273095

 net-mgmt/icinga2/Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Comment 7 Dirk Meyer freebsd_committer freebsd_triage 2023-09-14 14:43:47 UTC
Committed after maintainer timeout
Comment 8 Denis Shaposhnikov 2023-09-14 18:22:04 UTC
(In reply to Dirk Meyer from comment #7)
Thanks Dirk.