Bug 270844 - databases/luadbi: package missing (cannot work with MySQL version 80)
Summary: databases/luadbi: package missing (cannot work with MySQL version 80)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Many People
Assignee: Zsolt Udvari
URL: https://www.freshports.org/databases/...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-14 17:15 UTC by László Károlyi
Modified: 2024-11-28 18:53 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (olexander.v.melnyk)


Attachments
Patch to update to 0.7.3 (1.17 KB, patch)
2024-09-28 11:31 UTC, László Károlyi
no flags Details | Diff
pet portclippy, portfmt (3.74 KB, patch)
2024-09-28 17:48 UTC, Zsolt Udvari
no flags Details | Diff
diff for 0.7.4 (856 bytes, patch)
2024-10-14 22:18 UTC, László Károlyi
no flags Details | Diff
revert-111bb60101e36d18e5bf14ed33ff8f53e5e5afa1.diff (375 bytes, patch)
2024-11-06 11:52 UTC, László Károlyi
no flags Details | Diff
revert-111bb60101e36d18e5bf14ed33ff8f53e5e5afa1.diff (530 bytes, patch)
2024-11-06 15:40 UTC, László Károlyi
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description László Károlyi 2023-04-14 17:15:59 UTC
Hey,

it seems this package has been missing lately, which in turn makes prosody fail to start when set up with using an SQL backend.

According to https://www.freshports.org/databases/luadbi, it's partially there, but missing from many distributions.
Comment 1 László Károlyi 2023-05-30 16:57:46 UTC
Nobody here?

It seems buildind lua is complaining about not being compatible with the upgraded mysql client:

===>  lua54-luadbi-0.7.2 cannot install: does not work with MySQL version 80
(MySQL 80 not supported).
*** Error code 1

