Created attachment 252821 [details] FIx the use of deprecated option When libnss_mysql is built against mysql80-client-8.0.39 every libnss_mysql initialization emits a warning to stderr: WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version Patch proposal is attached
This is kind of a big deal - this warning output is everywhere on a system with libnss-mysql and it does fun things like turning every cron job that's successfully completed into one that sends you mail each time the job is run. And if you're not paying a whole lot of attention or just don't frequently work with libnss hosts, the error really doesn't give you a clue as to the cause. I got this on upgrade last night. I just found this patch and applied it on a FreeBSD 13.4-p1 host and have not had any issues. Is there anything I can do to move this bug along? It's more than a month old now.
I can commit this patch soon (in 1-2 days) with "maintainer timeout > 1 month". Also I suggest to switch upstream to https://github.com/saknopper/libnss-mysql.
(In reply to Vladimir Druzenko from comment #2) This option needed also for mariadb, time to recheck it agains all available in ports versions. Please be patient
(In reply to Dima Panov from comment #3) Hello!
^Triage: over to maintainer.
(In reply to Dima Panov from comment #3) ping
ping
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=fe377bbb78a53fd6b22450d580ce67b1cfee3696 commit fe377bbb78a53fd6b22450d580ce67b1cfee3696 Author: Max Khon <fjoe@FreeBSD.org> AuthorDate: 2024-11-05 18:05:23 +0000 Commit: Dima Panov <fluffy@FreeBSD.org> CommitDate: 2024-11-05 18:06:15 +0000 net/libnss-mysql: WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version (+) PR: 280862 net/libnss-mysql/Makefile | 2 +- net/libnss-mysql/files/patch-src_mysql.c (gone) | 22 ---------------------- 2 files changed, 1 insertion(+), 23 deletions(-)
Committed, thanks!