mirror of https://github.com/sysown/proxysql
The chassis turns proxysql into a loader; runtime features
(mysqlx, genai/MCP) ship as separate .so files. Until now the
pre-existing packaging only saw the proxysql binary, so a v4.0
package install lost the plugins entirely — the operator had to
manually drop the .so files in place.
Wire them through all three packaging flavours:
* docker/images/proxysql/deb-compliant
- entrypoint.bash: copies the built .so files into pkgroot/plugins/
when the appropriate build flag is set (PROXYSQL40 for mysqlx,
PROXYSQLGENAI for genai), then patches a placeholder in the
equivs control file with the matching `Files:` entries that
install them under /usr/lib/proxysql/.
- proxysql.ctl: adds the placeholder line.
* docker/images/proxysql/{rhel,suse}-compliant
- entrypoint.bash: copies the .so files into proxysql-${VER}/usr/lib/
proxysql/ before the source tarball is rolled, and passes
`--define "with_plugins 1"` to rpmbuild when the flags are set.
- proxysql.spec: gates the new `%dir /usr/lib/proxysql` +
`/usr/lib/proxysql/*.so` block under `%if 0%{?with_plugins}` so
v3.x release builds (where the directory is empty) don't fail
the build with `RPM build errors: File not found by glob`.
* etc/proxysql.cnf: add a commented-out `plugins=(...)` example
with absolute paths matching the install location. Operators have
to opt in explicitly — auto-loading would silently change behaviour
on a v3.x → v4.0 upgrade without giving them a chance to review.
Conditional on PROXYSQL40 / PROXYSQLGENAI throughout so the v3.x
release-package paths stay byte-identical to before this commit.
v3.0-genai-plugin
parent
482ce386cd
commit
34838ebea4
Loading…
Reference in new issue