Bug 265886

Summary: www/mod_auth_mysql_another: broken after mariadb removed some internal api (with quick fix)
Product: Ports & Packages Reporter: Kurt Jaeger <pi>
Component: Individual Port(s)Assignee: freebsd-apache (Nobody) <apache>
Status: Open ---    
Severity: Affects Only Me CC: brnrd, joneum, pi
Priority: --- Flags: joneum: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch none

Description Kurt Jaeger freebsd_committer freebsd_triage 2022-08-16 18:16:41 UTC
Created attachment 235944 [details]
patch

See also:
https://stackoverflow.com/questions/49247294/c-function-make-scrambled-password-
in-mysql-to-mariadb
https://jira.mariadb.org/plugins/servlet/mobile#issue/MDEV-13464

Basically, the module uses a libmysqlclient call to
make_scrambled_password, which is no longer exposed in recent versions
of mariadb-10.5. Instead a function ma_make_scrambled_password is exposed,
which this patch calls.
Comment 1 Jochen Neumeister freebsd_committer freebsd_triage 2022-08-16 18:30:57 UTC
looks ok for me :-)
Comment 2 Kurt Jaeger freebsd_committer freebsd_triage 2022-08-16 18:55:32 UTC
I'm not sure if this patch works if one uses mysql instead of mariadb ?

The source for databases/mysql80-client seems to expose a function
my_make_scrambled_password and has some compat for the old make_scrambled_password function. How can this be detected at build time ?
Comment 3 Bernard Spil freebsd_committer freebsd_triage 2023-04-10 12:35:58 UTC
(In reply to Kurt Jaeger from comment #2)
I'd think it breaks with MySQL which is kind of guaranteed not to have ma_make_scrambled_password