Skip to content

Commit

Permalink
[73_6] Use libgit2-dev on uos
Browse files Browse the repository at this point in the history
  • Loading branch information
da-liii authored Jan 16, 2024
1 parent 6b267db commit c2862cf
Show file tree
Hide file tree
Showing 3 changed files with 124 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/Plugins/Git/git.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ libgit2_version () {

static void
show_git_last_error (int error) {
#if (LIBGIT2_VER_MAJOR == 0) && (LIBGIT2_VER_MINOR <= 27)
const git_error* e= giterr_last ();
#else
const git_error* e= git_error_last ();
debug_io << "libgit2 error " << error << "/" << e->klass << ": " << e->message
#endif
debug_io << "libgit2 error " << error // << "/" << e->klass << ": " << e->message
<< LF;
}

Expand Down
118 changes: 118 additions & 0 deletions xmake-requires.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,124 @@
__meta__ = {
version = "1.0"
},
["linux|loongarch64"] = {
["apt::libgit2-dev#31fecfc4"] = {
version = "latest"
},
["apt::libjpeg62-turbo-dev#31fecfc4"] = {
version = "latest"
},
["apt::libpng-dev#31fecfc4"] = {
version = "latest"
},
["cmake#31fecfc4"] = {
repo = {
branch = "master",
commit = "4008de50367abe3554f52460fc5f09a744073cec",
url = "https://gitee.com/tboox/xmake-repo.git"
},
version = "3.26.4"
},
["cpr#31fecfc4"] = {
repo = {
branch = "master",
commit = "4008de50367abe3554f52460fc5f09a744073cec",
url = "https://gitee.com/tboox/xmake-repo.git"
},
version = "1.10.5"
},
["freetype#31fecfc4"] = {
repo = {
branch = "master",
commit = "4008de50367abe3554f52460fc5f09a744073cec",
url = "https://gitee.com/tboox/xmake-repo.git"
},
version = "2.12.1"
},
["libaesgm#31fecfc4"] = {
repo = {
branch = "master",
commit = "4008de50367abe3554f52460fc5f09a744073cec",
url = "https://gitee.com/tboox/xmake-repo.git"
},
version = "2013.1.1"
},
["libcurl#31fecfc4"] = {
repo = {
branch = "master",
commit = "4008de50367abe3554f52460fc5f09a744073cec",
url = "https://gitee.com/tboox/xmake-repo.git"
},
version = "8.4.0"
},
["libjpeg#31fecfc4"] = {
repo = {
branch = "master",
commit = "4008de50367abe3554f52460fc5f09a744073cec",
url = "https://gitee.com/tboox/xmake-repo.git"
},
version = "1.5.2"
},
["libpng#31fecfc4"] = {
repo = {
branch = "master",
commit = "4008de50367abe3554f52460fc5f09a744073cec",
url = "https://gitee.com/tboox/xmake-repo.git"
},
version = "1.6.36"
},
["lolly#31fecfc4"] = {
version = "v1.3.16"
},
["openssl#31fecfc4"] = {
repo = {
branch = "master",
commit = "4008de50367abe3554f52460fc5f09a744073cec",
url = "https://gitee.com/tboox/xmake-repo.git"
},
version = "1.1.1d"
},
["pdfhummus 4.6.2#23149c54"] = {
repo = {
branch = "master",
commit = "bdce2febf9d26219840fe93f2e6b9ff676d565f7",
url = "https://gitee.com/tboox/xmake-repo.git"
},
version = "v4.6.2"
},
["pkg-config#31fecfc4"] = {
repo = {
branch = "master",
commit = "4008de50367abe3554f52460fc5f09a744073cec",
url = "https://gitee.com/tboox/xmake-repo.git"
},
version = "0.29"
},
["s7 2023.04.13#31fecfc4"] = {
repo = {
branch = "master",
commit = "4008de50367abe3554f52460fc5f09a744073cec",
url = "https://gitee.com/tboox/xmake-repo.git"
},
version = "2023.04.13"
},
["tbox#31fecfc4"] = {
repo = {
branch = "master",
commit = "4008de50367abe3554f52460fc5f09a744073cec",
url = "https://gitee.com/tboox/xmake-repo.git"
},
version = "v1.7.5"
},
["zlib#31fecfc4"] = {
repo = {
branch = "master",
commit = "4008de50367abe3554f52460fc5f09a744073cec",
url = "https://gitee.com/tboox/xmake-repo.git"
},
version = "1.2.11"
}
},
["linux|x86_64"] = {
["apt::libcurl4-openssl-dev#31fecfc4"] = {
version = "latest"
Expand Down
2 changes: 1 addition & 1 deletion xmake/packages.lua
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function add_requires_of_mogan()
end

-- package: libgit2
if is_plat ("linux") and using_apt() and (not (linuxos.name() == "uos")) then
if is_plat ("linux") and using_apt() then
add_requires("apt::libgit2-dev", {alias="libgit2"})
elseif not is_plat("wasm") then
add_requires("libgit2 "..LIBGIT2_VERSION, {system=false})
Expand Down

0 comments on commit c2862cf

Please sign in to comment.