diff --git a/pkgs/c/compat.libmysqlclient.lua b/pkgs/c/compat.libmysqlclient.lua index 22411ea..17de3a7 100644 --- a/pkgs/c/compat.libmysqlclient.lua +++ b/pkgs/c/compat.libmysqlclient.lua @@ -14,12 +14,20 @@ package = { url = "https://github.com/wellwei/libmysqlclient/archive/refs/tags/8.4.6.tar.gz", sha256 = "27decd6716591d84a6f765a3d63fcd24031373841c684369445b83a840b38bea", }, + ["8.4.6.1"] = { + url = "https://github.com/wellwei/libmysqlclient/archive/refs/tags/8.4.6.1.tar.gz", + sha256 = "e50e5da37baa26fff56952d85bd8e33b577be7a534e67df0b8e10a5cc8507af8", + }, }, macosx = { ["8.4.6"] = { url = "https://github.com/wellwei/libmysqlclient/archive/refs/tags/8.4.6.tar.gz", sha256 = "27decd6716591d84a6f765a3d63fcd24031373841c684369445b83a840b38bea", }, + ["8.4.6.1"] = { + url = "https://github.com/wellwei/libmysqlclient/archive/refs/tags/8.4.6.1.tar.gz", + sha256 = "e50e5da37baa26fff56952d85bd8e33b577be7a534e67df0b8e10a5cc8507af8", + }, }, }, diff --git a/pkgs/c/compat.mysql-connector-cpp.lua b/pkgs/c/compat.mysql-connector-cpp.lua index b613bc4..ae6e84c 100644 --- a/pkgs/c/compat.mysql-connector-cpp.lua +++ b/pkgs/c/compat.mysql-connector-cpp.lua @@ -11,7 +11,7 @@ package = { xpm = { linux = { deps = { - "compat:libmysqlclient@8.4.6", + "compat:libmysqlclient@8.4.6.1", "compat:openssl@3.5.1", "xim:cmake@latest", "xim:make@latest", @@ -23,7 +23,7 @@ package = { }, macosx = { deps = { - "compat:libmysqlclient@8.4.6", + "compat:libmysqlclient@8.4.6.1", "compat:openssl@3.5.1", "xim:cmake@latest", }, @@ -41,7 +41,7 @@ package = { include_dirs = { "include" }, targets = { ["mysql_connector_cpp"] = { kind = "lib" } }, deps = { - ["compat.libmysqlclient"] = "8.4.6", + ["compat.libmysqlclient"] = "8.4.6.1", ["compat.openssl"] = "3.5.1", }, @@ -141,7 +141,7 @@ local function find_source_root() end local function find_mysql_source_root(prefix) - local direct = path.join(prefix, "libmysqlclient-8.4.6") + local direct = path.join(prefix, "libmysqlclient-8.4.6.1") if os.isfile(path.join(direct, "mcpp.toml")) then return direct end for _, manifest in ipairs(os.files(path.join(prefix, "**", "mcpp.toml")) or {}) do local root = path.directory(manifest) @@ -198,7 +198,7 @@ function install() .. " deps=" .. tostring(pkginfo.deps_list())) local ok, result = pcall(function() local srcroot = find_source_root() - local mysql = find_dep_install_dir("compat:libmysqlclient", "8.4.6") + local mysql = find_dep_install_dir("compat:libmysqlclient", "8.4.6.1") local openssl = find_dep_install_dir("compat:openssl", "3.5.1") hook_log("srcroot=" .. tostring(srcroot) .. " mysql=" .. tostring(mysql) .. " openssl=" .. tostring(openssl)) diff --git a/tests/examples/libmysqlclient/mcpp.toml b/tests/examples/libmysqlclient/mcpp.toml index f473d3e..4128c8c 100644 --- a/tests/examples/libmysqlclient/mcpp.toml +++ b/tests/examples/libmysqlclient/mcpp.toml @@ -4,13 +4,13 @@ version = "0.1.0" # libmysqlclient 的 mcpp 源码构建目前只验证 Linux/macOS。 [target.'cfg(linux)'.dependencies.compat] -libmysqlclient = "8.4.6" +libmysqlclient = "8.4.6.1" [target.'cfg(linux)'.build] cxxflags = ["-DHAVE_LIBMYSQLCLIENT=1"] [target.'cfg(macos)'.dependencies.compat] -libmysqlclient = "8.4.6" +libmysqlclient = "8.4.6.1" [target.'cfg(macos)'.build] cxxflags = ["-DHAVE_LIBMYSQLCLIENT=1"]