Stop.
make: stopped in /usr/ports/databases/luadbi
Comment 2 Zsolt Udvari freebsd_committer freebsd_triage 2024-09-27 18:25:19 UTC
Could you try update to 0.7.3 and test it? As I see in notes (https://github.com/mwild1/luadbi/releases/tag/v0.7.3) this bug is fixed.
Comment 3 László Károlyi 2024-09-28 11:31:41 UTC
Created attachment 253867 [details]
Patch to update to 0.7.3

Welp, it worked.

Attached you'll find the ports patch necessary to build 0.7.3, but I built a package, installed it and prosody (that uses luadbi) started up with it successfully. Upon upgrade it pulled in mysql80-client, but I see there's already 84 and 90 available (as in, mysql90-client).

Not sure what to do to pull in those instead of 80, but here's the patch.

A timely merge is appreciated.
Comment 4 László Károlyi 2024-09-28 11:46:48 UTC
Just built it with mysql90-client, works with that as well.
Comment 5 Zsolt Udvari freebsd_committer freebsd_triage 2024-09-28 17:48:00 UTC
Created attachment 253870 [details]
pet portclippy, portfmt

Small modifications: portlint, portclippy, portfmt.

We should wait the maintainer. If there is no reaction in two weeks we can commit it.
Comment 6 Zsolt Udvari freebsd_committer freebsd_triage 2024-10-13 17:42:10 UTC
(In reply to László Károlyi from comment #4)
László, do you want update to 0.7.4? Released some days ago (https://github.com/mwild1/luadbi/releases/tag/v0.7.4).
Comment 7 László Károlyi 2024-10-13 23:42:15 UTC
(In reply to Zsolt Udvari from comment #6)
Can confirm it works.

Can we have this package in ports already?
Comment 8 Zsolt Udvari freebsd_committer freebsd_triage 2024-10-14 14:05:13 UTC
(In reply to László Károlyi from comment #7)
Thanks. Could you provide an update-patch to 0.7.4? If yes, we'll wait another two weeks and if no reaction can commit it to ports tree.
Comment 9 László Károlyi 2024-10-14 22:18:25 UTC
Created attachment 254234 [details]
diff for 0.7.4
Comment 10 Zsolt Udvari freebsd_committer freebsd_triage 2024-10-16 18:40:11 UTC
(In reply to László Károlyi from comment #9)
Thanks. If no reaction from maintainer will commit 29th October.
Comment 11 commit-hook freebsd_committer freebsd_triage 2024-10-30 06:58:34 UTC
A commit in branch main references this bug:

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

commit e0df7012849fbc8c2b0c96b41891494a04e4f3ff
Author:     László Károlyi <laszlo-rdr-keethu9thi@karolyi.hu>
AuthorDate: 2024-10-30 06:54:35 +0000
Commit:     Zsolt Udvari <uzsolt@FreeBSD.org>
CommitDate: 2024-10-30 06:57:51 +0000

    databases/luadbi: Update to 0.7.4

    Works with mysql 8.0 and 8.1.
    Replace -I${LOCALBASE}/include to USES=localbase.
    Pet portfmt.
    Switch to DISTVERSION.

    PR:             270844
    Approved by:    maintainer timeout (2 weeks)

 databases/luadbi/Makefile | 63 +++++++++++++++++++++++------------------------
 databases/luadbi/distinfo |  6 ++---
 2 files changed, 34 insertions(+), 35 deletions(-)
Comment 12 Zsolt Udvari freebsd_committer freebsd_triage 2024-10-30 06:59:54 UTC
Committed, thanks!
Comment 13 László Károlyi 2024-11-05 17:21:40 UTC
Just FYI, mysql is not depended now by the default package, so I still have to compile my own package to have it pulled in.

I'd like to change this to depend on mysql-client per default, I don't think it would bother many people.
Comment 14 Zsolt Udvari freebsd_committer freebsd_triage 2024-11-05 19:24:38 UTC
(In reply to László Károlyi from comment #13)
If I understand you want luadbi with mysql support in package repository.
I don't know about usage habits of luadbi so I don't know how many people use with mysql or has mysql-install already. Maybe it's not the best idea to add MYSQL to default.

Another idea: use flavors. You'll have luadbi-mysql, luadbi-sqlite3 and lua-pgsql packages and because of DBI.lua you should have a "main" luadbi package. Maybe it isn't good because this port use flavors already (because of USES=lua:module).
Second idea: slave ports (see https://docs.freebsd.org/en/books/porters-handbook/book/#makefile-masterdir). Maybe it's the best but I'll ask on mailing list.
Comment 15 László Károlyi 2024-11-05 19:27:39 UTC
(In reply to Zsolt Udvari from comment #14)
I can remember it pulled mysql in before because I never had to compile luadbi by hand, just to be able to use my mariadb with it.

If it counts, I vote for the flavor version, but I'm not a package maintainer.

Anyways, please do ask on the mailing lists and let me know.
Comment 16 Zsolt Udvari freebsd_committer freebsd_triage 2024-11-05 19:47:11 UTC
Yes, you've right. The change of default database was about one year ago (https://cgit.freebsd.org/ports/commit/databases/luadbi?id=111bb60101e36d18e5bf14ed33ff8f53e5e5afa1), from mysql to sqlite3 - because of missed supporting of mysql8.
In this case IMHO the best is revert this commit. Thanks for pointing this.
If you've time can create a patch, upload it, we should wait two weeks and can commit it.
Comment 17 László Károlyi 2024-11-06 11:52:04 UTC
Created attachment 254984 [details]
revert-111bb60101e36d18e5bf14ed33ff8f53e5e5afa1.diff

Let the two weeks™ begin.
Comment 18 László Károlyi 2024-11-06 15:40:30 UTC
Created attachment 254986 [details]
revert-111bb60101e36d18e5bf14ed33ff8f53e5e5afa1.diff

Forgot to bump portrevision.
Comment 19 commit-hook freebsd_committer freebsd_triage 2024-11-28 18:52:23 UTC
A commit in branch main references this bug:

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

commit b43fee0213d3ff81106cbccd08765564e55cbf30
Author:     László Károlyi <laszlo-rdr-keethu9thi@karolyi.hu>
AuthorDate: 2024-11-28 18:46:50 +0000
Commit:     Zsolt Udvari <uzsolt@FreeBSD.org>
CommitDate: 2024-11-28 18:46:50 +0000

    databases/luadbi: Set default database to MySQL

    In commit 111bb60101e36d18e5bf14ed33ff8f53e5e5afa1 the default database
    option changed to SQLite because of missed support of MySQL8.
    MySQL8 is supported since 0.7.4 so revert this commit.

    PR:             270844
    Approved by:    maintainer timeout (3+ weeks)

 databases/luadbi/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Comment 20 Zsolt Udvari freebsd_committer freebsd_triage 2024-11-28 18:52:28 UTC
Timeout again :)
Committed, thanks!
Comment 21 László Károlyi 2024-11-28 18:53:57 UTC
Thanks man, I'll keep an eye on this.