Bug 279253 - mail/dspam: fix configure with modern MariaDB
Summary: mail/dspam: fix configure with modern MariaDB
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: Vladimir Druzenko
URL:
Keywords:
Depends on:
Blocks: 277922
  Show dependency treegraph
 
Reported: 2024-05-23 14:38 UTC by Vladimir Druzenko
Modified: 2024-06-09 15:48 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (danny)


Attachments
fix configure with modern MariaDB (2.30 KB, patch)
2024-05-23 14:38 UTC, Vladimir Druzenko
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Druzenko freebsd_committer freebsd_triage 2024-05-23 14:38:35 UTC
Created attachment 250901 [details]
fix configure with modern MariaDB

As part of fix exp-run: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277922

1) Configure fails with error message:
checking for MySQL client version >= 5.0.0... no
configure: error: Required version of libmysqlclient not found

It check "mysql_get_client_info() > 5", but modern MariaDB return Connector/C's version 3.x instead of MariaDB version.
How to get the correct version found here:
https://github.com/pali/DBD-MariaDB/commit/9743bec52db5e8f1beb2b31e4a55d6ea1a4edcdd

While here:
2) remove GNU_CONFIGURE_MANPREFIX
3) fix make check-plist:
===> Checking for items in STAGEDIR missing from pkg-plist
Error: Orphaned: @dir lib/%%DSPAM_OWNER%%
Comment 1 Vladimir Druzenko freebsd_committer freebsd_triage 2024-05-23 15:08:36 UTC
> 3) fix make check-plist:
> ===> Checking for items in STAGEDIR missing from pkg-plist
> Error: Orphaned: @dir lib/%%DSPAM_OWNER%%
If build with MYSQL option ON only.
Comment 2 Vladimir Druzenko freebsd_committer freebsd_triage 2024-06-09 12:47:38 UTC
Maintainer timeout 17 days - committing.
Comment 3 commit-hook freebsd_committer freebsd_triage 2024-06-09 15:47:45 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2c1a1c023aecd89feacdbeec17566b2629cfa1d0

commit 2c1a1c023aecd89feacdbeec17566b2629cfa1d0
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2024-06-09 15:44:49 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2024-06-09 15:44:49 +0000

    mail/dspam: fix configure with modern MariaDB

    1) Configure fails with error message:
    checking for MySQL client version >= 5.0.0... no
    configure: error: Required version of libmysqlclient not found

    It check "mysql_get_client_info() > 5", but modern MariaDB return
    Connector/C's version 3.x instead of MariaDB version.
    How to get the correct version found here:
    https://github.com/pali/DBD-MariaDB/commit/9743bec52db5e8f1beb2b31e4a55d6ea1a4edcdd

    While here:
    2) remove GNU_CONFIGURE_MANPREFIX
    3) fix make check-plist if build with MYSQL option ON only:
    ===> Checking for items in STAGEDIR missing from pkg-plist
    Error: Orphaned: @dir lib/%%DSPAM_OWNER%%

    PR:             279253
    Approved by:    danny@dannywarren.com (maintainer, timeout 17 days)

 mail/dspam/Makefile                    |  2 --
 mail/dspam/files/patch-configure (new) | 24 ++++++++++++++++++++++++
 mail/dspam/pkg-plist                   |  1 +
 3 files changed, 25 insertions(+), 2 deletions(-)