Skip to content

Commit c1fbebd

Browse files
committed
fix: add immutable libmysqlclient revision
1 parent b86fc7c commit c1fbebd

3 files changed

Lines changed: 15 additions & 7 deletions

File tree

pkgs/c/compat.libmysqlclient.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,20 @@ package = {
1414
url = "https://github.com/wellwei/libmysqlclient/archive/refs/tags/8.4.6.tar.gz",
1515
sha256 = "27decd6716591d84a6f765a3d63fcd24031373841c684369445b83a840b38bea",
1616
},
17+
["8.4.6.1"] = {
18+
url = "https://github.com/wellwei/libmysqlclient/archive/refs/tags/8.4.6.1.tar.gz",
19+
sha256 = "e50e5da37baa26fff56952d85bd8e33b577be7a534e67df0b8e10a5cc8507af8",
20+
},
1721
},
1822
macosx = {
1923
["8.4.6"] = {
2024
url = "https://github.com/wellwei/libmysqlclient/archive/refs/tags/8.4.6.tar.gz",
2125
sha256 = "27decd6716591d84a6f765a3d63fcd24031373841c684369445b83a840b38bea",
2226
},
27+
["8.4.6.1"] = {
28+
url = "https://github.com/wellwei/libmysqlclient/archive/refs/tags/8.4.6.1.tar.gz",
29+
sha256 = "e50e5da37baa26fff56952d85bd8e33b577be7a534e67df0b8e10a5cc8507af8",
30+
},
2331
},
2432
},
2533

pkgs/c/compat.mysql-connector-cpp.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ package = {
1111
xpm = {
1212
linux = {
1313
deps = {
14-
"compat:libmysqlclient@8.4.6",
14+
"compat:libmysqlclient@8.4.6.1",
1515
"compat:openssl@3.5.1",
1616
"xim:cmake@latest",
1717
"xim:make@latest",
@@ -23,7 +23,7 @@ package = {
2323
},
2424
macosx = {
2525
deps = {
26-
"compat:libmysqlclient@8.4.6",
26+
"compat:libmysqlclient@8.4.6.1",
2727
"compat:openssl@3.5.1",
2828
"xim:cmake@latest",
2929
},
@@ -41,7 +41,7 @@ package = {
4141
include_dirs = { "include" },
4242
targets = { ["mysql_connector_cpp"] = { kind = "lib" } },
4343
deps = {
44-
["compat.libmysqlclient"] = "8.4.6",
44+
["compat.libmysqlclient"] = "8.4.6.1",
4545
["compat.openssl"] = "3.5.1",
4646
},
4747

@@ -141,7 +141,7 @@ local function find_source_root()
141141
end
142142

143143
local function find_mysql_source_root(prefix)
144-
local direct = path.join(prefix, "libmysqlclient-8.4.6")
144+
local direct = path.join(prefix, "libmysqlclient-8.4.6.1")
145145
if os.isfile(path.join(direct, "mcpp.toml")) then return direct end
146146
for _, manifest in ipairs(os.files(path.join(prefix, "**", "mcpp.toml")) or {}) do
147147
local root = path.directory(manifest)
@@ -198,7 +198,7 @@ function install()
198198
.. " deps=" .. tostring(pkginfo.deps_list()))
199199
local ok, result = pcall(function()
200200
local srcroot = find_source_root()
201-
local mysql = find_dep_install_dir("compat:libmysqlclient", "8.4.6")
201+
local mysql = find_dep_install_dir("compat:libmysqlclient", "8.4.6.1")
202202
local openssl = find_dep_install_dir("compat:openssl", "3.5.1")
203203
hook_log("srcroot=" .. tostring(srcroot) .. " mysql=" .. tostring(mysql)
204204
.. " openssl=" .. tostring(openssl))

tests/examples/libmysqlclient/mcpp.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ version = "0.1.0"
44

55
# libmysqlclient 的 mcpp 源码构建目前只验证 Linux/macOS。
66
[target.'cfg(linux)'.dependencies.compat]
7-
libmysqlclient = "8.4.6"
7+
libmysqlclient = "8.4.6.1"
88

99
[target.'cfg(linux)'.build]
1010
cxxflags = ["-DHAVE_LIBMYSQLCLIENT=1"]
1111

1212
[target.'cfg(macos)'.dependencies.compat]
13-
libmysqlclient = "8.4.6"
13+
libmysqlclient = "8.4.6.1"
1414

1515
[target.'cfg(macos)'.build]
1616
cxxflags = ["-DHAVE_LIBMYSQLCLIENT=1"]

0 commit comments

Comments
 (0)